diff --git a/google-api-grpc/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java b/google-api-grpc/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java index d26917bc4e9f..80e6f42f7bb6 100644 --- a/google-api-grpc/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java +++ b/google-api-grpc/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java @@ -17,7 +17,7 @@ /** *
- * Google Container Engine Cluster Manager v1
+ * Google Kubernetes Engine Cluster Manager v1
  * 
*/ @javax.annotation.Generated( @@ -1166,7 +1166,7 @@ public static ClusterManagerFutureStub newFutureStub( /** *
-   * Google Container Engine Cluster Manager v1
+   * Google Kubernetes Engine Cluster Manager v1
    * 
*/ public static abstract class ClusterManagerImplBase implements io.grpc.BindableService { @@ -1223,7 +1223,7 @@ public void updateCluster(com.google.container.v1.UpdateClusterRequest request, /** *
-     * Updates the version and/or image type of a specific node pool.
+     * Updates the version and/or image type for a specific node pool.
      * 
*/ public void updateNodePool(com.google.container.v1.UpdateNodePoolRequest request, @@ -1233,7 +1233,7 @@ public void updateNodePool(com.google.container.v1.UpdateNodePoolRequest request /** *
-     * Sets the autoscaling settings of a specific node pool.
+     * Sets the autoscaling settings for a specific node pool.
      * 
*/ public void setNodePoolAutoscaling(com.google.container.v1.SetNodePoolAutoscalingRequest request, @@ -1243,7 +1243,7 @@ public void setNodePoolAutoscaling(com.google.container.v1.SetNodePoolAutoscalin /** *
-     * Sets the logging service of a specific cluster.
+     * Sets the logging service for a specific cluster.
      * 
*/ public void setLoggingService(com.google.container.v1.SetLoggingServiceRequest request, @@ -1253,7 +1253,7 @@ public void setLoggingService(com.google.container.v1.SetLoggingServiceRequest r /** *
-     * Sets the monitoring service of a specific cluster.
+     * Sets the monitoring service for a specific cluster.
      * 
*/ public void setMonitoringService(com.google.container.v1.SetMonitoringServiceRequest request, @@ -1263,7 +1263,7 @@ public void setMonitoringService(com.google.container.v1.SetMonitoringServiceReq /** *
-     * Sets the addons of a specific cluster.
+     * Sets the addons for a specific cluster.
      * 
*/ public void setAddonsConfig(com.google.container.v1.SetAddonsConfigRequest request, @@ -1273,7 +1273,7 @@ public void setAddonsConfig(com.google.container.v1.SetAddonsConfigRequest reque /** *
-     * Sets the locations of a specific cluster.
+     * Sets the locations for a specific cluster.
      * 
*/ public void setLocations(com.google.container.v1.SetLocationsRequest request, @@ -1283,7 +1283,7 @@ public void setLocations(com.google.container.v1.SetLocationsRequest request, /** *
-     * Updates the master of a specific cluster.
+     * Updates the master for a specific cluster.
      * 
*/ public void updateMaster(com.google.container.v1.UpdateMasterRequest request, @@ -1294,7 +1294,7 @@ public void updateMaster(com.google.container.v1.UpdateMasterRequest request, /** *
      * Used to set master auth materials. Currently supports :-
-     * Changing the admin password of a specific cluster.
+     * Changing the admin password for a specific cluster.
      * This can be either via password generation or explicitly set the password.
      * 
*/ @@ -1351,7 +1351,7 @@ public void cancelOperation(com.google.container.v1.CancelOperationRequest reque /** *
-     * Returns configuration info about the Container Engine service.
+     * Returns configuration info about the Kubernetes Engine service.
      * 
*/ public void getServerConfig(com.google.container.v1.GetServerConfigRequest request, @@ -1462,7 +1462,7 @@ public void completeIPRotation(com.google.container.v1.CompleteIPRotationRequest /** *
-     * Sets the size of a specific node pool.
+     * Sets the size for a specific node pool.
      * 
*/ public void setNodePoolSize(com.google.container.v1.SetNodePoolSizeRequest request, @@ -1708,7 +1708,7 @@ public void setMaintenancePolicy(com.google.container.v1.SetMaintenancePolicyReq /** *
-   * Google Container Engine Cluster Manager v1
+   * Google Kubernetes Engine Cluster Manager v1
    * 
*/ public static final class ClusterManagerStub extends io.grpc.stub.AbstractStub { @@ -1783,7 +1783,7 @@ public void updateCluster(com.google.container.v1.UpdateClusterRequest request, /** *
-     * Updates the version and/or image type of a specific node pool.
+     * Updates the version and/or image type for a specific node pool.
      * 
*/ public void updateNodePool(com.google.container.v1.UpdateNodePoolRequest request, @@ -1794,7 +1794,7 @@ public void updateNodePool(com.google.container.v1.UpdateNodePoolRequest request /** *
-     * Sets the autoscaling settings of a specific node pool.
+     * Sets the autoscaling settings for a specific node pool.
      * 
*/ public void setNodePoolAutoscaling(com.google.container.v1.SetNodePoolAutoscalingRequest request, @@ -1805,7 +1805,7 @@ public void setNodePoolAutoscaling(com.google.container.v1.SetNodePoolAutoscalin /** *
-     * Sets the logging service of a specific cluster.
+     * Sets the logging service for a specific cluster.
      * 
*/ public void setLoggingService(com.google.container.v1.SetLoggingServiceRequest request, @@ -1816,7 +1816,7 @@ public void setLoggingService(com.google.container.v1.SetLoggingServiceRequest r /** *
-     * Sets the monitoring service of a specific cluster.
+     * Sets the monitoring service for a specific cluster.
      * 
*/ public void setMonitoringService(com.google.container.v1.SetMonitoringServiceRequest request, @@ -1827,7 +1827,7 @@ public void setMonitoringService(com.google.container.v1.SetMonitoringServiceReq /** *
-     * Sets the addons of a specific cluster.
+     * Sets the addons for a specific cluster.
      * 
*/ public void setAddonsConfig(com.google.container.v1.SetAddonsConfigRequest request, @@ -1838,7 +1838,7 @@ public void setAddonsConfig(com.google.container.v1.SetAddonsConfigRequest reque /** *
-     * Sets the locations of a specific cluster.
+     * Sets the locations for a specific cluster.
      * 
*/ public void setLocations(com.google.container.v1.SetLocationsRequest request, @@ -1849,7 +1849,7 @@ public void setLocations(com.google.container.v1.SetLocationsRequest request, /** *
-     * Updates the master of a specific cluster.
+     * Updates the master for a specific cluster.
      * 
*/ public void updateMaster(com.google.container.v1.UpdateMasterRequest request, @@ -1861,7 +1861,7 @@ public void updateMaster(com.google.container.v1.UpdateMasterRequest request, /** *
      * Used to set master auth materials. Currently supports :-
-     * Changing the admin password of a specific cluster.
+     * Changing the admin password for a specific cluster.
      * This can be either via password generation or explicitly set the password.
      * 
*/ @@ -1923,7 +1923,7 @@ public void cancelOperation(com.google.container.v1.CancelOperationRequest reque /** *
-     * Returns configuration info about the Container Engine service.
+     * Returns configuration info about the Kubernetes Engine service.
      * 
*/ public void getServerConfig(com.google.container.v1.GetServerConfigRequest request, @@ -2045,7 +2045,7 @@ public void completeIPRotation(com.google.container.v1.CompleteIPRotationRequest /** *
-     * Sets the size of a specific node pool.
+     * Sets the size for a specific node pool.
      * 
*/ public void setNodePoolSize(com.google.container.v1.SetNodePoolSizeRequest request, @@ -2079,7 +2079,7 @@ public void setMaintenancePolicy(com.google.container.v1.SetMaintenancePolicyReq /** *
-   * Google Container Engine Cluster Manager v1
+   * Google Kubernetes Engine Cluster Manager v1
    * 
*/ public static final class ClusterManagerBlockingStub extends io.grpc.stub.AbstractStub { @@ -2150,7 +2150,7 @@ public com.google.container.v1.Operation updateCluster(com.google.container.v1.U /** *
-     * Updates the version and/or image type of a specific node pool.
+     * Updates the version and/or image type for a specific node pool.
      * 
*/ public com.google.container.v1.Operation updateNodePool(com.google.container.v1.UpdateNodePoolRequest request) { @@ -2160,7 +2160,7 @@ public com.google.container.v1.Operation updateNodePool(com.google.container.v1. /** *
-     * Sets the autoscaling settings of a specific node pool.
+     * Sets the autoscaling settings for a specific node pool.
      * 
*/ public com.google.container.v1.Operation setNodePoolAutoscaling(com.google.container.v1.SetNodePoolAutoscalingRequest request) { @@ -2170,7 +2170,7 @@ public com.google.container.v1.Operation setNodePoolAutoscaling(com.google.conta /** *
-     * Sets the logging service of a specific cluster.
+     * Sets the logging service for a specific cluster.
      * 
*/ public com.google.container.v1.Operation setLoggingService(com.google.container.v1.SetLoggingServiceRequest request) { @@ -2180,7 +2180,7 @@ public com.google.container.v1.Operation setLoggingService(com.google.container. /** *
-     * Sets the monitoring service of a specific cluster.
+     * Sets the monitoring service for a specific cluster.
      * 
*/ public com.google.container.v1.Operation setMonitoringService(com.google.container.v1.SetMonitoringServiceRequest request) { @@ -2190,7 +2190,7 @@ public com.google.container.v1.Operation setMonitoringService(com.google.contain /** *
-     * Sets the addons of a specific cluster.
+     * Sets the addons for a specific cluster.
      * 
*/ public com.google.container.v1.Operation setAddonsConfig(com.google.container.v1.SetAddonsConfigRequest request) { @@ -2200,7 +2200,7 @@ public com.google.container.v1.Operation setAddonsConfig(com.google.container.v1 /** *
-     * Sets the locations of a specific cluster.
+     * Sets the locations for a specific cluster.
      * 
*/ public com.google.container.v1.Operation setLocations(com.google.container.v1.SetLocationsRequest request) { @@ -2210,7 +2210,7 @@ public com.google.container.v1.Operation setLocations(com.google.container.v1.Se /** *
-     * Updates the master of a specific cluster.
+     * Updates the master for a specific cluster.
      * 
*/ public com.google.container.v1.Operation updateMaster(com.google.container.v1.UpdateMasterRequest request) { @@ -2221,7 +2221,7 @@ public com.google.container.v1.Operation updateMaster(com.google.container.v1.Up /** *
      * Used to set master auth materials. Currently supports :-
-     * Changing the admin password of a specific cluster.
+     * Changing the admin password for a specific cluster.
      * This can be either via password generation or explicitly set the password.
      * 
*/ @@ -2278,7 +2278,7 @@ public com.google.protobuf.Empty cancelOperation(com.google.container.v1.CancelO /** *
-     * Returns configuration info about the Container Engine service.
+     * Returns configuration info about the Kubernetes Engine service.
      * 
*/ public com.google.container.v1.ServerConfig getServerConfig(com.google.container.v1.GetServerConfigRequest request) { @@ -2389,7 +2389,7 @@ public com.google.container.v1.Operation completeIPRotation(com.google.container /** *
-     * Sets the size of a specific node pool.
+     * Sets the size for a specific node pool.
      * 
*/ public com.google.container.v1.Operation setNodePoolSize(com.google.container.v1.SetNodePoolSizeRequest request) { @@ -2420,7 +2420,7 @@ public com.google.container.v1.Operation setMaintenancePolicy(com.google.contain /** *
-   * Google Container Engine Cluster Manager v1
+   * Google Kubernetes Engine Cluster Manager v1
    * 
*/ public static final class ClusterManagerFutureStub extends io.grpc.stub.AbstractStub { @@ -2495,7 +2495,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Updates the version and/or image type of a specific node pool. + * Updates the version and/or image type for a specific node pool. * */ public com.google.common.util.concurrent.ListenableFuture updateNodePool( @@ -2506,7 +2506,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Sets the autoscaling settings of a specific node pool. + * Sets the autoscaling settings for a specific node pool. * */ public com.google.common.util.concurrent.ListenableFuture setNodePoolAutoscaling( @@ -2517,7 +2517,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Sets the logging service of a specific cluster. + * Sets the logging service for a specific cluster. * */ public com.google.common.util.concurrent.ListenableFuture setLoggingService( @@ -2528,7 +2528,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Sets the monitoring service of a specific cluster. + * Sets the monitoring service for a specific cluster. * */ public com.google.common.util.concurrent.ListenableFuture setMonitoringService( @@ -2539,7 +2539,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Sets the addons of a specific cluster. + * Sets the addons for a specific cluster. * */ public com.google.common.util.concurrent.ListenableFuture setAddonsConfig( @@ -2550,7 +2550,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Sets the locations of a specific cluster. + * Sets the locations for a specific cluster. * */ public com.google.common.util.concurrent.ListenableFuture setLocations( @@ -2561,7 +2561,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Updates the master of a specific cluster. + * Updates the master for a specific cluster. * */ public com.google.common.util.concurrent.ListenableFuture updateMaster( @@ -2573,7 +2573,7 @@ public com.google.common.util.concurrent.ListenableFuture * Used to set master auth materials. Currently supports :- - * Changing the admin password of a specific cluster. + * Changing the admin password for a specific cluster. * This can be either via password generation or explicitly set the password. * */ @@ -2635,7 +2635,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Returns configuration info about the Container Engine service. + * Returns configuration info about the Kubernetes Engine service. * */ public com.google.common.util.concurrent.ListenableFuture getServerConfig( @@ -2757,7 +2757,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Sets the size of a specific node pool. + * Sets the size for a specific node pool. * */ public com.google.common.util.concurrent.ListenableFuture setNodePoolSize( diff --git a/google-api-grpc/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterManagerGrpc.java b/google-api-grpc/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterManagerGrpc.java new file mode 100644 index 000000000000..15fc946f7820 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterManagerGrpc.java @@ -0,0 +1,3469 @@ +package com.google.container.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Google Kubernetes Engine Cluster Manager v1alpha1
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/container/v1alpha1/cluster_service.proto") +public final class ClusterManagerGrpc { + + private ClusterManagerGrpc() {} + + public static final String SERVICE_NAME = "google.container.v1alpha1.ClusterManager"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListClustersMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_CLUSTERS = getListClustersMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListClustersMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListClustersMethod() { + return getListClustersMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListClustersMethodHelper() { + io.grpc.MethodDescriptor getListClustersMethod; + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + ClusterManagerGrpc.getListClustersMethod = getListClustersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "ListClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.ListClustersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.ListClustersResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListClusters")) + .build(); + } + } + } + return getListClustersMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetClusterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_CLUSTER = getGetClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetClusterMethod() { + return getGetClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetClusterMethodHelper() { + io.grpc.MethodDescriptor getGetClusterMethod; + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + ClusterManagerGrpc.getGetClusterMethod = getGetClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "GetCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.GetClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Cluster.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetCluster")) + .build(); + } + } + } + return getGetClusterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateClusterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_CREATE_CLUSTER = getCreateClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCreateClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCreateClusterMethod() { + return getCreateClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCreateClusterMethodHelper() { + io.grpc.MethodDescriptor getCreateClusterMethod; + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + ClusterManagerGrpc.getCreateClusterMethod = getCreateClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "CreateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.CreateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CreateCluster")) + .build(); + } + } + } + return getCreateClusterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateClusterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_UPDATE_CLUSTER = getUpdateClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getUpdateClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getUpdateClusterMethod() { + return getUpdateClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getUpdateClusterMethodHelper() { + io.grpc.MethodDescriptor getUpdateClusterMethod; + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + ClusterManagerGrpc.getUpdateClusterMethod = getUpdateClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "UpdateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.UpdateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("UpdateCluster")) + .build(); + } + } + } + return getUpdateClusterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateNodePoolMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_UPDATE_NODE_POOL = getUpdateNodePoolMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getUpdateNodePoolMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getUpdateNodePoolMethod() { + return getUpdateNodePoolMethodHelper(); + } + + private static io.grpc.MethodDescriptor getUpdateNodePoolMethodHelper() { + io.grpc.MethodDescriptor getUpdateNodePoolMethod; + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + ClusterManagerGrpc.getUpdateNodePoolMethod = getUpdateNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "UpdateNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.UpdateNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("UpdateNodePool")) + .build(); + } + } + } + return getUpdateNodePoolMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetNodePoolAutoscalingMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_NODE_POOL_AUTOSCALING = getSetNodePoolAutoscalingMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethod() { + return getSetNodePoolAutoscalingMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethodHelper() { + io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethod; + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) == null) { + ClusterManagerGrpc.getSetNodePoolAutoscalingMethod = getSetNodePoolAutoscalingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetNodePoolAutoscaling")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetNodePoolAutoscalingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNodePoolAutoscaling")) + .build(); + } + } + } + return getSetNodePoolAutoscalingMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetLoggingServiceMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_LOGGING_SERVICE = getSetLoggingServiceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetLoggingServiceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetLoggingServiceMethod() { + return getSetLoggingServiceMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetLoggingServiceMethodHelper() { + io.grpc.MethodDescriptor getSetLoggingServiceMethod; + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + ClusterManagerGrpc.getSetLoggingServiceMethod = getSetLoggingServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetLoggingService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetLoggingServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLoggingService")) + .build(); + } + } + } + return getSetLoggingServiceMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetMonitoringServiceMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_MONITORING_SERVICE = getSetMonitoringServiceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetMonitoringServiceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetMonitoringServiceMethod() { + return getSetMonitoringServiceMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetMonitoringServiceMethodHelper() { + io.grpc.MethodDescriptor getSetMonitoringServiceMethod; + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) == null) { + ClusterManagerGrpc.getSetMonitoringServiceMethod = getSetMonitoringServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetMonitoringService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetMonitoringServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetMonitoringService")) + .build(); + } + } + } + return getSetMonitoringServiceMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetAddonsConfigMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_ADDONS_CONFIG = getSetAddonsConfigMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetAddonsConfigMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetAddonsConfigMethod() { + return getSetAddonsConfigMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetAddonsConfigMethodHelper() { + io.grpc.MethodDescriptor getSetAddonsConfigMethod; + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + ClusterManagerGrpc.getSetAddonsConfigMethod = getSetAddonsConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetAddonsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetAddonsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetAddonsConfig")) + .build(); + } + } + } + return getSetAddonsConfigMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetLocationsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_LOCATIONS = getSetLocationsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetLocationsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetLocationsMethod() { + return getSetLocationsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetLocationsMethodHelper() { + io.grpc.MethodDescriptor getSetLocationsMethod; + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + ClusterManagerGrpc.getSetLocationsMethod = getSetLocationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetLocations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetLocationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLocations")) + .build(); + } + } + } + return getSetLocationsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateMasterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_UPDATE_MASTER = getUpdateMasterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getUpdateMasterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getUpdateMasterMethod() { + return getUpdateMasterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getUpdateMasterMethodHelper() { + io.grpc.MethodDescriptor getUpdateMasterMethod; + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + ClusterManagerGrpc.getUpdateMasterMethod = getUpdateMasterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "UpdateMaster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.UpdateMasterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("UpdateMaster")) + .build(); + } + } + } + return getUpdateMasterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetMasterAuthMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_MASTER_AUTH = getSetMasterAuthMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetMasterAuthMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetMasterAuthMethod() { + return getSetMasterAuthMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetMasterAuthMethodHelper() { + io.grpc.MethodDescriptor getSetMasterAuthMethod; + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + ClusterManagerGrpc.getSetMasterAuthMethod = getSetMasterAuthMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetMasterAuth")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetMasterAuthRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetMasterAuth")) + .build(); + } + } + } + return getSetMasterAuthMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteClusterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_DELETE_CLUSTER = getDeleteClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getDeleteClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getDeleteClusterMethod() { + return getDeleteClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getDeleteClusterMethodHelper() { + io.grpc.MethodDescriptor getDeleteClusterMethod; + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + ClusterManagerGrpc.getDeleteClusterMethod = getDeleteClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "DeleteCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.DeleteClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("DeleteCluster")) + .build(); + } + } + } + return getDeleteClusterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListOperationsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_OPERATIONS = getListOperationsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListOperationsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListOperationsMethod() { + return getListOperationsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListOperationsMethodHelper() { + io.grpc.MethodDescriptor getListOperationsMethod; + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + ClusterManagerGrpc.getListOperationsMethod = getListOperationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "ListOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.ListOperationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.ListOperationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListOperations")) + .build(); + } + } + } + return getListOperationsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetOperationMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_OPERATION = getGetOperationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetOperationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetOperationMethod() { + return getGetOperationMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetOperationMethodHelper() { + io.grpc.MethodDescriptor getGetOperationMethod; + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + ClusterManagerGrpc.getGetOperationMethod = getGetOperationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "GetOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.GetOperationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetOperation")) + .build(); + } + } + } + return getGetOperationMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCancelOperationMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_CANCEL_OPERATION = getCancelOperationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCancelOperationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCancelOperationMethod() { + return getCancelOperationMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCancelOperationMethodHelper() { + io.grpc.MethodDescriptor getCancelOperationMethod; + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + ClusterManagerGrpc.getCancelOperationMethod = getCancelOperationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "CancelOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.CancelOperationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CancelOperation")) + .build(); + } + } + } + return getCancelOperationMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetServerConfigMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_SERVER_CONFIG = getGetServerConfigMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetServerConfigMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetServerConfigMethod() { + return getGetServerConfigMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetServerConfigMethodHelper() { + io.grpc.MethodDescriptor getGetServerConfigMethod; + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + ClusterManagerGrpc.getGetServerConfigMethod = getGetServerConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "GetServerConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.GetServerConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.ServerConfig.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetServerConfig")) + .build(); + } + } + } + return getGetServerConfigMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListNodePoolsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_NODE_POOLS = getListNodePoolsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListNodePoolsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListNodePoolsMethod() { + return getListNodePoolsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListNodePoolsMethodHelper() { + io.grpc.MethodDescriptor getListNodePoolsMethod; + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + ClusterManagerGrpc.getListNodePoolsMethod = getListNodePoolsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "ListNodePools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.ListNodePoolsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.ListNodePoolsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListNodePools")) + .build(); + } + } + } + return getListNodePoolsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetNodePoolMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_NODE_POOL = getGetNodePoolMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetNodePoolMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetNodePoolMethod() { + return getGetNodePoolMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetNodePoolMethodHelper() { + io.grpc.MethodDescriptor getGetNodePoolMethod; + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + ClusterManagerGrpc.getGetNodePoolMethod = getGetNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "GetNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.GetNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.NodePool.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetNodePool")) + .build(); + } + } + } + return getGetNodePoolMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateNodePoolMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_CREATE_NODE_POOL = getCreateNodePoolMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCreateNodePoolMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCreateNodePoolMethod() { + return getCreateNodePoolMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCreateNodePoolMethodHelper() { + io.grpc.MethodDescriptor getCreateNodePoolMethod; + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + ClusterManagerGrpc.getCreateNodePoolMethod = getCreateNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "CreateNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.CreateNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CreateNodePool")) + .build(); + } + } + } + return getCreateNodePoolMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteNodePoolMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_DELETE_NODE_POOL = getDeleteNodePoolMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getDeleteNodePoolMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getDeleteNodePoolMethod() { + return getDeleteNodePoolMethodHelper(); + } + + private static io.grpc.MethodDescriptor getDeleteNodePoolMethodHelper() { + io.grpc.MethodDescriptor getDeleteNodePoolMethod; + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + ClusterManagerGrpc.getDeleteNodePoolMethod = getDeleteNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "DeleteNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.DeleteNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("DeleteNodePool")) + .build(); + } + } + } + return getDeleteNodePoolMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getRollbackNodePoolUpgradeMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_ROLLBACK_NODE_POOL_UPGRADE = getRollbackNodePoolUpgradeMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethod() { + return getRollbackNodePoolUpgradeMethodHelper(); + } + + private static io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethodHelper() { + io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethod; + if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) == null) { + ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod = getRollbackNodePoolUpgradeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "RollbackNodePoolUpgrade")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("RollbackNodePoolUpgrade")) + .build(); + } + } + } + return getRollbackNodePoolUpgradeMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetNodePoolManagementMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_NODE_POOL_MANAGEMENT = getSetNodePoolManagementMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetNodePoolManagementMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetNodePoolManagementMethod() { + return getSetNodePoolManagementMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetNodePoolManagementMethodHelper() { + io.grpc.MethodDescriptor getSetNodePoolManagementMethod; + if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) == null) { + ClusterManagerGrpc.getSetNodePoolManagementMethod = getSetNodePoolManagementMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetNodePoolManagement")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetNodePoolManagementRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNodePoolManagement")) + .build(); + } + } + } + return getSetNodePoolManagementMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetLabelsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_LABELS = getSetLabelsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetLabelsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetLabelsMethod() { + return getSetLabelsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetLabelsMethodHelper() { + io.grpc.MethodDescriptor getSetLabelsMethod; + if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { + ClusterManagerGrpc.getSetLabelsMethod = getSetLabelsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetLabels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetLabelsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLabels")) + .build(); + } + } + } + return getSetLabelsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetLegacyAbacMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_LEGACY_ABAC = getSetLegacyAbacMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetLegacyAbacMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetLegacyAbacMethod() { + return getSetLegacyAbacMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetLegacyAbacMethodHelper() { + io.grpc.MethodDescriptor getSetLegacyAbacMethod; + if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { + ClusterManagerGrpc.getSetLegacyAbacMethod = getSetLegacyAbacMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetLegacyAbac")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetLegacyAbacRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLegacyAbac")) + .build(); + } + } + } + return getSetLegacyAbacMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getStartIPRotationMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_START_IPROTATION = getStartIPRotationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getStartIPRotationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getStartIPRotationMethod() { + return getStartIPRotationMethodHelper(); + } + + private static io.grpc.MethodDescriptor getStartIPRotationMethodHelper() { + io.grpc.MethodDescriptor getStartIPRotationMethod; + if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { + ClusterManagerGrpc.getStartIPRotationMethod = getStartIPRotationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "StartIPRotation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.StartIPRotationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("StartIPRotation")) + .build(); + } + } + } + return getStartIPRotationMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCompleteIPRotationMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_COMPLETE_IPROTATION = getCompleteIPRotationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCompleteIPRotationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCompleteIPRotationMethod() { + return getCompleteIPRotationMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCompleteIPRotationMethodHelper() { + io.grpc.MethodDescriptor getCompleteIPRotationMethod; + if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) == null) { + ClusterManagerGrpc.getCompleteIPRotationMethod = getCompleteIPRotationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "CompleteIPRotation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.CompleteIPRotationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CompleteIPRotation")) + .build(); + } + } + } + return getCompleteIPRotationMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetNodePoolSizeMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_NODE_POOL_SIZE = getSetNodePoolSizeMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetNodePoolSizeMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetNodePoolSizeMethod() { + return getSetNodePoolSizeMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetNodePoolSizeMethodHelper() { + io.grpc.MethodDescriptor getSetNodePoolSizeMethod; + if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { + ClusterManagerGrpc.getSetNodePoolSizeMethod = getSetNodePoolSizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetNodePoolSize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetNodePoolSizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNodePoolSize")) + .build(); + } + } + } + return getSetNodePoolSizeMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetNetworkPolicyMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_NETWORK_POLICY = getSetNetworkPolicyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetNetworkPolicyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetNetworkPolicyMethod() { + return getSetNetworkPolicyMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetNetworkPolicyMethodHelper() { + io.grpc.MethodDescriptor getSetNetworkPolicyMethod; + if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { + ClusterManagerGrpc.getSetNetworkPolicyMethod = getSetNetworkPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetNetworkPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNetworkPolicy")) + .build(); + } + } + } + return getSetNetworkPolicyMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetMaintenancePolicyMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_MAINTENANCE_POLICY = getSetMaintenancePolicyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetMaintenancePolicyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetMaintenancePolicyMethod() { + return getSetMaintenancePolicyMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetMaintenancePolicyMethodHelper() { + io.grpc.MethodDescriptor getSetMaintenancePolicyMethod; + if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) == null) { + ClusterManagerGrpc.getSetMaintenancePolicyMethod = getSetMaintenancePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetMaintenancePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.SetMaintenancePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetMaintenancePolicy")) + .build(); + } + } + } + return getSetMaintenancePolicyMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetIamPolicyMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_IAM_POLICY = getSetIamPolicyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + return getSetIamPolicyMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetIamPolicyMethodHelper() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ClusterManagerGrpc.getSetIamPolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetIamPolicyMethod = ClusterManagerGrpc.getSetIamPolicyMethod) == null) { + ClusterManagerGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetIamPolicyMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_IAM_POLICY = getGetIamPolicyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + return getGetIamPolicyMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetIamPolicyMethodHelper() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ClusterManagerGrpc.getGetIamPolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetIamPolicyMethod = ClusterManagerGrpc.getGetIamPolicyMethod) == null) { + ClusterManagerGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getTestIamPermissionsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_TEST_IAM_PERMISSIONS = getTestIamPermissionsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + return getTestIamPermissionsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getTestIamPermissionsMethodHelper() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = ClusterManagerGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getTestIamPermissionsMethod = ClusterManagerGrpc.getTestIamPermissionsMethod) == null) { + ClusterManagerGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListUsableSubnetworksMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_USABLE_SUBNETWORKS = getListUsableSubnetworksMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListUsableSubnetworksMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListUsableSubnetworksMethod() { + return getListUsableSubnetworksMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListUsableSubnetworksMethodHelper() { + io.grpc.MethodDescriptor getListUsableSubnetworksMethod; + if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) == null) { + ClusterManagerGrpc.getListUsableSubnetworksMethod = getListUsableSubnetworksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1alpha1.ClusterManager", "ListUsableSubnetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.ListUsableSubnetworksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1alpha1.ListUsableSubnetworksResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListUsableSubnetworks")) + .build(); + } + } + } + return getListUsableSubnetworksMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ClusterManagerStub newStub(io.grpc.Channel channel) { + return new ClusterManagerStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ClusterManagerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new ClusterManagerBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ClusterManagerFutureStub newFutureStub( + io.grpc.Channel channel) { + return new ClusterManagerFutureStub(channel); + } + + /** + *
+   * Google Kubernetes Engine Cluster Manager v1alpha1
+   * 
+ */ + public static abstract class ClusterManagerImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public void listClusters(com.google.container.v1alpha1.ListClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListClustersMethodHelper(), responseObserver); + } + + /** + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public void getCluster(com.google.container.v1alpha1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetClusterMethodHelper(), responseObserver); + } + + /** + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the cluster creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range is being used by the cluster.
+     * 
+ */ + public void createCluster(com.google.container.v1alpha1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateClusterMethodHelper(), responseObserver); + } + + /** + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public void updateCluster(com.google.container.v1alpha1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateClusterMethodHelper(), responseObserver); + } + + /** + *
+     * Updates the version and/or iamge type of a specific node pool.
+     * 
+ */ + public void updateNodePool(com.google.container.v1alpha1.UpdateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateNodePoolMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public void setNodePoolAutoscaling(com.google.container.v1alpha1.SetNodePoolAutoscalingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetNodePoolAutoscalingMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public void setLoggingService(com.google.container.v1alpha1.SetLoggingServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetLoggingServiceMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public void setMonitoringService(com.google.container.v1alpha1.SetMonitoringServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetMonitoringServiceMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public void setAddonsConfig(com.google.container.v1alpha1.SetAddonsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetAddonsConfigMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the locations for a specific cluster.
+     * 
+ */ + public void setLocations(com.google.container.v1alpha1.SetLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetLocationsMethodHelper(), responseObserver); + } + + /** + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public void updateMaster(com.google.container.v1alpha1.UpdateMasterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateMasterMethodHelper(), responseObserver); + } + + /** + *
+     * Used to set master auth materials. Currently supports :-
+     * Changing the admin password for a specific cluster.
+     * This can be either via password generation or explicitly set.
+     * Modify basic_auth.csv and reset the K8S API server.
+     * 
+ */ + public void setMasterAuth(com.google.container.v1alpha1.SetMasterAuthRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetMasterAuthMethodHelper(), responseObserver); + } + + /** + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster
+     * (e.g. load balancer resources) will not be deleted if they weren't present
+     * at the initial create time.
+     * 
+ */ + public void deleteCluster(com.google.container.v1alpha1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteClusterMethodHelper(), responseObserver); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + public void listOperations(com.google.container.v1alpha1.ListOperationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListOperationsMethodHelper(), responseObserver); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + public void getOperation(com.google.container.v1alpha1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetOperationMethodHelper(), responseObserver); + } + + /** + *
+     * Cancels the specified operation.
+     * 
+ */ + public void cancelOperation(com.google.container.v1alpha1.CancelOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCancelOperationMethodHelper(), responseObserver); + } + + /** + *
+     * Returns configuration info about the Kubernetes Engine service.
+     * 
+ */ + public void getServerConfig(com.google.container.v1alpha1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetServerConfigMethodHelper(), responseObserver); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public void listNodePools(com.google.container.v1alpha1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListNodePoolsMethodHelper(), responseObserver); + } + + /** + *
+     * Retrieves the node pool requested.
+     * 
+ */ + public void getNodePool(com.google.container.v1alpha1.GetNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetNodePoolMethodHelper(), responseObserver); + } + + /** + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public void createNodePool(com.google.container.v1alpha1.CreateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateNodePoolMethodHelper(), responseObserver); + } + + /** + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public void deleteNodePool(com.google.container.v1alpha1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteNodePoolMethodHelper(), responseObserver); + } + + /** + *
+     * Roll back the previously Aborted or Failed NodePool upgrade.
+     * This will be an no-op if the last upgrade successfully completed.
+     * 
+ */ + public void rollbackNodePoolUpgrade(com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getRollbackNodePoolUpgradeMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public void setNodePoolManagement(com.google.container.v1alpha1.SetNodePoolManagementRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetNodePoolManagementMethodHelper(), responseObserver); + } + + /** + *
+     * Sets labels on a cluster.
+     * 
+ */ + public void setLabels(com.google.container.v1alpha1.SetLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetLabelsMethodHelper(), responseObserver); + } + + /** + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public void setLegacyAbac(com.google.container.v1alpha1.SetLegacyAbacRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetLegacyAbacMethodHelper(), responseObserver); + } + + /** + *
+     * Start master IP rotation.
+     * 
+ */ + public void startIPRotation(com.google.container.v1alpha1.StartIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getStartIPRotationMethodHelper(), responseObserver); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + public void completeIPRotation(com.google.container.v1alpha1.CompleteIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCompleteIPRotationMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public void setNodePoolSize(com.google.container.v1alpha1.SetNodePoolSizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetNodePoolSizeMethodHelper(), responseObserver); + } + + /** + *
+     * Enables/Disables Network Policy for a cluster.
+     * 
+ */ + public void setNetworkPolicy(com.google.container.v1alpha1.SetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetNetworkPolicyMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public void setMaintenancePolicy(com.google.container.v1alpha1.SetMaintenancePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetMaintenancePolicyMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * Authorization requires the Google IAM permission
+     * 'container.clusters.setIamPolicy' on the specified resource.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetIamPolicyMethodHelper(), responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * Authorization requires the Google IAM permission
+     * `container.clusters.getIamPolicy` on the specified resource.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetIamPolicyMethodHelper(), responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * There is no permission required to make this API call.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getTestIamPermissionsMethodHelper(), responseObserver); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public void listUsableSubnetworks(com.google.container.v1alpha1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListUsableSubnetworksMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListClustersMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.ListClustersRequest, + com.google.container.v1alpha1.ListClustersResponse>( + this, METHODID_LIST_CLUSTERS))) + .addMethod( + getGetClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.GetClusterRequest, + com.google.container.v1alpha1.Cluster>( + this, METHODID_GET_CLUSTER))) + .addMethod( + getCreateClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.CreateClusterRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_CREATE_CLUSTER))) + .addMethod( + getUpdateClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.UpdateClusterRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_UPDATE_CLUSTER))) + .addMethod( + getUpdateNodePoolMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.UpdateNodePoolRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_UPDATE_NODE_POOL))) + .addMethod( + getSetNodePoolAutoscalingMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetNodePoolAutoscalingRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_NODE_POOL_AUTOSCALING))) + .addMethod( + getSetLoggingServiceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetLoggingServiceRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_LOGGING_SERVICE))) + .addMethod( + getSetMonitoringServiceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetMonitoringServiceRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_MONITORING_SERVICE))) + .addMethod( + getSetAddonsConfigMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetAddonsConfigRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_ADDONS_CONFIG))) + .addMethod( + getSetLocationsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetLocationsRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_LOCATIONS))) + .addMethod( + getUpdateMasterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.UpdateMasterRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_UPDATE_MASTER))) + .addMethod( + getSetMasterAuthMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetMasterAuthRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_MASTER_AUTH))) + .addMethod( + getDeleteClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.DeleteClusterRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_DELETE_CLUSTER))) + .addMethod( + getListOperationsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.ListOperationsRequest, + com.google.container.v1alpha1.ListOperationsResponse>( + this, METHODID_LIST_OPERATIONS))) + .addMethod( + getGetOperationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.GetOperationRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_GET_OPERATION))) + .addMethod( + getCancelOperationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.CancelOperationRequest, + com.google.protobuf.Empty>( + this, METHODID_CANCEL_OPERATION))) + .addMethod( + getGetServerConfigMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.GetServerConfigRequest, + com.google.container.v1alpha1.ServerConfig>( + this, METHODID_GET_SERVER_CONFIG))) + .addMethod( + getListNodePoolsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.ListNodePoolsRequest, + com.google.container.v1alpha1.ListNodePoolsResponse>( + this, METHODID_LIST_NODE_POOLS))) + .addMethod( + getGetNodePoolMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.GetNodePoolRequest, + com.google.container.v1alpha1.NodePool>( + this, METHODID_GET_NODE_POOL))) + .addMethod( + getCreateNodePoolMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.CreateNodePoolRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_CREATE_NODE_POOL))) + .addMethod( + getDeleteNodePoolMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.DeleteNodePoolRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_DELETE_NODE_POOL))) + .addMethod( + getRollbackNodePoolUpgradeMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) + .addMethod( + getSetNodePoolManagementMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetNodePoolManagementRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_NODE_POOL_MANAGEMENT))) + .addMethod( + getSetLabelsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetLabelsRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_LABELS))) + .addMethod( + getSetLegacyAbacMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetLegacyAbacRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_LEGACY_ABAC))) + .addMethod( + getStartIPRotationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.StartIPRotationRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_START_IPROTATION))) + .addMethod( + getCompleteIPRotationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.CompleteIPRotationRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_COMPLETE_IPROTATION))) + .addMethod( + getSetNodePoolSizeMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetNodePoolSizeRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_NODE_POOL_SIZE))) + .addMethod( + getSetNetworkPolicyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetNetworkPolicyRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_NETWORK_POLICY))) + .addMethod( + getSetMaintenancePolicyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.SetMaintenancePolicyRequest, + com.google.container.v1alpha1.Operation>( + this, METHODID_SET_MAINTENANCE_POLICY))) + .addMethod( + getSetIamPolicyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getGetIamPolicyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getListUsableSubnetworksMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1alpha1.ListUsableSubnetworksRequest, + com.google.container.v1alpha1.ListUsableSubnetworksResponse>( + this, METHODID_LIST_USABLE_SUBNETWORKS))) + .build(); + } + } + + /** + *
+   * Google Kubernetes Engine Cluster Manager v1alpha1
+   * 
+ */ + public static final class ClusterManagerStub extends io.grpc.stub.AbstractStub { + private ClusterManagerStub(io.grpc.Channel channel) { + super(channel); + } + + private ClusterManagerStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new ClusterManagerStub(channel, callOptions); + } + + /** + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public void listClusters(com.google.container.v1alpha1.ListClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListClustersMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public void getCluster(com.google.container.v1alpha1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetClusterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the cluster creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range is being used by the cluster.
+     * 
+ */ + public void createCluster(com.google.container.v1alpha1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateClusterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public void updateCluster(com.google.container.v1alpha1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateClusterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the version and/or iamge type of a specific node pool.
+     * 
+ */ + public void updateNodePool(com.google.container.v1alpha1.UpdateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateNodePoolMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public void setNodePoolAutoscaling(com.google.container.v1alpha1.SetNodePoolAutoscalingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetNodePoolAutoscalingMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public void setLoggingService(com.google.container.v1alpha1.SetLoggingServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetLoggingServiceMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public void setMonitoringService(com.google.container.v1alpha1.SetMonitoringServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetMonitoringServiceMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public void setAddonsConfig(com.google.container.v1alpha1.SetAddonsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetAddonsConfigMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the locations for a specific cluster.
+     * 
+ */ + public void setLocations(com.google.container.v1alpha1.SetLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetLocationsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public void updateMaster(com.google.container.v1alpha1.UpdateMasterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateMasterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Used to set master auth materials. Currently supports :-
+     * Changing the admin password for a specific cluster.
+     * This can be either via password generation or explicitly set.
+     * Modify basic_auth.csv and reset the K8S API server.
+     * 
+ */ + public void setMasterAuth(com.google.container.v1alpha1.SetMasterAuthRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetMasterAuthMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster
+     * (e.g. load balancer resources) will not be deleted if they weren't present
+     * at the initial create time.
+     * 
+ */ + public void deleteCluster(com.google.container.v1alpha1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteClusterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + public void listOperations(com.google.container.v1alpha1.ListOperationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListOperationsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + public void getOperation(com.google.container.v1alpha1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetOperationMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Cancels the specified operation.
+     * 
+ */ + public void cancelOperation(com.google.container.v1alpha1.CancelOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCancelOperationMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns configuration info about the Kubernetes Engine service.
+     * 
+ */ + public void getServerConfig(com.google.container.v1alpha1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetServerConfigMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public void listNodePools(com.google.container.v1alpha1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListNodePoolsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the node pool requested.
+     * 
+ */ + public void getNodePool(com.google.container.v1alpha1.GetNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetNodePoolMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public void createNodePool(com.google.container.v1alpha1.CreateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateNodePoolMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public void deleteNodePool(com.google.container.v1alpha1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteNodePoolMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Roll back the previously Aborted or Failed NodePool upgrade.
+     * This will be an no-op if the last upgrade successfully completed.
+     * 
+ */ + public void rollbackNodePoolUpgrade(com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getRollbackNodePoolUpgradeMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public void setNodePoolManagement(com.google.container.v1alpha1.SetNodePoolManagementRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetNodePoolManagementMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets labels on a cluster.
+     * 
+ */ + public void setLabels(com.google.container.v1alpha1.SetLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetLabelsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public void setLegacyAbac(com.google.container.v1alpha1.SetLegacyAbacRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetLegacyAbacMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Start master IP rotation.
+     * 
+ */ + public void startIPRotation(com.google.container.v1alpha1.StartIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getStartIPRotationMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + public void completeIPRotation(com.google.container.v1alpha1.CompleteIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCompleteIPRotationMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public void setNodePoolSize(com.google.container.v1alpha1.SetNodePoolSizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetNodePoolSizeMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Enables/Disables Network Policy for a cluster.
+     * 
+ */ + public void setNetworkPolicy(com.google.container.v1alpha1.SetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetNetworkPolicyMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public void setMaintenancePolicy(com.google.container.v1alpha1.SetMaintenancePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetMaintenancePolicyMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * Authorization requires the Google IAM permission
+     * 'container.clusters.setIamPolicy' on the specified resource.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * Authorization requires the Google IAM permission
+     * `container.clusters.getIamPolicy` on the specified resource.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * There is no permission required to make this API call.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public void listUsableSubnetworks(com.google.container.v1alpha1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Google Kubernetes Engine Cluster Manager v1alpha1
+   * 
+ */ + public static final class ClusterManagerBlockingStub extends io.grpc.stub.AbstractStub { + private ClusterManagerBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private ClusterManagerBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new ClusterManagerBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public com.google.container.v1alpha1.ListClustersResponse listClusters(com.google.container.v1alpha1.ListClustersRequest request) { + return blockingUnaryCall( + getChannel(), getListClustersMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Cluster getCluster(com.google.container.v1alpha1.GetClusterRequest request) { + return blockingUnaryCall( + getChannel(), getGetClusterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the cluster creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range is being used by the cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation createCluster(com.google.container.v1alpha1.CreateClusterRequest request) { + return blockingUnaryCall( + getChannel(), getCreateClusterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation updateCluster(com.google.container.v1alpha1.UpdateClusterRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateClusterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Updates the version and/or iamge type of a specific node pool.
+     * 
+ */ + public com.google.container.v1alpha1.Operation updateNodePool(com.google.container.v1alpha1.UpdateNodePoolRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateNodePoolMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setNodePoolAutoscaling(com.google.container.v1alpha1.SetNodePoolAutoscalingRequest request) { + return blockingUnaryCall( + getChannel(), getSetNodePoolAutoscalingMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setLoggingService(com.google.container.v1alpha1.SetLoggingServiceRequest request) { + return blockingUnaryCall( + getChannel(), getSetLoggingServiceMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setMonitoringService(com.google.container.v1alpha1.SetMonitoringServiceRequest request) { + return blockingUnaryCall( + getChannel(), getSetMonitoringServiceMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setAddonsConfig(com.google.container.v1alpha1.SetAddonsConfigRequest request) { + return blockingUnaryCall( + getChannel(), getSetAddonsConfigMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the locations for a specific cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setLocations(com.google.container.v1alpha1.SetLocationsRequest request) { + return blockingUnaryCall( + getChannel(), getSetLocationsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation updateMaster(com.google.container.v1alpha1.UpdateMasterRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateMasterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Used to set master auth materials. Currently supports :-
+     * Changing the admin password for a specific cluster.
+     * This can be either via password generation or explicitly set.
+     * Modify basic_auth.csv and reset the K8S API server.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setMasterAuth(com.google.container.v1alpha1.SetMasterAuthRequest request) { + return blockingUnaryCall( + getChannel(), getSetMasterAuthMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster
+     * (e.g. load balancer resources) will not be deleted if they weren't present
+     * at the initial create time.
+     * 
+ */ + public com.google.container.v1alpha1.Operation deleteCluster(com.google.container.v1alpha1.DeleteClusterRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteClusterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + public com.google.container.v1alpha1.ListOperationsResponse listOperations(com.google.container.v1alpha1.ListOperationsRequest request) { + return blockingUnaryCall( + getChannel(), getListOperationsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + public com.google.container.v1alpha1.Operation getOperation(com.google.container.v1alpha1.GetOperationRequest request) { + return blockingUnaryCall( + getChannel(), getGetOperationMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Cancels the specified operation.
+     * 
+ */ + public com.google.protobuf.Empty cancelOperation(com.google.container.v1alpha1.CancelOperationRequest request) { + return blockingUnaryCall( + getChannel(), getCancelOperationMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Returns configuration info about the Kubernetes Engine service.
+     * 
+ */ + public com.google.container.v1alpha1.ServerConfig getServerConfig(com.google.container.v1alpha1.GetServerConfigRequest request) { + return blockingUnaryCall( + getChannel(), getGetServerConfigMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.container.v1alpha1.ListNodePoolsResponse listNodePools(com.google.container.v1alpha1.ListNodePoolsRequest request) { + return blockingUnaryCall( + getChannel(), getListNodePoolsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the node pool requested.
+     * 
+ */ + public com.google.container.v1alpha1.NodePool getNodePool(com.google.container.v1alpha1.GetNodePoolRequest request) { + return blockingUnaryCall( + getChannel(), getGetNodePoolMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation createNodePool(com.google.container.v1alpha1.CreateNodePoolRequest request) { + return blockingUnaryCall( + getChannel(), getCreateNodePoolMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation deleteNodePool(com.google.container.v1alpha1.DeleteNodePoolRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteNodePoolMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Roll back the previously Aborted or Failed NodePool upgrade.
+     * This will be an no-op if the last upgrade successfully completed.
+     * 
+ */ + public com.google.container.v1alpha1.Operation rollbackNodePoolUpgrade(com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest request) { + return blockingUnaryCall( + getChannel(), getRollbackNodePoolUpgradeMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setNodePoolManagement(com.google.container.v1alpha1.SetNodePoolManagementRequest request) { + return blockingUnaryCall( + getChannel(), getSetNodePoolManagementMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets labels on a cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setLabels(com.google.container.v1alpha1.SetLabelsRequest request) { + return blockingUnaryCall( + getChannel(), getSetLabelsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setLegacyAbac(com.google.container.v1alpha1.SetLegacyAbacRequest request) { + return blockingUnaryCall( + getChannel(), getSetLegacyAbacMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Start master IP rotation.
+     * 
+ */ + public com.google.container.v1alpha1.Operation startIPRotation(com.google.container.v1alpha1.StartIPRotationRequest request) { + return blockingUnaryCall( + getChannel(), getStartIPRotationMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + public com.google.container.v1alpha1.Operation completeIPRotation(com.google.container.v1alpha1.CompleteIPRotationRequest request) { + return blockingUnaryCall( + getChannel(), getCompleteIPRotationMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setNodePoolSize(com.google.container.v1alpha1.SetNodePoolSizeRequest request) { + return blockingUnaryCall( + getChannel(), getSetNodePoolSizeMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Enables/Disables Network Policy for a cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setNetworkPolicy(com.google.container.v1alpha1.SetNetworkPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getSetNetworkPolicyMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public com.google.container.v1alpha1.Operation setMaintenancePolicy(com.google.container.v1alpha1.SetMaintenancePolicyRequest request) { + return blockingUnaryCall( + getChannel(), getSetMaintenancePolicyMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * Authorization requires the Google IAM permission
+     * 'container.clusters.setIamPolicy' on the specified resource.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getSetIamPolicyMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * Authorization requires the Google IAM permission
+     * `container.clusters.getIamPolicy` on the specified resource.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getGetIamPolicyMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * There is no permission required to make this API call.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return blockingUnaryCall( + getChannel(), getTestIamPermissionsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public com.google.container.v1alpha1.ListUsableSubnetworksResponse listUsableSubnetworks(com.google.container.v1alpha1.ListUsableSubnetworksRequest request) { + return blockingUnaryCall( + getChannel(), getListUsableSubnetworksMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * Google Kubernetes Engine Cluster Manager v1alpha1
+   * 
+ */ + public static final class ClusterManagerFutureStub extends io.grpc.stub.AbstractStub { + private ClusterManagerFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private ClusterManagerFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new ClusterManagerFutureStub(channel, callOptions); + } + + /** + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listClusters( + com.google.container.v1alpha1.ListClustersRequest request) { + return futureUnaryCall( + getChannel().newCall(getListClustersMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCluster( + com.google.container.v1alpha1.GetClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetClusterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the cluster creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range is being used by the cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCluster( + com.google.container.v1alpha1.CreateClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateClusterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCluster( + com.google.container.v1alpha1.UpdateClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateClusterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Updates the version and/or iamge type of a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNodePool( + com.google.container.v1alpha1.UpdateNodePoolRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateNodePoolMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setNodePoolAutoscaling( + com.google.container.v1alpha1.SetNodePoolAutoscalingRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetNodePoolAutoscalingMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setLoggingService( + com.google.container.v1alpha1.SetLoggingServiceRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetLoggingServiceMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setMonitoringService( + com.google.container.v1alpha1.SetMonitoringServiceRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetMonitoringServiceMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setAddonsConfig( + com.google.container.v1alpha1.SetAddonsConfigRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetAddonsConfigMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the locations for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setLocations( + com.google.container.v1alpha1.SetLocationsRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetLocationsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateMaster( + com.google.container.v1alpha1.UpdateMasterRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateMasterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Used to set master auth materials. Currently supports :-
+     * Changing the admin password for a specific cluster.
+     * This can be either via password generation or explicitly set.
+     * Modify basic_auth.csv and reset the K8S API server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setMasterAuth( + com.google.container.v1alpha1.SetMasterAuthRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetMasterAuthMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster
+     * (e.g. load balancer resources) will not be deleted if they weren't present
+     * at the initial create time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCluster( + com.google.container.v1alpha1.DeleteClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteClusterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listOperations( + com.google.container.v1alpha1.ListOperationsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListOperationsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getOperation( + com.google.container.v1alpha1.GetOperationRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetOperationMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Cancels the specified operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture cancelOperation( + com.google.container.v1alpha1.CancelOperationRequest request) { + return futureUnaryCall( + getChannel().newCall(getCancelOperationMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Returns configuration info about the Kubernetes Engine service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getServerConfig( + com.google.container.v1alpha1.GetServerConfigRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetServerConfigMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNodePools( + com.google.container.v1alpha1.ListNodePoolsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListNodePoolsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the node pool requested.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNodePool( + com.google.container.v1alpha1.GetNodePoolRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetNodePoolMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createNodePool( + com.google.container.v1alpha1.CreateNodePoolRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateNodePoolMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteNodePool( + com.google.container.v1alpha1.DeleteNodePoolRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteNodePoolMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Roll back the previously Aborted or Failed NodePool upgrade.
+     * This will be an no-op if the last upgrade successfully completed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture rollbackNodePoolUpgrade( + com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest request) { + return futureUnaryCall( + getChannel().newCall(getRollbackNodePoolUpgradeMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setNodePoolManagement( + com.google.container.v1alpha1.SetNodePoolManagementRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetNodePoolManagementMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets labels on a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setLabels( + com.google.container.v1alpha1.SetLabelsRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetLabelsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setLegacyAbac( + com.google.container.v1alpha1.SetLegacyAbacRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetLegacyAbacMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Start master IP rotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startIPRotation( + com.google.container.v1alpha1.StartIPRotationRequest request) { + return futureUnaryCall( + getChannel().newCall(getStartIPRotationMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture completeIPRotation( + com.google.container.v1alpha1.CompleteIPRotationRequest request) { + return futureUnaryCall( + getChannel().newCall(getCompleteIPRotationMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setNodePoolSize( + com.google.container.v1alpha1.SetNodePoolSizeRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetNodePoolSizeMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Enables/Disables Network Policy for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setNetworkPolicy( + com.google.container.v1alpha1.SetNetworkPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetNetworkPolicyMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setMaintenancePolicy( + com.google.container.v1alpha1.SetMaintenancePolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetMaintenancePolicyMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the access control policy for a resource. Replaces any existing
+     * policy.
+     * Authorization requires the Google IAM permission
+     * 'container.clusters.setIamPolicy' on the specified resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Gets the access control policy for a resource. Returns NOT_FOUND error if
+     * the resource does not exist. Returns an empty policy if the resource exists
+     * but does not have a policy set.
+     * Authorization requires the Google IAM permission
+     * `container.clusters.getIamPolicy` on the specified resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * There is no permission required to make this API call.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableSubnetworks( + com.google.container.v1alpha1.ListUsableSubnetworksRequest request) { + return futureUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CLUSTERS = 0; + private static final int METHODID_GET_CLUSTER = 1; + private static final int METHODID_CREATE_CLUSTER = 2; + private static final int METHODID_UPDATE_CLUSTER = 3; + private static final int METHODID_UPDATE_NODE_POOL = 4; + private static final int METHODID_SET_NODE_POOL_AUTOSCALING = 5; + private static final int METHODID_SET_LOGGING_SERVICE = 6; + private static final int METHODID_SET_MONITORING_SERVICE = 7; + private static final int METHODID_SET_ADDONS_CONFIG = 8; + private static final int METHODID_SET_LOCATIONS = 9; + private static final int METHODID_UPDATE_MASTER = 10; + private static final int METHODID_SET_MASTER_AUTH = 11; + private static final int METHODID_DELETE_CLUSTER = 12; + private static final int METHODID_LIST_OPERATIONS = 13; + private static final int METHODID_GET_OPERATION = 14; + private static final int METHODID_CANCEL_OPERATION = 15; + private static final int METHODID_GET_SERVER_CONFIG = 16; + private static final int METHODID_LIST_NODE_POOLS = 17; + private static final int METHODID_GET_NODE_POOL = 18; + private static final int METHODID_CREATE_NODE_POOL = 19; + private static final int METHODID_DELETE_NODE_POOL = 20; + private static final int METHODID_ROLLBACK_NODE_POOL_UPGRADE = 21; + private static final int METHODID_SET_NODE_POOL_MANAGEMENT = 22; + private static final int METHODID_SET_LABELS = 23; + private static final int METHODID_SET_LEGACY_ABAC = 24; + private static final int METHODID_START_IPROTATION = 25; + private static final int METHODID_COMPLETE_IPROTATION = 26; + private static final int METHODID_SET_NODE_POOL_SIZE = 27; + private static final int METHODID_SET_NETWORK_POLICY = 28; + private static final int METHODID_SET_MAINTENANCE_POLICY = 29; + private static final int METHODID_SET_IAM_POLICY = 30; + private static final int METHODID_GET_IAM_POLICY = 31; + private static final int METHODID_TEST_IAM_PERMISSIONS = 32; + private static final int METHODID_LIST_USABLE_SUBNETWORKS = 33; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ClusterManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ClusterManagerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CLUSTERS: + serviceImpl.listClusters((com.google.container.v1alpha1.ListClustersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CLUSTER: + serviceImpl.getCluster((com.google.container.v1alpha1.GetClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CLUSTER: + serviceImpl.createCluster((com.google.container.v1alpha1.CreateClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CLUSTER: + serviceImpl.updateCluster((com.google.container.v1alpha1.UpdateClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NODE_POOL: + serviceImpl.updateNodePool((com.google.container.v1alpha1.UpdateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_AUTOSCALING: + serviceImpl.setNodePoolAutoscaling((com.google.container.v1alpha1.SetNodePoolAutoscalingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LOGGING_SERVICE: + serviceImpl.setLoggingService((com.google.container.v1alpha1.SetLoggingServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MONITORING_SERVICE: + serviceImpl.setMonitoringService((com.google.container.v1alpha1.SetMonitoringServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_ADDONS_CONFIG: + serviceImpl.setAddonsConfig((com.google.container.v1alpha1.SetAddonsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LOCATIONS: + serviceImpl.setLocations((com.google.container.v1alpha1.SetLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MASTER: + serviceImpl.updateMaster((com.google.container.v1alpha1.UpdateMasterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MASTER_AUTH: + serviceImpl.setMasterAuth((com.google.container.v1alpha1.SetMasterAuthRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CLUSTER: + serviceImpl.deleteCluster((com.google.container.v1alpha1.DeleteClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_OPERATIONS: + serviceImpl.listOperations((com.google.container.v1alpha1.ListOperationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_OPERATION: + serviceImpl.getOperation((com.google.container.v1alpha1.GetOperationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_OPERATION: + serviceImpl.cancelOperation((com.google.container.v1alpha1.CancelOperationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVER_CONFIG: + serviceImpl.getServerConfig((com.google.container.v1alpha1.GetServerConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NODE_POOLS: + serviceImpl.listNodePools((com.google.container.v1alpha1.ListNodePoolsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NODE_POOL: + serviceImpl.getNodePool((com.google.container.v1alpha1.GetNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NODE_POOL: + serviceImpl.createNodePool((com.google.container.v1alpha1.CreateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NODE_POOL: + serviceImpl.deleteNodePool((com.google.container.v1alpha1.DeleteNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLLBACK_NODE_POOL_UPGRADE: + serviceImpl.rollbackNodePoolUpgrade((com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_MANAGEMENT: + serviceImpl.setNodePoolManagement((com.google.container.v1alpha1.SetNodePoolManagementRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LABELS: + serviceImpl.setLabels((com.google.container.v1alpha1.SetLabelsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LEGACY_ABAC: + serviceImpl.setLegacyAbac((com.google.container.v1alpha1.SetLegacyAbacRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_IPROTATION: + serviceImpl.startIPRotation((com.google.container.v1alpha1.StartIPRotationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPLETE_IPROTATION: + serviceImpl.completeIPRotation((com.google.container.v1alpha1.CompleteIPRotationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_SIZE: + serviceImpl.setNodePoolSize((com.google.container.v1alpha1.SetNodePoolSizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NETWORK_POLICY: + serviceImpl.setNetworkPolicy((com.google.container.v1alpha1.SetNetworkPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MAINTENANCE_POLICY: + serviceImpl.setMaintenancePolicy((com.google.container.v1alpha1.SetMaintenancePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_SUBNETWORKS: + serviceImpl.listUsableSubnetworks((com.google.container.v1alpha1.ListUsableSubnetworksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ClusterManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ClusterManager"); + } + } + + private static final class ClusterManagerFileDescriptorSupplier + extends ClusterManagerBaseDescriptorSupplier { + ClusterManagerFileDescriptorSupplier() {} + } + + private static final class ClusterManagerMethodDescriptorSupplier + extends ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ClusterManagerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ClusterManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ClusterManagerFileDescriptorSupplier()) + .addMethod(getListClustersMethodHelper()) + .addMethod(getGetClusterMethodHelper()) + .addMethod(getCreateClusterMethodHelper()) + .addMethod(getUpdateClusterMethodHelper()) + .addMethod(getUpdateNodePoolMethodHelper()) + .addMethod(getSetNodePoolAutoscalingMethodHelper()) + .addMethod(getSetLoggingServiceMethodHelper()) + .addMethod(getSetMonitoringServiceMethodHelper()) + .addMethod(getSetAddonsConfigMethodHelper()) + .addMethod(getSetLocationsMethodHelper()) + .addMethod(getUpdateMasterMethodHelper()) + .addMethod(getSetMasterAuthMethodHelper()) + .addMethod(getDeleteClusterMethodHelper()) + .addMethod(getListOperationsMethodHelper()) + .addMethod(getGetOperationMethodHelper()) + .addMethod(getCancelOperationMethodHelper()) + .addMethod(getGetServerConfigMethodHelper()) + .addMethod(getListNodePoolsMethodHelper()) + .addMethod(getGetNodePoolMethodHelper()) + .addMethod(getCreateNodePoolMethodHelper()) + .addMethod(getDeleteNodePoolMethodHelper()) + .addMethod(getRollbackNodePoolUpgradeMethodHelper()) + .addMethod(getSetNodePoolManagementMethodHelper()) + .addMethod(getSetLabelsMethodHelper()) + .addMethod(getSetLegacyAbacMethodHelper()) + .addMethod(getStartIPRotationMethodHelper()) + .addMethod(getCompleteIPRotationMethodHelper()) + .addMethod(getSetNodePoolSizeMethodHelper()) + .addMethod(getSetNetworkPolicyMethodHelper()) + .addMethod(getSetMaintenancePolicyMethodHelper()) + .addMethod(getSetIamPolicyMethodHelper()) + .addMethod(getGetIamPolicyMethodHelper()) + .addMethod(getTestIamPermissionsMethodHelper()) + .addMethod(getListUsableSubnetworksMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java b/google-api-grpc/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java new file mode 100644 index 000000000000..038de00294e5 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java @@ -0,0 +1,3245 @@ +package com.google.container.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Google Kubernetes Engine Cluster Manager v1beta1
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/container/v1beta1/cluster_service.proto") +public final class ClusterManagerGrpc { + + private ClusterManagerGrpc() {} + + public static final String SERVICE_NAME = "google.container.v1beta1.ClusterManager"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListClustersMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_CLUSTERS = getListClustersMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListClustersMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListClustersMethod() { + return getListClustersMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListClustersMethodHelper() { + io.grpc.MethodDescriptor getListClustersMethod; + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + ClusterManagerGrpc.getListClustersMethod = getListClustersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "ListClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListClustersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListClustersResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListClusters")) + .build(); + } + } + } + return getListClustersMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetClusterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_CLUSTER = getGetClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetClusterMethod() { + return getGetClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetClusterMethodHelper() { + io.grpc.MethodDescriptor getGetClusterMethod; + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + ClusterManagerGrpc.getGetClusterMethod = getGetClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "GetCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Cluster.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetCluster")) + .build(); + } + } + } + return getGetClusterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateClusterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_CREATE_CLUSTER = getCreateClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCreateClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCreateClusterMethod() { + return getCreateClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCreateClusterMethodHelper() { + io.grpc.MethodDescriptor getCreateClusterMethod; + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + ClusterManagerGrpc.getCreateClusterMethod = getCreateClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "CreateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CreateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CreateCluster")) + .build(); + } + } + } + return getCreateClusterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateClusterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_UPDATE_CLUSTER = getUpdateClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getUpdateClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getUpdateClusterMethod() { + return getUpdateClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getUpdateClusterMethodHelper() { + io.grpc.MethodDescriptor getUpdateClusterMethod; + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + ClusterManagerGrpc.getUpdateClusterMethod = getUpdateClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "UpdateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.UpdateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("UpdateCluster")) + .build(); + } + } + } + return getUpdateClusterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateNodePoolMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_UPDATE_NODE_POOL = getUpdateNodePoolMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getUpdateNodePoolMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getUpdateNodePoolMethod() { + return getUpdateNodePoolMethodHelper(); + } + + private static io.grpc.MethodDescriptor getUpdateNodePoolMethodHelper() { + io.grpc.MethodDescriptor getUpdateNodePoolMethod; + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + ClusterManagerGrpc.getUpdateNodePoolMethod = getUpdateNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "UpdateNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.UpdateNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("UpdateNodePool")) + .build(); + } + } + } + return getUpdateNodePoolMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetNodePoolAutoscalingMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_NODE_POOL_AUTOSCALING = getSetNodePoolAutoscalingMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethod() { + return getSetNodePoolAutoscalingMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethodHelper() { + io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethod; + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) == null) { + ClusterManagerGrpc.getSetNodePoolAutoscalingMethod = getSetNodePoolAutoscalingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetNodePoolAutoscaling")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNodePoolAutoscaling")) + .build(); + } + } + } + return getSetNodePoolAutoscalingMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetLoggingServiceMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_LOGGING_SERVICE = getSetLoggingServiceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetLoggingServiceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetLoggingServiceMethod() { + return getSetLoggingServiceMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetLoggingServiceMethodHelper() { + io.grpc.MethodDescriptor getSetLoggingServiceMethod; + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + ClusterManagerGrpc.getSetLoggingServiceMethod = getSetLoggingServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetLoggingService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetLoggingServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLoggingService")) + .build(); + } + } + } + return getSetLoggingServiceMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetMonitoringServiceMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_MONITORING_SERVICE = getSetMonitoringServiceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetMonitoringServiceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetMonitoringServiceMethod() { + return getSetMonitoringServiceMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetMonitoringServiceMethodHelper() { + io.grpc.MethodDescriptor getSetMonitoringServiceMethod; + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) == null) { + ClusterManagerGrpc.getSetMonitoringServiceMethod = getSetMonitoringServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetMonitoringService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetMonitoringServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetMonitoringService")) + .build(); + } + } + } + return getSetMonitoringServiceMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetAddonsConfigMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_ADDONS_CONFIG = getSetAddonsConfigMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetAddonsConfigMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetAddonsConfigMethod() { + return getSetAddonsConfigMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetAddonsConfigMethodHelper() { + io.grpc.MethodDescriptor getSetAddonsConfigMethod; + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + ClusterManagerGrpc.getSetAddonsConfigMethod = getSetAddonsConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetAddonsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetAddonsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetAddonsConfig")) + .build(); + } + } + } + return getSetAddonsConfigMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetLocationsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_LOCATIONS = getSetLocationsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetLocationsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetLocationsMethod() { + return getSetLocationsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetLocationsMethodHelper() { + io.grpc.MethodDescriptor getSetLocationsMethod; + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + ClusterManagerGrpc.getSetLocationsMethod = getSetLocationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetLocations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetLocationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLocations")) + .build(); + } + } + } + return getSetLocationsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateMasterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_UPDATE_MASTER = getUpdateMasterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getUpdateMasterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getUpdateMasterMethod() { + return getUpdateMasterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getUpdateMasterMethodHelper() { + io.grpc.MethodDescriptor getUpdateMasterMethod; + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + ClusterManagerGrpc.getUpdateMasterMethod = getUpdateMasterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "UpdateMaster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.UpdateMasterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("UpdateMaster")) + .build(); + } + } + } + return getUpdateMasterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetMasterAuthMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_MASTER_AUTH = getSetMasterAuthMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetMasterAuthMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetMasterAuthMethod() { + return getSetMasterAuthMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetMasterAuthMethodHelper() { + io.grpc.MethodDescriptor getSetMasterAuthMethod; + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + ClusterManagerGrpc.getSetMasterAuthMethod = getSetMasterAuthMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetMasterAuth")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetMasterAuthRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetMasterAuth")) + .build(); + } + } + } + return getSetMasterAuthMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteClusterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_DELETE_CLUSTER = getDeleteClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getDeleteClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getDeleteClusterMethod() { + return getDeleteClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getDeleteClusterMethodHelper() { + io.grpc.MethodDescriptor getDeleteClusterMethod; + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + ClusterManagerGrpc.getDeleteClusterMethod = getDeleteClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "DeleteCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.DeleteClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("DeleteCluster")) + .build(); + } + } + } + return getDeleteClusterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListOperationsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_OPERATIONS = getListOperationsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListOperationsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListOperationsMethod() { + return getListOperationsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListOperationsMethodHelper() { + io.grpc.MethodDescriptor getListOperationsMethod; + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + ClusterManagerGrpc.getListOperationsMethod = getListOperationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "ListOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListOperationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListOperationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListOperations")) + .build(); + } + } + } + return getListOperationsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetOperationMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_OPERATION = getGetOperationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetOperationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetOperationMethod() { + return getGetOperationMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetOperationMethodHelper() { + io.grpc.MethodDescriptor getGetOperationMethod; + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + ClusterManagerGrpc.getGetOperationMethod = getGetOperationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "GetOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetOperationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetOperation")) + .build(); + } + } + } + return getGetOperationMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCancelOperationMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_CANCEL_OPERATION = getCancelOperationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCancelOperationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCancelOperationMethod() { + return getCancelOperationMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCancelOperationMethodHelper() { + io.grpc.MethodDescriptor getCancelOperationMethod; + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + ClusterManagerGrpc.getCancelOperationMethod = getCancelOperationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "CancelOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CancelOperationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CancelOperation")) + .build(); + } + } + } + return getCancelOperationMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetServerConfigMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_SERVER_CONFIG = getGetServerConfigMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetServerConfigMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetServerConfigMethod() { + return getGetServerConfigMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetServerConfigMethodHelper() { + io.grpc.MethodDescriptor getGetServerConfigMethod; + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + ClusterManagerGrpc.getGetServerConfigMethod = getGetServerConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "GetServerConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetServerConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ServerConfig.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetServerConfig")) + .build(); + } + } + } + return getGetServerConfigMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListNodePoolsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_NODE_POOLS = getListNodePoolsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListNodePoolsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListNodePoolsMethod() { + return getListNodePoolsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListNodePoolsMethodHelper() { + io.grpc.MethodDescriptor getListNodePoolsMethod; + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + ClusterManagerGrpc.getListNodePoolsMethod = getListNodePoolsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "ListNodePools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListNodePoolsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListNodePoolsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListNodePools")) + .build(); + } + } + } + return getListNodePoolsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetNodePoolMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_NODE_POOL = getGetNodePoolMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetNodePoolMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetNodePoolMethod() { + return getGetNodePoolMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetNodePoolMethodHelper() { + io.grpc.MethodDescriptor getGetNodePoolMethod; + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + ClusterManagerGrpc.getGetNodePoolMethod = getGetNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "GetNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.NodePool.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetNodePool")) + .build(); + } + } + } + return getGetNodePoolMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateNodePoolMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_CREATE_NODE_POOL = getCreateNodePoolMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCreateNodePoolMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCreateNodePoolMethod() { + return getCreateNodePoolMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCreateNodePoolMethodHelper() { + io.grpc.MethodDescriptor getCreateNodePoolMethod; + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + ClusterManagerGrpc.getCreateNodePoolMethod = getCreateNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "CreateNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CreateNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CreateNodePool")) + .build(); + } + } + } + return getCreateNodePoolMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteNodePoolMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_DELETE_NODE_POOL = getDeleteNodePoolMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getDeleteNodePoolMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getDeleteNodePoolMethod() { + return getDeleteNodePoolMethodHelper(); + } + + private static io.grpc.MethodDescriptor getDeleteNodePoolMethodHelper() { + io.grpc.MethodDescriptor getDeleteNodePoolMethod; + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + ClusterManagerGrpc.getDeleteNodePoolMethod = getDeleteNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "DeleteNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.DeleteNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("DeleteNodePool")) + .build(); + } + } + } + return getDeleteNodePoolMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getRollbackNodePoolUpgradeMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_ROLLBACK_NODE_POOL_UPGRADE = getRollbackNodePoolUpgradeMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethod() { + return getRollbackNodePoolUpgradeMethodHelper(); + } + + private static io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethodHelper() { + io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethod; + if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) == null) { + ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod = getRollbackNodePoolUpgradeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "RollbackNodePoolUpgrade")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("RollbackNodePoolUpgrade")) + .build(); + } + } + } + return getRollbackNodePoolUpgradeMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetNodePoolManagementMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_NODE_POOL_MANAGEMENT = getSetNodePoolManagementMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetNodePoolManagementMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetNodePoolManagementMethod() { + return getSetNodePoolManagementMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetNodePoolManagementMethodHelper() { + io.grpc.MethodDescriptor getSetNodePoolManagementMethod; + if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) == null) { + ClusterManagerGrpc.getSetNodePoolManagementMethod = getSetNodePoolManagementMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetNodePoolManagement")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetNodePoolManagementRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNodePoolManagement")) + .build(); + } + } + } + return getSetNodePoolManagementMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetLabelsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_LABELS = getSetLabelsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetLabelsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetLabelsMethod() { + return getSetLabelsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetLabelsMethodHelper() { + io.grpc.MethodDescriptor getSetLabelsMethod; + if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { + ClusterManagerGrpc.getSetLabelsMethod = getSetLabelsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetLabels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetLabelsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLabels")) + .build(); + } + } + } + return getSetLabelsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetLegacyAbacMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_LEGACY_ABAC = getSetLegacyAbacMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetLegacyAbacMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetLegacyAbacMethod() { + return getSetLegacyAbacMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetLegacyAbacMethodHelper() { + io.grpc.MethodDescriptor getSetLegacyAbacMethod; + if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { + ClusterManagerGrpc.getSetLegacyAbacMethod = getSetLegacyAbacMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetLegacyAbac")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetLegacyAbacRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLegacyAbac")) + .build(); + } + } + } + return getSetLegacyAbacMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getStartIPRotationMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_START_IPROTATION = getStartIPRotationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getStartIPRotationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getStartIPRotationMethod() { + return getStartIPRotationMethodHelper(); + } + + private static io.grpc.MethodDescriptor getStartIPRotationMethodHelper() { + io.grpc.MethodDescriptor getStartIPRotationMethod; + if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { + ClusterManagerGrpc.getStartIPRotationMethod = getStartIPRotationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "StartIPRotation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.StartIPRotationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("StartIPRotation")) + .build(); + } + } + } + return getStartIPRotationMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCompleteIPRotationMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_COMPLETE_IPROTATION = getCompleteIPRotationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCompleteIPRotationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCompleteIPRotationMethod() { + return getCompleteIPRotationMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCompleteIPRotationMethodHelper() { + io.grpc.MethodDescriptor getCompleteIPRotationMethod; + if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) == null) { + ClusterManagerGrpc.getCompleteIPRotationMethod = getCompleteIPRotationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "CompleteIPRotation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CompleteIPRotationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CompleteIPRotation")) + .build(); + } + } + } + return getCompleteIPRotationMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetNodePoolSizeMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_NODE_POOL_SIZE = getSetNodePoolSizeMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetNodePoolSizeMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetNodePoolSizeMethod() { + return getSetNodePoolSizeMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetNodePoolSizeMethodHelper() { + io.grpc.MethodDescriptor getSetNodePoolSizeMethod; + if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { + ClusterManagerGrpc.getSetNodePoolSizeMethod = getSetNodePoolSizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetNodePoolSize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetNodePoolSizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNodePoolSize")) + .build(); + } + } + } + return getSetNodePoolSizeMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetNetworkPolicyMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_NETWORK_POLICY = getSetNetworkPolicyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetNetworkPolicyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetNetworkPolicyMethod() { + return getSetNetworkPolicyMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetNetworkPolicyMethodHelper() { + io.grpc.MethodDescriptor getSetNetworkPolicyMethod; + if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { + ClusterManagerGrpc.getSetNetworkPolicyMethod = getSetNetworkPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetNetworkPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNetworkPolicy")) + .build(); + } + } + } + return getSetNetworkPolicyMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetMaintenancePolicyMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SET_MAINTENANCE_POLICY = getSetMaintenancePolicyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSetMaintenancePolicyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSetMaintenancePolicyMethod() { + return getSetMaintenancePolicyMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSetMaintenancePolicyMethodHelper() { + io.grpc.MethodDescriptor getSetMaintenancePolicyMethod; + if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) == null) { + ClusterManagerGrpc.getSetMaintenancePolicyMethod = getSetMaintenancePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "SetMaintenancePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetMaintenancePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetMaintenancePolicy")) + .build(); + } + } + } + return getSetMaintenancePolicyMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListUsableSubnetworksMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_USABLE_SUBNETWORKS = getListUsableSubnetworksMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListUsableSubnetworksMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListUsableSubnetworksMethod() { + return getListUsableSubnetworksMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListUsableSubnetworksMethodHelper() { + io.grpc.MethodDescriptor getListUsableSubnetworksMethod; + if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) == null) { + ClusterManagerGrpc.getListUsableSubnetworksMethod = getListUsableSubnetworksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "ListUsableSubnetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListUsableSubnetworksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListUsableSubnetworksResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListUsableSubnetworks")) + .build(); + } + } + } + return getListUsableSubnetworksMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListLocationsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_LOCATIONS = getListLocationsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListLocationsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListLocationsMethod() { + return getListLocationsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListLocationsMethodHelper() { + io.grpc.MethodDescriptor getListLocationsMethod; + if ((getListLocationsMethod = ClusterManagerGrpc.getListLocationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListLocationsMethod = ClusterManagerGrpc.getListLocationsMethod) == null) { + ClusterManagerGrpc.getListLocationsMethod = getListLocationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.container.v1beta1.ClusterManager", "ListLocations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListLocationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListLocations")) + .build(); + } + } + } + return getListLocationsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ClusterManagerStub newStub(io.grpc.Channel channel) { + return new ClusterManagerStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ClusterManagerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new ClusterManagerBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ClusterManagerFutureStub newFutureStub( + io.grpc.Channel channel) { + return new ClusterManagerFutureStub(channel); + } + + /** + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static abstract class ClusterManagerImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public void listClusters(com.google.container.v1beta1.ListClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListClustersMethodHelper(), responseObserver); + } + + /** + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public void getCluster(com.google.container.v1beta1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetClusterMethodHelper(), responseObserver); + } + + /** + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the cluster creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range is being used by the cluster.
+     * 
+ */ + public void createCluster(com.google.container.v1beta1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateClusterMethodHelper(), responseObserver); + } + + /** + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public void updateCluster(com.google.container.v1beta1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateClusterMethodHelper(), responseObserver); + } + + /** + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public void updateNodePool(com.google.container.v1beta1.UpdateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateNodePoolMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public void setNodePoolAutoscaling(com.google.container.v1beta1.SetNodePoolAutoscalingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetNodePoolAutoscalingMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public void setLoggingService(com.google.container.v1beta1.SetLoggingServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetLoggingServiceMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public void setMonitoringService(com.google.container.v1beta1.SetMonitoringServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetMonitoringServiceMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public void setAddonsConfig(com.google.container.v1beta1.SetAddonsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetAddonsConfigMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the locations for a specific cluster.
+     * 
+ */ + public void setLocations(com.google.container.v1beta1.SetLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetLocationsMethodHelper(), responseObserver); + } + + /** + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public void updateMaster(com.google.container.v1beta1.UpdateMasterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateMasterMethodHelper(), responseObserver); + } + + /** + *
+     * Used to set master auth materials. Currently supports :-
+     * Changing the admin password for a specific cluster.
+     * This can be either via password generation or explicitly set.
+     * Modify basic_auth.csv and reset the K8S API server.
+     * 
+ */ + public void setMasterAuth(com.google.container.v1beta1.SetMasterAuthRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetMasterAuthMethodHelper(), responseObserver); + } + + /** + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster
+     * (e.g. load balancer resources) will not be deleted if they weren't present
+     * at the initial create time.
+     * 
+ */ + public void deleteCluster(com.google.container.v1beta1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteClusterMethodHelper(), responseObserver); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + public void listOperations(com.google.container.v1beta1.ListOperationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListOperationsMethodHelper(), responseObserver); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + public void getOperation(com.google.container.v1beta1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetOperationMethodHelper(), responseObserver); + } + + /** + *
+     * Cancels the specified operation.
+     * 
+ */ + public void cancelOperation(com.google.container.v1beta1.CancelOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCancelOperationMethodHelper(), responseObserver); + } + + /** + *
+     * Returns configuration info about the Kubernetes Engine service.
+     * 
+ */ + public void getServerConfig(com.google.container.v1beta1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetServerConfigMethodHelper(), responseObserver); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public void listNodePools(com.google.container.v1beta1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListNodePoolsMethodHelper(), responseObserver); + } + + /** + *
+     * Retrieves the node pool requested.
+     * 
+ */ + public void getNodePool(com.google.container.v1beta1.GetNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetNodePoolMethodHelper(), responseObserver); + } + + /** + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public void createNodePool(com.google.container.v1beta1.CreateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateNodePoolMethodHelper(), responseObserver); + } + + /** + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public void deleteNodePool(com.google.container.v1beta1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteNodePoolMethodHelper(), responseObserver); + } + + /** + *
+     * Roll back the previously Aborted or Failed NodePool upgrade.
+     * This will be an no-op if the last upgrade successfully completed.
+     * 
+ */ + public void rollbackNodePoolUpgrade(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getRollbackNodePoolUpgradeMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public void setNodePoolManagement(com.google.container.v1beta1.SetNodePoolManagementRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetNodePoolManagementMethodHelper(), responseObserver); + } + + /** + *
+     * Sets labels on a cluster.
+     * 
+ */ + public void setLabels(com.google.container.v1beta1.SetLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetLabelsMethodHelper(), responseObserver); + } + + /** + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public void setLegacyAbac(com.google.container.v1beta1.SetLegacyAbacRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetLegacyAbacMethodHelper(), responseObserver); + } + + /** + *
+     * Start master IP rotation.
+     * 
+ */ + public void startIPRotation(com.google.container.v1beta1.StartIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getStartIPRotationMethodHelper(), responseObserver); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + public void completeIPRotation(com.google.container.v1beta1.CompleteIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCompleteIPRotationMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public void setNodePoolSize(com.google.container.v1beta1.SetNodePoolSizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetNodePoolSizeMethodHelper(), responseObserver); + } + + /** + *
+     * Enables/Disables Network Policy for a cluster.
+     * 
+ */ + public void setNetworkPolicy(com.google.container.v1beta1.SetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetNetworkPolicyMethodHelper(), responseObserver); + } + + /** + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public void setMaintenancePolicy(com.google.container.v1beta1.SetMaintenancePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetMaintenancePolicyMethodHelper(), responseObserver); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public void listUsableSubnetworks(com.google.container.v1beta1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListUsableSubnetworksMethodHelper(), responseObserver); + } + + /** + *
+     * Used to fetch locations that offer GKE.
+     * 
+ */ + public void listLocations(com.google.container.v1beta1.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListLocationsMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListClustersMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListClustersRequest, + com.google.container.v1beta1.ListClustersResponse>( + this, METHODID_LIST_CLUSTERS))) + .addMethod( + getGetClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetClusterRequest, + com.google.container.v1beta1.Cluster>( + this, METHODID_GET_CLUSTER))) + .addMethod( + getCreateClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CreateClusterRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_CREATE_CLUSTER))) + .addMethod( + getUpdateClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateClusterRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_UPDATE_CLUSTER))) + .addMethod( + getUpdateNodePoolMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateNodePoolRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_UPDATE_NODE_POOL))) + .addMethod( + getSetNodePoolAutoscalingMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolAutoscalingRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_NODE_POOL_AUTOSCALING))) + .addMethod( + getSetLoggingServiceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLoggingServiceRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_LOGGING_SERVICE))) + .addMethod( + getSetMonitoringServiceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMonitoringServiceRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_MONITORING_SERVICE))) + .addMethod( + getSetAddonsConfigMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetAddonsConfigRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_ADDONS_CONFIG))) + .addMethod( + getSetLocationsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLocationsRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_LOCATIONS))) + .addMethod( + getUpdateMasterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateMasterRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_UPDATE_MASTER))) + .addMethod( + getSetMasterAuthMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMasterAuthRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_MASTER_AUTH))) + .addMethod( + getDeleteClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.DeleteClusterRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_DELETE_CLUSTER))) + .addMethod( + getListOperationsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListOperationsRequest, + com.google.container.v1beta1.ListOperationsResponse>( + this, METHODID_LIST_OPERATIONS))) + .addMethod( + getGetOperationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetOperationRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_GET_OPERATION))) + .addMethod( + getCancelOperationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CancelOperationRequest, + com.google.protobuf.Empty>( + this, METHODID_CANCEL_OPERATION))) + .addMethod( + getGetServerConfigMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetServerConfigRequest, + com.google.container.v1beta1.ServerConfig>( + this, METHODID_GET_SERVER_CONFIG))) + .addMethod( + getListNodePoolsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListNodePoolsRequest, + com.google.container.v1beta1.ListNodePoolsResponse>( + this, METHODID_LIST_NODE_POOLS))) + .addMethod( + getGetNodePoolMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetNodePoolRequest, + com.google.container.v1beta1.NodePool>( + this, METHODID_GET_NODE_POOL))) + .addMethod( + getCreateNodePoolMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CreateNodePoolRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_CREATE_NODE_POOL))) + .addMethod( + getDeleteNodePoolMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.DeleteNodePoolRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_DELETE_NODE_POOL))) + .addMethod( + getRollbackNodePoolUpgradeMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) + .addMethod( + getSetNodePoolManagementMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolManagementRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_NODE_POOL_MANAGEMENT))) + .addMethod( + getSetLabelsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLabelsRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_LABELS))) + .addMethod( + getSetLegacyAbacMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLegacyAbacRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_LEGACY_ABAC))) + .addMethod( + getStartIPRotationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.StartIPRotationRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_START_IPROTATION))) + .addMethod( + getCompleteIPRotationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CompleteIPRotationRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_COMPLETE_IPROTATION))) + .addMethod( + getSetNodePoolSizeMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolSizeRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_NODE_POOL_SIZE))) + .addMethod( + getSetNetworkPolicyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNetworkPolicyRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_NETWORK_POLICY))) + .addMethod( + getSetMaintenancePolicyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMaintenancePolicyRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_MAINTENANCE_POLICY))) + .addMethod( + getListUsableSubnetworksMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListUsableSubnetworksRequest, + com.google.container.v1beta1.ListUsableSubnetworksResponse>( + this, METHODID_LIST_USABLE_SUBNETWORKS))) + .addMethod( + getListLocationsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListLocationsRequest, + com.google.container.v1beta1.ListLocationsResponse>( + this, METHODID_LIST_LOCATIONS))) + .build(); + } + } + + /** + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static final class ClusterManagerStub extends io.grpc.stub.AbstractStub { + private ClusterManagerStub(io.grpc.Channel channel) { + super(channel); + } + + private ClusterManagerStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new ClusterManagerStub(channel, callOptions); + } + + /** + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public void listClusters(com.google.container.v1beta1.ListClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListClustersMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public void getCluster(com.google.container.v1beta1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetClusterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the cluster creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range is being used by the cluster.
+     * 
+ */ + public void createCluster(com.google.container.v1beta1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateClusterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public void updateCluster(com.google.container.v1beta1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateClusterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public void updateNodePool(com.google.container.v1beta1.UpdateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateNodePoolMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public void setNodePoolAutoscaling(com.google.container.v1beta1.SetNodePoolAutoscalingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetNodePoolAutoscalingMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public void setLoggingService(com.google.container.v1beta1.SetLoggingServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetLoggingServiceMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public void setMonitoringService(com.google.container.v1beta1.SetMonitoringServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetMonitoringServiceMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public void setAddonsConfig(com.google.container.v1beta1.SetAddonsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetAddonsConfigMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the locations for a specific cluster.
+     * 
+ */ + public void setLocations(com.google.container.v1beta1.SetLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetLocationsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public void updateMaster(com.google.container.v1beta1.UpdateMasterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateMasterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Used to set master auth materials. Currently supports :-
+     * Changing the admin password for a specific cluster.
+     * This can be either via password generation or explicitly set.
+     * Modify basic_auth.csv and reset the K8S API server.
+     * 
+ */ + public void setMasterAuth(com.google.container.v1beta1.SetMasterAuthRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetMasterAuthMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster
+     * (e.g. load balancer resources) will not be deleted if they weren't present
+     * at the initial create time.
+     * 
+ */ + public void deleteCluster(com.google.container.v1beta1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteClusterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + public void listOperations(com.google.container.v1beta1.ListOperationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListOperationsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + public void getOperation(com.google.container.v1beta1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetOperationMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Cancels the specified operation.
+     * 
+ */ + public void cancelOperation(com.google.container.v1beta1.CancelOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCancelOperationMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns configuration info about the Kubernetes Engine service.
+     * 
+ */ + public void getServerConfig(com.google.container.v1beta1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetServerConfigMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public void listNodePools(com.google.container.v1beta1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListNodePoolsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the node pool requested.
+     * 
+ */ + public void getNodePool(com.google.container.v1beta1.GetNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetNodePoolMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public void createNodePool(com.google.container.v1beta1.CreateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateNodePoolMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public void deleteNodePool(com.google.container.v1beta1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteNodePoolMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Roll back the previously Aborted or Failed NodePool upgrade.
+     * This will be an no-op if the last upgrade successfully completed.
+     * 
+ */ + public void rollbackNodePoolUpgrade(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getRollbackNodePoolUpgradeMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public void setNodePoolManagement(com.google.container.v1beta1.SetNodePoolManagementRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetNodePoolManagementMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets labels on a cluster.
+     * 
+ */ + public void setLabels(com.google.container.v1beta1.SetLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetLabelsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public void setLegacyAbac(com.google.container.v1beta1.SetLegacyAbacRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetLegacyAbacMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Start master IP rotation.
+     * 
+ */ + public void startIPRotation(com.google.container.v1beta1.StartIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getStartIPRotationMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + public void completeIPRotation(com.google.container.v1beta1.CompleteIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCompleteIPRotationMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public void setNodePoolSize(com.google.container.v1beta1.SetNodePoolSizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetNodePoolSizeMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Enables/Disables Network Policy for a cluster.
+     * 
+ */ + public void setNetworkPolicy(com.google.container.v1beta1.SetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetNetworkPolicyMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public void setMaintenancePolicy(com.google.container.v1beta1.SetMaintenancePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetMaintenancePolicyMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public void listUsableSubnetworks(com.google.container.v1beta1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Used to fetch locations that offer GKE.
+     * 
+ */ + public void listLocations(com.google.container.v1beta1.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListLocationsMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static final class ClusterManagerBlockingStub extends io.grpc.stub.AbstractStub { + private ClusterManagerBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private ClusterManagerBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new ClusterManagerBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public com.google.container.v1beta1.ListClustersResponse listClusters(com.google.container.v1beta1.ListClustersRequest request) { + return blockingUnaryCall( + getChannel(), getListClustersMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Cluster getCluster(com.google.container.v1beta1.GetClusterRequest request) { + return blockingUnaryCall( + getChannel(), getGetClusterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the cluster creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range is being used by the cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation createCluster(com.google.container.v1beta1.CreateClusterRequest request) { + return blockingUnaryCall( + getChannel(), getCreateClusterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation updateCluster(com.google.container.v1beta1.UpdateClusterRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateClusterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public com.google.container.v1beta1.Operation updateNodePool(com.google.container.v1beta1.UpdateNodePoolRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateNodePoolMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public com.google.container.v1beta1.Operation setNodePoolAutoscaling(com.google.container.v1beta1.SetNodePoolAutoscalingRequest request) { + return blockingUnaryCall( + getChannel(), getSetNodePoolAutoscalingMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setLoggingService(com.google.container.v1beta1.SetLoggingServiceRequest request) { + return blockingUnaryCall( + getChannel(), getSetLoggingServiceMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setMonitoringService(com.google.container.v1beta1.SetMonitoringServiceRequest request) { + return blockingUnaryCall( + getChannel(), getSetMonitoringServiceMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setAddonsConfig(com.google.container.v1beta1.SetAddonsConfigRequest request) { + return blockingUnaryCall( + getChannel(), getSetAddonsConfigMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the locations for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setLocations(com.google.container.v1beta1.SetLocationsRequest request) { + return blockingUnaryCall( + getChannel(), getSetLocationsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation updateMaster(com.google.container.v1beta1.UpdateMasterRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateMasterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Used to set master auth materials. Currently supports :-
+     * Changing the admin password for a specific cluster.
+     * This can be either via password generation or explicitly set.
+     * Modify basic_auth.csv and reset the K8S API server.
+     * 
+ */ + public com.google.container.v1beta1.Operation setMasterAuth(com.google.container.v1beta1.SetMasterAuthRequest request) { + return blockingUnaryCall( + getChannel(), getSetMasterAuthMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster
+     * (e.g. load balancer resources) will not be deleted if they weren't present
+     * at the initial create time.
+     * 
+ */ + public com.google.container.v1beta1.Operation deleteCluster(com.google.container.v1beta1.DeleteClusterRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteClusterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + public com.google.container.v1beta1.ListOperationsResponse listOperations(com.google.container.v1beta1.ListOperationsRequest request) { + return blockingUnaryCall( + getChannel(), getListOperationsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + public com.google.container.v1beta1.Operation getOperation(com.google.container.v1beta1.GetOperationRequest request) { + return blockingUnaryCall( + getChannel(), getGetOperationMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Cancels the specified operation.
+     * 
+ */ + public com.google.protobuf.Empty cancelOperation(com.google.container.v1beta1.CancelOperationRequest request) { + return blockingUnaryCall( + getChannel(), getCancelOperationMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Returns configuration info about the Kubernetes Engine service.
+     * 
+ */ + public com.google.container.v1beta1.ServerConfig getServerConfig(com.google.container.v1beta1.GetServerConfigRequest request) { + return blockingUnaryCall( + getChannel(), getGetServerConfigMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.container.v1beta1.ListNodePoolsResponse listNodePools(com.google.container.v1beta1.ListNodePoolsRequest request) { + return blockingUnaryCall( + getChannel(), getListNodePoolsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the node pool requested.
+     * 
+ */ + public com.google.container.v1beta1.NodePool getNodePool(com.google.container.v1beta1.GetNodePoolRequest request) { + return blockingUnaryCall( + getChannel(), getGetNodePoolMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation createNodePool(com.google.container.v1beta1.CreateNodePoolRequest request) { + return blockingUnaryCall( + getChannel(), getCreateNodePoolMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation deleteNodePool(com.google.container.v1beta1.DeleteNodePoolRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteNodePoolMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Roll back the previously Aborted or Failed NodePool upgrade.
+     * This will be an no-op if the last upgrade successfully completed.
+     * 
+ */ + public com.google.container.v1beta1.Operation rollbackNodePoolUpgrade(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request) { + return blockingUnaryCall( + getChannel(), getRollbackNodePoolUpgradeMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public com.google.container.v1beta1.Operation setNodePoolManagement(com.google.container.v1beta1.SetNodePoolManagementRequest request) { + return blockingUnaryCall( + getChannel(), getSetNodePoolManagementMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets labels on a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setLabels(com.google.container.v1beta1.SetLabelsRequest request) { + return blockingUnaryCall( + getChannel(), getSetLabelsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setLegacyAbac(com.google.container.v1beta1.SetLegacyAbacRequest request) { + return blockingUnaryCall( + getChannel(), getSetLegacyAbacMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Start master IP rotation.
+     * 
+ */ + public com.google.container.v1beta1.Operation startIPRotation(com.google.container.v1beta1.StartIPRotationRequest request) { + return blockingUnaryCall( + getChannel(), getStartIPRotationMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + public com.google.container.v1beta1.Operation completeIPRotation(com.google.container.v1beta1.CompleteIPRotationRequest request) { + return blockingUnaryCall( + getChannel(), getCompleteIPRotationMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public com.google.container.v1beta1.Operation setNodePoolSize(com.google.container.v1beta1.SetNodePoolSizeRequest request) { + return blockingUnaryCall( + getChannel(), getSetNodePoolSizeMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Enables/Disables Network Policy for a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setNetworkPolicy(com.google.container.v1beta1.SetNetworkPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getSetNetworkPolicyMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setMaintenancePolicy(com.google.container.v1beta1.SetMaintenancePolicyRequest request) { + return blockingUnaryCall( + getChannel(), getSetMaintenancePolicyMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public com.google.container.v1beta1.ListUsableSubnetworksResponse listUsableSubnetworks(com.google.container.v1beta1.ListUsableSubnetworksRequest request) { + return blockingUnaryCall( + getChannel(), getListUsableSubnetworksMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Used to fetch locations that offer GKE.
+     * 
+ */ + public com.google.container.v1beta1.ListLocationsResponse listLocations(com.google.container.v1beta1.ListLocationsRequest request) { + return blockingUnaryCall( + getChannel(), getListLocationsMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static final class ClusterManagerFutureStub extends io.grpc.stub.AbstractStub { + private ClusterManagerFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private ClusterManagerFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new ClusterManagerFutureStub(channel, callOptions); + } + + /** + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listClusters( + com.google.container.v1beta1.ListClustersRequest request) { + return futureUnaryCall( + getChannel().newCall(getListClustersMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCluster( + com.google.container.v1beta1.GetClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetClusterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the cluster creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range is being used by the cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCluster( + com.google.container.v1beta1.CreateClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateClusterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCluster( + com.google.container.v1beta1.UpdateClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateClusterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNodePool( + com.google.container.v1beta1.UpdateNodePoolRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateNodePoolMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setNodePoolAutoscaling( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetNodePoolAutoscalingMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setLoggingService( + com.google.container.v1beta1.SetLoggingServiceRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetLoggingServiceMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setMonitoringService( + com.google.container.v1beta1.SetMonitoringServiceRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetMonitoringServiceMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setAddonsConfig( + com.google.container.v1beta1.SetAddonsConfigRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetAddonsConfigMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the locations for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setLocations( + com.google.container.v1beta1.SetLocationsRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetLocationsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateMaster( + com.google.container.v1beta1.UpdateMasterRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateMasterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Used to set master auth materials. Currently supports :-
+     * Changing the admin password for a specific cluster.
+     * This can be either via password generation or explicitly set.
+     * Modify basic_auth.csv and reset the K8S API server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setMasterAuth( + com.google.container.v1beta1.SetMasterAuthRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetMasterAuthMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster
+     * (e.g. load balancer resources) will not be deleted if they weren't present
+     * at the initial create time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCluster( + com.google.container.v1beta1.DeleteClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteClusterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listOperations( + com.google.container.v1beta1.ListOperationsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListOperationsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getOperation( + com.google.container.v1beta1.GetOperationRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetOperationMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Cancels the specified operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture cancelOperation( + com.google.container.v1beta1.CancelOperationRequest request) { + return futureUnaryCall( + getChannel().newCall(getCancelOperationMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Returns configuration info about the Kubernetes Engine service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getServerConfig( + com.google.container.v1beta1.GetServerConfigRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetServerConfigMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNodePools( + com.google.container.v1beta1.ListNodePoolsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListNodePoolsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the node pool requested.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNodePool( + com.google.container.v1beta1.GetNodePoolRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetNodePoolMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createNodePool( + com.google.container.v1beta1.CreateNodePoolRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateNodePoolMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteNodePool( + com.google.container.v1beta1.DeleteNodePoolRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteNodePoolMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Roll back the previously Aborted or Failed NodePool upgrade.
+     * This will be an no-op if the last upgrade successfully completed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture rollbackNodePoolUpgrade( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request) { + return futureUnaryCall( + getChannel().newCall(getRollbackNodePoolUpgradeMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setNodePoolManagement( + com.google.container.v1beta1.SetNodePoolManagementRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetNodePoolManagementMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets labels on a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setLabels( + com.google.container.v1beta1.SetLabelsRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetLabelsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setLegacyAbac( + com.google.container.v1beta1.SetLegacyAbacRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetLegacyAbacMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Start master IP rotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startIPRotation( + com.google.container.v1beta1.StartIPRotationRequest request) { + return futureUnaryCall( + getChannel().newCall(getStartIPRotationMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture completeIPRotation( + com.google.container.v1beta1.CompleteIPRotationRequest request) { + return futureUnaryCall( + getChannel().newCall(getCompleteIPRotationMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setNodePoolSize( + com.google.container.v1beta1.SetNodePoolSizeRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetNodePoolSizeMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Enables/Disables Network Policy for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setNetworkPolicy( + com.google.container.v1beta1.SetNetworkPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetNetworkPolicyMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setMaintenancePolicy( + com.google.container.v1beta1.SetMaintenancePolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetMaintenancePolicyMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableSubnetworks( + com.google.container.v1beta1.ListUsableSubnetworksRequest request) { + return futureUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Used to fetch locations that offer GKE.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listLocations( + com.google.container.v1beta1.ListLocationsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListLocationsMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CLUSTERS = 0; + private static final int METHODID_GET_CLUSTER = 1; + private static final int METHODID_CREATE_CLUSTER = 2; + private static final int METHODID_UPDATE_CLUSTER = 3; + private static final int METHODID_UPDATE_NODE_POOL = 4; + private static final int METHODID_SET_NODE_POOL_AUTOSCALING = 5; + private static final int METHODID_SET_LOGGING_SERVICE = 6; + private static final int METHODID_SET_MONITORING_SERVICE = 7; + private static final int METHODID_SET_ADDONS_CONFIG = 8; + private static final int METHODID_SET_LOCATIONS = 9; + private static final int METHODID_UPDATE_MASTER = 10; + private static final int METHODID_SET_MASTER_AUTH = 11; + private static final int METHODID_DELETE_CLUSTER = 12; + private static final int METHODID_LIST_OPERATIONS = 13; + private static final int METHODID_GET_OPERATION = 14; + private static final int METHODID_CANCEL_OPERATION = 15; + private static final int METHODID_GET_SERVER_CONFIG = 16; + private static final int METHODID_LIST_NODE_POOLS = 17; + private static final int METHODID_GET_NODE_POOL = 18; + private static final int METHODID_CREATE_NODE_POOL = 19; + private static final int METHODID_DELETE_NODE_POOL = 20; + private static final int METHODID_ROLLBACK_NODE_POOL_UPGRADE = 21; + private static final int METHODID_SET_NODE_POOL_MANAGEMENT = 22; + private static final int METHODID_SET_LABELS = 23; + private static final int METHODID_SET_LEGACY_ABAC = 24; + private static final int METHODID_START_IPROTATION = 25; + private static final int METHODID_COMPLETE_IPROTATION = 26; + private static final int METHODID_SET_NODE_POOL_SIZE = 27; + private static final int METHODID_SET_NETWORK_POLICY = 28; + private static final int METHODID_SET_MAINTENANCE_POLICY = 29; + private static final int METHODID_LIST_USABLE_SUBNETWORKS = 30; + private static final int METHODID_LIST_LOCATIONS = 31; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ClusterManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ClusterManagerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CLUSTERS: + serviceImpl.listClusters((com.google.container.v1beta1.ListClustersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CLUSTER: + serviceImpl.getCluster((com.google.container.v1beta1.GetClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CLUSTER: + serviceImpl.createCluster((com.google.container.v1beta1.CreateClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CLUSTER: + serviceImpl.updateCluster((com.google.container.v1beta1.UpdateClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NODE_POOL: + serviceImpl.updateNodePool((com.google.container.v1beta1.UpdateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_AUTOSCALING: + serviceImpl.setNodePoolAutoscaling((com.google.container.v1beta1.SetNodePoolAutoscalingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LOGGING_SERVICE: + serviceImpl.setLoggingService((com.google.container.v1beta1.SetLoggingServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MONITORING_SERVICE: + serviceImpl.setMonitoringService((com.google.container.v1beta1.SetMonitoringServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_ADDONS_CONFIG: + serviceImpl.setAddonsConfig((com.google.container.v1beta1.SetAddonsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LOCATIONS: + serviceImpl.setLocations((com.google.container.v1beta1.SetLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MASTER: + serviceImpl.updateMaster((com.google.container.v1beta1.UpdateMasterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MASTER_AUTH: + serviceImpl.setMasterAuth((com.google.container.v1beta1.SetMasterAuthRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CLUSTER: + serviceImpl.deleteCluster((com.google.container.v1beta1.DeleteClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_OPERATIONS: + serviceImpl.listOperations((com.google.container.v1beta1.ListOperationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_OPERATION: + serviceImpl.getOperation((com.google.container.v1beta1.GetOperationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_OPERATION: + serviceImpl.cancelOperation((com.google.container.v1beta1.CancelOperationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVER_CONFIG: + serviceImpl.getServerConfig((com.google.container.v1beta1.GetServerConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NODE_POOLS: + serviceImpl.listNodePools((com.google.container.v1beta1.ListNodePoolsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NODE_POOL: + serviceImpl.getNodePool((com.google.container.v1beta1.GetNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NODE_POOL: + serviceImpl.createNodePool((com.google.container.v1beta1.CreateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NODE_POOL: + serviceImpl.deleteNodePool((com.google.container.v1beta1.DeleteNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLLBACK_NODE_POOL_UPGRADE: + serviceImpl.rollbackNodePoolUpgrade((com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_MANAGEMENT: + serviceImpl.setNodePoolManagement((com.google.container.v1beta1.SetNodePoolManagementRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LABELS: + serviceImpl.setLabels((com.google.container.v1beta1.SetLabelsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LEGACY_ABAC: + serviceImpl.setLegacyAbac((com.google.container.v1beta1.SetLegacyAbacRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_IPROTATION: + serviceImpl.startIPRotation((com.google.container.v1beta1.StartIPRotationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPLETE_IPROTATION: + serviceImpl.completeIPRotation((com.google.container.v1beta1.CompleteIPRotationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_SIZE: + serviceImpl.setNodePoolSize((com.google.container.v1beta1.SetNodePoolSizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NETWORK_POLICY: + serviceImpl.setNetworkPolicy((com.google.container.v1beta1.SetNetworkPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MAINTENANCE_POLICY: + serviceImpl.setMaintenancePolicy((com.google.container.v1beta1.SetMaintenancePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_SUBNETWORKS: + serviceImpl.listUsableSubnetworks((com.google.container.v1beta1.ListUsableSubnetworksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LOCATIONS: + serviceImpl.listLocations((com.google.container.v1beta1.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ClusterManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ClusterManager"); + } + } + + private static final class ClusterManagerFileDescriptorSupplier + extends ClusterManagerBaseDescriptorSupplier { + ClusterManagerFileDescriptorSupplier() {} + } + + private static final class ClusterManagerMethodDescriptorSupplier + extends ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ClusterManagerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ClusterManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ClusterManagerFileDescriptorSupplier()) + .addMethod(getListClustersMethodHelper()) + .addMethod(getGetClusterMethodHelper()) + .addMethod(getCreateClusterMethodHelper()) + .addMethod(getUpdateClusterMethodHelper()) + .addMethod(getUpdateNodePoolMethodHelper()) + .addMethod(getSetNodePoolAutoscalingMethodHelper()) + .addMethod(getSetLoggingServiceMethodHelper()) + .addMethod(getSetMonitoringServiceMethodHelper()) + .addMethod(getSetAddonsConfigMethodHelper()) + .addMethod(getSetLocationsMethodHelper()) + .addMethod(getUpdateMasterMethodHelper()) + .addMethod(getSetMasterAuthMethodHelper()) + .addMethod(getDeleteClusterMethodHelper()) + .addMethod(getListOperationsMethodHelper()) + .addMethod(getGetOperationMethodHelper()) + .addMethod(getCancelOperationMethodHelper()) + .addMethod(getGetServerConfigMethodHelper()) + .addMethod(getListNodePoolsMethodHelper()) + .addMethod(getGetNodePoolMethodHelper()) + .addMethod(getCreateNodePoolMethodHelper()) + .addMethod(getDeleteNodePoolMethodHelper()) + .addMethod(getRollbackNodePoolUpgradeMethodHelper()) + .addMethod(getSetNodePoolManagementMethodHelper()) + .addMethod(getSetLabelsMethodHelper()) + .addMethod(getSetLegacyAbacMethodHelper()) + .addMethod(getStartIPRotationMethodHelper()) + .addMethod(getCompleteIPRotationMethodHelper()) + .addMethod(getSetNodePoolSizeMethodHelper()) + .addMethod(getSetNetworkPolicyMethodHelper()) + .addMethod(getSetMaintenancePolicyMethodHelper()) + .addMethod(getListUsableSubnetworksMethodHelper()) + .addMethod(getListLocationsMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java index 7648604cacc9..98489e8b6998 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java @@ -23,6 +23,7 @@ private CancelOperationRequest() { projectId_ = ""; zone_ = ""; operationId_ = ""; + name_ = ""; } @java.lang.Override @@ -67,6 +68,12 @@ private CancelOperationRequest( operationId_ = s; break; } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -103,13 +110,14 @@ private CancelOperationRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -123,13 +131,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -147,13 +156,14 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -167,13 +177,14 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -191,12 +202,13 @@ public java.lang.String getZone() { private volatile java.lang.Object operationId_; /** *
-   * The server-assigned `name` of the operation.
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public java.lang.String getOperationId() { + @java.lang.Deprecated public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -210,12 +222,13 @@ public java.lang.String getOperationId() { } /** *
-   * The server-assigned `name` of the operation.
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { @@ -229,6 +242,50 @@ public java.lang.String getOperationId() { } } + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + 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() { @@ -252,6 +309,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getOperationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } unknownFields.writeTo(output); } @@ -270,6 +330,9 @@ public int getSerializedSize() { if (!getOperationIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -292,6 +355,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getZone()); result = result && getOperationId() .equals(other.getOperationId()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -309,6 +374,8 @@ public int hashCode() { hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -452,6 +519,8 @@ public Builder clear() { operationId_ = ""; + name_ = ""; + return this; } @@ -481,6 +550,7 @@ public com.google.container.v1.CancelOperationRequest buildPartial() { result.projectId_ = projectId_; result.zone_ = zone_; result.operationId_ = operationId_; + result.name_ = name_; onBuilt(); return result; } @@ -541,6 +611,10 @@ public Builder mergeFrom(com.google.container.v1.CancelOperationRequest other) { operationId_ = other.operationId_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -573,13 +647,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -593,13 +668,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -614,13 +690,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -632,13 +709,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -646,13 +724,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -667,13 +746,14 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -687,13 +767,14 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -708,13 +789,14 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -726,13 +808,14 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -740,13 +823,14 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -761,12 +845,13 @@ public Builder setZoneBytes( private java.lang.Object operationId_ = ""; /** *
-     * The server-assigned `name` of the operation.
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public java.lang.String getOperationId() { + @java.lang.Deprecated public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -780,12 +865,13 @@ public java.lang.String getOperationId() { } /** *
-     * The server-assigned `name` of the operation.
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof String) { @@ -800,12 +886,13 @@ public java.lang.String getOperationId() { } /** *
-     * The server-assigned `name` of the operation.
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public Builder setOperationId( + @java.lang.Deprecated public Builder setOperationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -817,12 +904,13 @@ public Builder setOperationId( } /** *
-     * The server-assigned `name` of the operation.
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public Builder clearOperationId() { + @java.lang.Deprecated public Builder clearOperationId() { operationId_ = getDefaultInstance().getOperationId(); onChanged(); @@ -830,12 +918,13 @@ public Builder clearOperationId() { } /** *
-     * The server-assigned `name` of the operation.
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public Builder setOperationIdBytes( + @java.lang.Deprecated public Builder setOperationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -846,6 +935,100 @@ public Builder setOperationIdBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java index 138b310b51d2..d70eff25baca 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java @@ -9,59 +9,85 @@ public interface CancelOperationRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The server-assigned `name` of the operation.
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - java.lang.String getOperationId(); + @java.lang.Deprecated java.lang.String getOperationId(); /** *
-   * The server-assigned `name` of the operation.
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getOperationIdBytes(); + + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java index 6c1c4a2a859c..73f575ab14a7 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java @@ -5,7 +5,7 @@ /** *
- * A Google Container Engine cluster.
+ * A Google Kubernetes Engine cluster.
  * 
* * Protobuf type {@code google.container.v1.Cluster} @@ -46,6 +46,7 @@ private Cluster() { instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; currentNodeCount_ = 0; expireTime_ = ""; + location_ = ""; } @java.lang.Override @@ -266,6 +267,19 @@ private Cluster( break; } + case 218: { + com.google.container.v1.NetworkConfig.Builder subBuilder = null; + if (networkConfig_ != null) { + subBuilder = networkConfig_.toBuilder(); + } + networkConfig_ = input.readMessage(com.google.container.v1.NetworkConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkConfig_); + networkConfig_ = subBuilder.buildPartial(); + } + + break; + } case 802: { java.lang.String s = input.readStringRequireUtf8(); @@ -333,9 +347,9 @@ private Cluster( } case 890: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField1_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField1_ & 0x00000002) == 0x00000002)) { instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField1_ |= 0x00000001; + mutable_bitField1_ |= 0x00000002; } instanceGroupUrls_.add(s); break; @@ -351,6 +365,12 @@ private Cluster( expireTime_ = s; break; } + case 914: { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -372,7 +392,7 @@ private Cluster( if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { locations_ = locations_.getUnmodifiableView(); } - if (((mutable_bitField1_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField1_ & 0x00000002) == 0x00000002)) { instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -465,6 +485,15 @@ public enum Status * ERROR = 5; */ ERROR(5), + /** + *
+     * The DEGRADED state indicates the cluster requires user action to restore
+     * full functionality. Details can be found in the `statusMessage` field.
+     * 
+ * + * DEGRADED = 6; + */ + DEGRADED(6), UNRECOGNIZED(-1), ; @@ -520,6 +549,15 @@ public enum Status * ERROR = 5; */ public static final int ERROR_VALUE = 5; + /** + *
+     * The DEGRADED state indicates the cluster requires user action to restore
+     * full functionality. Details can be found in the `statusMessage` field.
+     * 
+ * + * DEGRADED = 6; + */ + public static final int DEGRADED_VALUE = 6; public final int getNumber() { @@ -546,6 +584,7 @@ public static Status forNumber(int value) { case 3: return RECONCILING; case 4: return STOPPING; case 5: return ERROR; + case 6: return DEGRADED; default: return null; } } @@ -599,6 +638,7 @@ private Status(int value) { } private int bitField0_; + private int bitField1_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -1453,7 +1493,6 @@ public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicy private com.google.container.v1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; /** *
-   * Master authorized networks is a Beta feature.
    * The configuration options for master authorized networks feature.
    * 
* @@ -1464,7 +1503,6 @@ public boolean hasMasterAuthorizedNetworksConfig() { } /** *
-   * Master authorized networks is a Beta feature.
    * The configuration options for master authorized networks feature.
    * 
* @@ -1475,7 +1513,6 @@ public com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorize } /** *
-   * Master authorized networks is a Beta feature.
    * The configuration options for master authorized networks feature.
    * 
* @@ -1518,6 +1555,39 @@ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOr return getMaintenancePolicy(); } + public static final int NETWORK_CONFIG_FIELD_NUMBER = 27; + private com.google.container.v1.NetworkConfig networkConfig_; + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public boolean hasNetworkConfig() { + return networkConfig_ != null; + } + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public com.google.container.v1.NetworkConfig getNetworkConfig() { + return networkConfig_ == null ? com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; + } + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return getNetworkConfig(); + } + public static final int SELF_LINK_FIELD_NUMBER = 100; private volatile java.lang.Object selfLink_; /** @@ -1567,11 +1637,12 @@ public java.lang.String getSelfLink() { * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster * resides. + * This field is deprecated, use location instead. * * - * string zone = 101; + * string zone = 101 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -1588,11 +1659,12 @@ public java.lang.String getZone() { * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster * resides. + * This field is deprecated, use location instead. * * - * string zone = 101; + * string zone = 101 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -1664,6 +1736,13 @@ public java.lang.String getEndpoint() { * found in validMasterVersions returned by getServerConfig. The version can * be upgraded over time; such upgrades are reflected in * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version * * * string initial_cluster_version = 103; @@ -1686,6 +1765,13 @@ public java.lang.String getInitialClusterVersion() { * found in validMasterVersions returned by getServerConfig. The version can * be upgraded over time; such upgrades are reflected in * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version * * * string initial_cluster_version = 103; @@ -1750,14 +1836,16 @@ public java.lang.String getCurrentMasterVersion() { private volatile java.lang.Object currentNodeVersion_; /** *
-   * [Output only] The current version of the node software components.
-   * If they are currently at multiple versions because they're in the process
-   * of being upgraded, this reflects the minimum version of all nodes.
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components. If they are
+   * currently at multiple versions because they're in the process of being
+   * upgraded, this reflects the minimum version of all nodes.
    * 
* - * string current_node_version = 105; + * string current_node_version = 105 [deprecated = true]; */ - public java.lang.String getCurrentNodeVersion() { + @java.lang.Deprecated public java.lang.String getCurrentNodeVersion() { java.lang.Object ref = currentNodeVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -1771,14 +1859,16 @@ public java.lang.String getCurrentNodeVersion() { } /** *
-   * [Output only] The current version of the node software components.
-   * If they are currently at multiple versions because they're in the process
-   * of being upgraded, this reflects the minimum version of all nodes.
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components. If they are
+   * currently at multiple versions because they're in the process of being
+   * upgraded, this reflects the minimum version of all nodes.
    * 
* - * string current_node_version = 105; + * string current_node_version = 105 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { java.lang.Object ref = currentNodeVersion_; if (ref instanceof java.lang.String) { @@ -1977,9 +2067,9 @@ public java.lang.String getServicesIpv4Cidr() { * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public com.google.protobuf.ProtocolStringList + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { return instanceGroupUrls_; } @@ -1988,9 +2078,9 @@ public java.lang.String getServicesIpv4Cidr() { * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public int getInstanceGroupUrlsCount() { + @java.lang.Deprecated public int getInstanceGroupUrlsCount() { return instanceGroupUrls_.size(); } /** @@ -1998,9 +2088,9 @@ public int getInstanceGroupUrlsCount() { * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public java.lang.String getInstanceGroupUrls(int index) { + @java.lang.Deprecated public java.lang.String getInstanceGroupUrls(int index) { return instanceGroupUrls_.get(index); } /** @@ -2008,9 +2098,9 @@ public java.lang.String getInstanceGroupUrls(int index) { * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { return instanceGroupUrls_.getByteString(index); } @@ -2072,6 +2162,54 @@ public java.lang.String getExpireTime() { } } + public static final int LOCATION_FIELD_NUMBER = 114; + private volatile java.lang.Object location_; + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -2152,6 +2290,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (maintenancePolicy_ != null) { output.writeMessage(23, getMaintenancePolicy()); } + if (networkConfig_ != null) { + output.writeMessage(27, getNetworkConfig()); + } if (!getSelfLinkBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); } @@ -2194,6 +2335,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getExpireTimeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 113, expireTime_); } + if (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 114, location_); + } unknownFields.writeTo(output); } @@ -2289,6 +2433,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, getMaintenancePolicy()); } + if (networkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getNetworkConfig()); + } if (!getSelfLinkBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); } @@ -2339,6 +2487,9 @@ public int getSerializedSize() { if (!getExpireTimeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(113, expireTime_); } + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114, location_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2421,6 +2572,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getMaintenancePolicy() .equals(other.getMaintenancePolicy()); } + result = result && (hasNetworkConfig() == other.hasNetworkConfig()); + if (hasNetworkConfig()) { + result = result && getNetworkConfig() + .equals(other.getNetworkConfig()); + } result = result && getSelfLink() .equals(other.getSelfLink()); result = result && getZone() @@ -2448,6 +2604,8 @@ public boolean equals(final java.lang.Object obj) { == other.getCurrentNodeCount()); result = result && getExpireTime() .equals(other.getExpireTime()); + result = result && getLocation() + .equals(other.getLocation()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -2524,6 +2682,10 @@ public int hashCode() { hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; hash = (53 * hash) + getMaintenancePolicy().hashCode(); } + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; @@ -2554,6 +2716,8 @@ public int hashCode() { hash = (53 * hash) + getCurrentNodeCount(); hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; hash = (53 * hash) + getExpireTime().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2651,7 +2815,7 @@ protected Builder newBuilderForType( } /** *
-   * A Google Container Engine cluster.
+   * A Google Kubernetes Engine cluster.
    * 
* * Protobuf type {@code google.container.v1.Cluster} @@ -2791,6 +2955,12 @@ public Builder clear() { maintenancePolicy_ = null; maintenancePolicyBuilder_ = null; } + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } selfLink_ = ""; zone_ = ""; @@ -2814,11 +2984,13 @@ public Builder clear() { servicesIpv4Cidr_ = ""; instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); currentNodeCount_ = 0; expireTime_ = ""; + location_ = ""; + return this; } @@ -2848,6 +3020,7 @@ public com.google.container.v1.Cluster buildPartial() { int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_; int to_bitField0_ = 0; + int to_bitField1_ = 0; result.name_ = name_; result.description_ = description_; result.initialNodeCount_ = initialNodeCount_; @@ -2914,6 +3087,11 @@ public com.google.container.v1.Cluster buildPartial() { } else { result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); } + if (networkConfigBuilder_ == null) { + result.networkConfig_ = networkConfig_; + } else { + result.networkConfig_ = networkConfigBuilder_.build(); + } result.selfLink_ = selfLink_; result.zone_ = zone_; result.endpoint_ = endpoint_; @@ -2925,14 +3103,16 @@ public com.google.container.v1.Cluster buildPartial() { result.statusMessage_ = statusMessage_; result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - if (((bitField1_ & 0x00000001) == 0x00000001)) { + if (((bitField1_ & 0x00000002) == 0x00000002)) { instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); } result.instanceGroupUrls_ = instanceGroupUrls_; result.currentNodeCount_ = currentNodeCount_; result.expireTime_ = expireTime_; + result.location_ = location_; result.bitField0_ = to_bitField0_; + result.bitField1_ = to_bitField1_; onBuilt(); return result; } @@ -3081,6 +3261,9 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { if (other.hasMaintenancePolicy()) { mergeMaintenancePolicy(other.getMaintenancePolicy()); } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } if (!other.getSelfLink().isEmpty()) { selfLink_ = other.selfLink_; onChanged(); @@ -3126,7 +3309,7 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { if (!other.instanceGroupUrls_.isEmpty()) { if (instanceGroupUrls_.isEmpty()) { instanceGroupUrls_ = other.instanceGroupUrls_; - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); } else { ensureInstanceGroupUrlsIsMutable(); instanceGroupUrls_.addAll(other.instanceGroupUrls_); @@ -3140,6 +3323,10 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { expireTime_ = other.expireTime_; onChanged(); } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5744,7 +5931,6 @@ public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicy com.google.container.v1.MasterAuthorizedNetworksConfig, com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> masterAuthorizedNetworksConfigBuilder_; /** *
-     * Master authorized networks is a Beta feature.
      * The configuration options for master authorized networks feature.
      * 
* @@ -5755,7 +5941,6 @@ public boolean hasMasterAuthorizedNetworksConfig() { } /** *
-     * Master authorized networks is a Beta feature.
      * The configuration options for master authorized networks feature.
      * 
* @@ -5770,7 +5955,6 @@ public com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorize } /** *
-     * Master authorized networks is a Beta feature.
      * The configuration options for master authorized networks feature.
      * 
* @@ -5791,7 +5975,6 @@ public Builder setMasterAuthorizedNetworksConfig(com.google.container.v1.MasterA } /** *
-     * Master authorized networks is a Beta feature.
      * The configuration options for master authorized networks feature.
      * 
* @@ -5810,7 +5993,6 @@ public Builder setMasterAuthorizedNetworksConfig( } /** *
-     * Master authorized networks is a Beta feature.
      * The configuration options for master authorized networks feature.
      * 
* @@ -5833,7 +6015,6 @@ public Builder mergeMasterAuthorizedNetworksConfig(com.google.container.v1.Maste } /** *
-     * Master authorized networks is a Beta feature.
      * The configuration options for master authorized networks feature.
      * 
* @@ -5852,7 +6033,6 @@ public Builder clearMasterAuthorizedNetworksConfig() { } /** *
-     * Master authorized networks is a Beta feature.
      * The configuration options for master authorized networks feature.
      * 
* @@ -5865,7 +6045,6 @@ public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder getMasterA } /** *
-     * Master authorized networks is a Beta feature.
      * The configuration options for master authorized networks feature.
      * 
* @@ -5881,7 +6060,6 @@ public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getMaster } /** *
-     * Master authorized networks is a Beta feature.
      * The configuration options for master authorized networks feature.
      * 
* @@ -6054,6 +6232,159 @@ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOr return maintenancePolicyBuilder_; } + private com.google.container.v1.NetworkConfig networkConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig, com.google.container.v1.NetworkConfig.Builder, com.google.container.v1.NetworkConfigOrBuilder> networkConfigBuilder_; + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public boolean hasNetworkConfig() { + return networkConfigBuilder_ != null || networkConfig_ != null; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public com.google.container.v1.NetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null ? com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig(com.google.container.v1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + onChanged(); + } else { + networkConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig( + com.google.container.v1.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + onChanged(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder mergeNetworkConfig(com.google.container.v1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (networkConfig_ != null) { + networkConfig_ = + com.google.container.v1.NetworkConfig.newBuilder(networkConfig_).mergeFrom(value).buildPartial(); + } else { + networkConfig_ = value; + } + onChanged(); + } else { + networkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder clearNetworkConfig() { + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + onChanged(); + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public com.google.container.v1.NetworkConfig.Builder getNetworkConfigBuilder() { + + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null ? + com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; + } + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig, com.google.container.v1.NetworkConfig.Builder, com.google.container.v1.NetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig, com.google.container.v1.NetworkConfig.Builder, com.google.container.v1.NetworkConfigOrBuilder>( + getNetworkConfig(), + getParentForChildren(), + isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + private java.lang.Object selfLink_ = ""; /** *
@@ -6149,11 +6480,12 @@ public Builder setSelfLinkBytes(
      * [Output only] The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field is deprecated, use location instead.
      * 
* - * string zone = 101; + * string zone = 101 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -6170,11 +6502,12 @@ public java.lang.String getZone() { * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster * resides. + * This field is deprecated, use location instead. * * - * string zone = 101; + * string zone = 101 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -6192,11 +6525,12 @@ public java.lang.String getZone() { * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster * resides. + * This field is deprecated, use location instead. * * - * string zone = 101; + * string zone = 101 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -6211,11 +6545,12 @@ public Builder setZone( * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster * resides. + * This field is deprecated, use location instead. * * - * string zone = 101; + * string zone = 101 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -6226,11 +6561,12 @@ public Builder clearZone() { * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster * resides. + * This field is deprecated, use location instead. * * - * string zone = 101; + * string zone = 101 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -6358,6 +6694,13 @@ public Builder setEndpointBytes( * found in validMasterVersions returned by getServerConfig. The version can * be upgraded over time; such upgrades are reflected in * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version * * * string initial_cluster_version = 103; @@ -6380,6 +6723,13 @@ public java.lang.String getInitialClusterVersion() { * found in validMasterVersions returned by getServerConfig. The version can * be upgraded over time; such upgrades are reflected in * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version * * * string initial_cluster_version = 103; @@ -6403,6 +6753,13 @@ public java.lang.String getInitialClusterVersion() { * found in validMasterVersions returned by getServerConfig. The version can * be upgraded over time; such upgrades are reflected in * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version * * * string initial_cluster_version = 103; @@ -6423,6 +6780,13 @@ public Builder setInitialClusterVersion( * found in validMasterVersions returned by getServerConfig. The version can * be upgraded over time; such upgrades are reflected in * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version * * * string initial_cluster_version = 103; @@ -6439,6 +6803,13 @@ public Builder clearInitialClusterVersion() { * found in validMasterVersions returned by getServerConfig. The version can * be upgraded over time; such upgrades are reflected in * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version * * * string initial_cluster_version = 103; @@ -6547,14 +6918,16 @@ public Builder setCurrentMasterVersionBytes( private java.lang.Object currentNodeVersion_ = ""; /** *
-     * [Output only] The current version of the node software components.
-     * If they are currently at multiple versions because they're in the process
-     * of being upgraded, this reflects the minimum version of all nodes.
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
      * 
* - * string current_node_version = 105; + * string current_node_version = 105 [deprecated = true]; */ - public java.lang.String getCurrentNodeVersion() { + @java.lang.Deprecated public java.lang.String getCurrentNodeVersion() { java.lang.Object ref = currentNodeVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -6568,14 +6941,16 @@ public java.lang.String getCurrentNodeVersion() { } /** *
-     * [Output only] The current version of the node software components.
-     * If they are currently at multiple versions because they're in the process
-     * of being upgraded, this reflects the minimum version of all nodes.
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
      * 
* - * string current_node_version = 105; + * string current_node_version = 105 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { java.lang.Object ref = currentNodeVersion_; if (ref instanceof String) { @@ -6590,14 +6965,16 @@ public java.lang.String getCurrentNodeVersion() { } /** *
-     * [Output only] The current version of the node software components.
-     * If they are currently at multiple versions because they're in the process
-     * of being upgraded, this reflects the minimum version of all nodes.
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
      * 
* - * string current_node_version = 105; + * string current_node_version = 105 [deprecated = true]; */ - public Builder setCurrentNodeVersion( + @java.lang.Deprecated public Builder setCurrentNodeVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -6609,14 +6986,16 @@ public Builder setCurrentNodeVersion( } /** *
-     * [Output only] The current version of the node software components.
-     * If they are currently at multiple versions because they're in the process
-     * of being upgraded, this reflects the minimum version of all nodes.
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
      * 
* - * string current_node_version = 105; + * string current_node_version = 105 [deprecated = true]; */ - public Builder clearCurrentNodeVersion() { + @java.lang.Deprecated public Builder clearCurrentNodeVersion() { currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); onChanged(); @@ -6624,14 +7003,16 @@ public Builder clearCurrentNodeVersion() { } /** *
-     * [Output only] The current version of the node software components.
-     * If they are currently at multiple versions because they're in the process
-     * of being upgraded, this reflects the minimum version of all nodes.
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
      * 
* - * string current_node_version = 105; + * string current_node_version = 105 [deprecated = true]; */ - public Builder setCurrentNodeVersionBytes( + @java.lang.Deprecated public Builder setCurrentNodeVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -7051,9 +7432,9 @@ public Builder setServicesIpv4CidrBytes( private com.google.protobuf.LazyStringList instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField1_ & 0x00000001) == 0x00000001)) { + if (!((bitField1_ & 0x00000002) == 0x00000002)) { instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; } } /** @@ -7061,9 +7442,9 @@ private void ensureInstanceGroupUrlsIsMutable() { * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public com.google.protobuf.ProtocolStringList + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { return instanceGroupUrls_.getUnmodifiableView(); } @@ -7072,9 +7453,9 @@ private void ensureInstanceGroupUrlsIsMutable() { * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public int getInstanceGroupUrlsCount() { + @java.lang.Deprecated public int getInstanceGroupUrlsCount() { return instanceGroupUrls_.size(); } /** @@ -7082,9 +7463,9 @@ public int getInstanceGroupUrlsCount() { * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public java.lang.String getInstanceGroupUrls(int index) { + @java.lang.Deprecated public java.lang.String getInstanceGroupUrls(int index) { return instanceGroupUrls_.get(index); } /** @@ -7092,9 +7473,9 @@ public java.lang.String getInstanceGroupUrls(int index) { * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { return instanceGroupUrls_.getByteString(index); } @@ -7103,9 +7484,9 @@ public java.lang.String getInstanceGroupUrls(int index) { * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public Builder setInstanceGroupUrls( + @java.lang.Deprecated public Builder setInstanceGroupUrls( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -7120,9 +7501,9 @@ public Builder setInstanceGroupUrls( * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public Builder addInstanceGroupUrls( + @java.lang.Deprecated public Builder addInstanceGroupUrls( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -7137,9 +7518,9 @@ public Builder addInstanceGroupUrls( * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public Builder addAllInstanceGroupUrls( + @java.lang.Deprecated public Builder addAllInstanceGroupUrls( java.lang.Iterable values) { ensureInstanceGroupUrlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -7152,11 +7533,11 @@ public Builder addAllInstanceGroupUrls( * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public Builder clearInstanceGroupUrls() { + @java.lang.Deprecated public Builder clearInstanceGroupUrls() { instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); onChanged(); return this; } @@ -7165,9 +7546,9 @@ public Builder clearInstanceGroupUrls() { * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - public Builder addInstanceGroupUrlsBytes( + @java.lang.Deprecated public Builder addInstanceGroupUrlsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -7310,6 +7691,110 @@ public Builder setExpireTimeBytes( onChanged(); return this; } + + private java.lang.Object location_ = ""; + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public Builder setLocation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterName.java new file mode 100644 index 000000000000..550e108b7d18 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterName.java @@ -0,0 +1,212 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ClusterName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/clusters/{cluster}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + private final String cluster; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + } + + public static ClusterName of(String project, String location, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .build(); + } + + public static String format(String project, String location, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .build() + .toString(); + } + + public static ClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ClusterName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldMapBuilder.put("cluster", cluster); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location, "cluster", cluster); + } + + /** Builder for ClusterName. */ + public static class Builder { + + private String project; + private String location; + private String cluster; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + private Builder() { + } + + private Builder(ClusterName clusterName) { + project = clusterName.project; + location = clusterName.location; + cluster = clusterName.cluster; + } + + public ClusterName build() { + return new ClusterName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ClusterName) { + ClusterName that = (ClusterName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)) + && (this.cluster.equals(that.cluster)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + h *= 1000003; + h ^= cluster.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java index 2c971059f569..60ddf0ade435 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java @@ -553,7 +553,6 @@ java.lang.String getResourceLabelsOrThrow( /** *
-   * Master authorized networks is a Beta feature.
    * The configuration options for master authorized networks feature.
    * 
* @@ -562,7 +561,6 @@ java.lang.String getResourceLabelsOrThrow( boolean hasMasterAuthorizedNetworksConfig(); /** *
-   * Master authorized networks is a Beta feature.
    * The configuration options for master authorized networks feature.
    * 
* @@ -571,7 +569,6 @@ java.lang.String getResourceLabelsOrThrow( com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig(); /** *
-   * Master authorized networks is a Beta feature.
    * The configuration options for master authorized networks feature.
    * 
* @@ -604,6 +601,31 @@ java.lang.String getResourceLabelsOrThrow( */ com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + boolean hasNetworkConfig(); + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + com.google.container.v1.NetworkConfig getNetworkConfig(); + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); + /** *
    * [Output only] Server-defined URL for the resource.
@@ -627,21 +649,23 @@ java.lang.String getResourceLabelsOrThrow(
    * [Output only] The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field is deprecated, use location instead.
    * 
* - * string zone = 101; + * string zone = 101 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
    * [Output only] The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field is deprecated, use location instead.
    * 
* - * string zone = 101; + * string zone = 101 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** @@ -676,6 +700,13 @@ java.lang.String getResourceLabelsOrThrow( * found in validMasterVersions returned by getServerConfig. The version can * be upgraded over time; such upgrades are reflected in * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version * * * string initial_cluster_version = 103; @@ -687,6 +718,13 @@ java.lang.String getResourceLabelsOrThrow( * found in validMasterVersions returned by getServerConfig. The version can * be upgraded over time; such upgrades are reflected in * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version * * * string initial_cluster_version = 103; @@ -714,24 +752,28 @@ java.lang.String getResourceLabelsOrThrow( /** *
-   * [Output only] The current version of the node software components.
-   * If they are currently at multiple versions because they're in the process
-   * of being upgraded, this reflects the minimum version of all nodes.
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components. If they are
+   * currently at multiple versions because they're in the process of being
+   * upgraded, this reflects the minimum version of all nodes.
    * 
* - * string current_node_version = 105; + * string current_node_version = 105 [deprecated = true]; */ - java.lang.String getCurrentNodeVersion(); + @java.lang.Deprecated java.lang.String getCurrentNodeVersion(); /** *
-   * [Output only] The current version of the node software components.
-   * If they are currently at multiple versions because they're in the process
-   * of being upgraded, this reflects the minimum version of all nodes.
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components. If they are
+   * currently at multiple versions because they're in the process of being
+   * upgraded, this reflects the minimum version of all nodes.
    * 
* - * string current_node_version = 105; + * string current_node_version = 105 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getCurrentNodeVersionBytes(); /** @@ -833,34 +875,34 @@ java.lang.String getResourceLabelsOrThrow( * Deprecated. Use node_pools.instance_group_urls. * * - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - java.util.List + @java.lang.Deprecated java.util.List getInstanceGroupUrlsList(); /** *
    * Deprecated. Use node_pools.instance_group_urls.
    * 
* - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - int getInstanceGroupUrlsCount(); + @java.lang.Deprecated int getInstanceGroupUrlsCount(); /** *
    * Deprecated. Use node_pools.instance_group_urls.
    * 
* - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - java.lang.String getInstanceGroupUrls(int index); + @java.lang.Deprecated java.lang.String getInstanceGroupUrls(int index); /** *
    * Deprecated. Use node_pools.instance_group_urls.
    * 
* - * repeated string instance_group_urls = 111; + * repeated string instance_group_urls = 111 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index); /** @@ -891,4 +933,28 @@ java.lang.String getResourceLabelsOrThrow( */ com.google.protobuf.ByteString getExpireTimeBytes(); + + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + java.lang.String getLocation(); + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + com.google.protobuf.ByteString + getLocationBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java index 81671c0542bc..d60466dd89d6 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java @@ -324,6 +324,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_SetMaintenancePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NetworkConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -336,7 +341,7 @@ public static void registerAllExtensions( "\n)google/container/v1/cluster_service.pr" + "oto\022\023google.container.v1\032\034google/api/ann" + "otations.proto\032\033google/protobuf/empty.pr" + - "oto\"\355\003\n\nNodeConfig\022\024\n\014machine_type\030\001 \001(\t" + + "oto\"\200\004\n\nNodeConfig\022\024\n\014machine_type\030\001 \001(\t" + "\022\024\n\014disk_size_gb\030\002 \001(\005\022\024\n\014oauth_scopes\030\003" + " \003(\t\022\027\n\017service_account\030\t \001(\t\022?\n\010metadat" + "a\030\004 \003(\0132-.google.container.v1.NodeConfig" + @@ -345,380 +350,453 @@ public static void registerAllExtensions( "fig.LabelsEntry\022\027\n\017local_ssd_count\030\007 \001(\005" + "\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible\030\n \001(\010\022<\n\014a" + "ccelerators\030\013 \003(\0132&.google.container.v1." + - "AcceleratorConfig\022\030\n\020min_cpu_platform\030\r " + - "\001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\"\321\001\n\nMasterAuth\022\020\n\010us" + - "ername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022O\n\031client" + - "_certificate_config\030\003 \001(\0132,.google.conta" + - "iner.v1.ClientCertificateConfig\022\036\n\026clust" + - "er_ca_certificate\030d \001(\t\022\032\n\022client_certif" + - "icate\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027Clien" + - "tCertificateConfig\022 \n\030issue_client_certi" + - "ficate\030\001 \001(\010\"\267\002\n\014AddonsConfig\022C\n\023http_lo" + - "ad_balancing\030\001 \001(\0132&.google.container.v1" + - ".HttpLoadBalancing\022Q\n\032horizontal_pod_aut" + - "oscaling\030\002 \001(\0132-.google.container.v1.Hor" + - "izontalPodAutoscaling\022F\n\024kubernetes_dash" + - "board\030\003 \001(\0132(.google.container.v1.Kubern" + - "etesDashboard\022G\n\025network_policy_config\030\004" + - " \001(\0132(.google.container.v1.NetworkPolicy" + - "Config\"%\n\021HttpLoadBalancing\022\020\n\010disabled\030" + - "\001 \001(\010\",\n\030HorizontalPodAutoscaling\022\020\n\010dis" + - "abled\030\001 \001(\010\"\'\n\023KubernetesDashboard\022\020\n\010di" + - "sabled\030\001 \001(\010\"\'\n\023NetworkPolicyConfig\022\020\n\010d" + - "isabled\030\001 \001(\010\"\274\001\n\036MasterAuthorizedNetwor" + - "ksConfig\022\017\n\007enabled\030\001 \001(\010\022R\n\013cidr_blocks" + - "\030\002 \003(\0132=.google.container.v1.MasterAutho" + - "rizedNetworksConfig.CidrBlock\0325\n\tCidrBlo" + - "ck\022\024\n\014display_name\030\001 \001(\t\022\022\n\ncidr_block\030\002" + - " \001(\t\"\035\n\nLegacyAbac\022\017\n\007enabled\030\001 \001(\010\"\221\001\n\r" + - "NetworkPolicy\022=\n\010provider\030\001 \001(\0162+.google" + - ".container.v1.NetworkPolicy.Provider\022\017\n\007" + - "enabled\030\002 \001(\010\"0\n\010Provider\022\030\n\024PROVIDER_UN" + - "SPECIFIED\020\000\022\n\n\006CALICO\020\001\"\335\002\n\022IPAllocation" + - "Policy\022\026\n\016use_ip_aliases\030\001 \001(\010\022\031\n\021create" + - "_subnetwork\030\002 \001(\010\022\027\n\017subnetwork_name\030\003 \001" + - "(\t\022\031\n\021cluster_ipv4_cidr\030\004 \001(\t\022\026\n\016node_ip" + - "v4_cidr\030\005 \001(\t\022\032\n\022services_ipv4_cidr\030\006 \001(" + - "\t\022$\n\034cluster_secondary_range_name\030\007 \001(\t\022" + - "%\n\035services_secondary_range_name\030\010 \001(\t\022\037" + - "\n\027cluster_ipv4_cidr_block\030\t \001(\t\022\034\n\024node_" + - "ipv4_cidr_block\030\n \001(\t\022 \n\030services_ipv4_c" + - "idr_block\030\013 \001(\t\"\252\013\n\007Cluster\022\014\n\004name\030\001 \001(" + - "\t\022\023\n\013description\030\002 \001(\t\022\032\n\022initial_node_c" + - "ount\030\003 \001(\005\0224\n\013node_config\030\004 \001(\0132\037.google" + - ".container.v1.NodeConfig\0224\n\013master_auth\030" + - "\005 \001(\0132\037.google.container.v1.MasterAuth\022\027" + - "\n\017logging_service\030\006 \001(\t\022\032\n\022monitoring_se" + - "rvice\030\007 \001(\t\022\017\n\007network\030\010 \001(\t\022\031\n\021cluster_" + - "ipv4_cidr\030\t \001(\t\0228\n\raddons_config\030\n \001(\0132!" + - ".google.container.v1.AddonsConfig\022\022\n\nsub" + - "network\030\013 \001(\t\0221\n\nnode_pools\030\014 \003(\0132\035.goog" + - "le.container.v1.NodePool\022\021\n\tlocations\030\r " + - "\003(\t\022\037\n\027enable_kubernetes_alpha\030\016 \001(\010\022I\n\017" + - "resource_labels\030\017 \003(\01320.google.container" + - ".v1.Cluster.ResourceLabelsEntry\022\031\n\021label" + - "_fingerprint\030\020 \001(\t\0224\n\013legacy_abac\030\022 \001(\0132" + - "\037.google.container.v1.LegacyAbac\022:\n\016netw" + - "ork_policy\030\023 \001(\0132\".google.container.v1.N" + - "etworkPolicy\022E\n\024ip_allocation_policy\030\024 \001" + - "(\0132\'.google.container.v1.IPAllocationPol" + - "icy\022^\n!master_authorized_networks_config" + - "\030\026 \001(\01323.google.container.v1.MasterAutho" + - "rizedNetworksConfig\022B\n\022maintenance_polic" + - "y\030\027 \001(\0132&.google.container.v1.Maintenanc" + - "ePolicy\022\021\n\tself_link\030d \001(\t\022\014\n\004zone\030e \001(\t" + - "\022\020\n\010endpoint\030f \001(\t\022\037\n\027initial_cluster_ve" + - "rsion\030g \001(\t\022\036\n\026current_master_version\030h " + - "\001(\t\022\034\n\024current_node_version\030i \001(\t\022\023\n\013cre" + - "ate_time\030j \001(\t\0223\n\006status\030k \001(\0162#.google." + - "container.v1.Cluster.Status\022\026\n\016status_me" + - "ssage\030l \001(\t\022\033\n\023node_ipv4_cidr_size\030m \001(\005" + - "\022\032\n\022services_ipv4_cidr\030n \001(\t\022\033\n\023instance" + - "_group_urls\030o \003(\t\022\032\n\022current_node_count\030" + - "p \001(\005\022\023\n\013expire_time\030q \001(\t\0325\n\023ResourceLa" + - "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\"i\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014P" + - "ROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILIN" + - "G\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\"\301\003\n\rCluster" + - "Update\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n\032" + - "desired_monitoring_service\030\005 \001(\t\022@\n\025desi" + - "red_addons_config\030\006 \001(\0132!.google.contain" + - "er.v1.AddonsConfig\022\034\n\024desired_node_pool_" + - "id\030\007 \001(\t\022\032\n\022desired_image_type\030\010 \001(\t\022O\n\035" + - "desired_node_pool_autoscaling\030\t \001(\0132(.go" + - "ogle.container.v1.NodePoolAutoscaling\022\031\n" + - "\021desired_locations\030\n \003(\t\022f\n)desired_mast" + - "er_authorized_networks_config\030\014 \001(\01323.go" + - "ogle.container.v1.MasterAuthorizedNetwor" + - "ksConfig\022\036\n\026desired_master_version\030d \001(\t" + - "\"\345\005\n\tOperation\022\014\n\004name\030\001 \001(\t\022\014\n\004zone\030\002 \001" + - "(\t\022;\n\016operation_type\030\003 \001(\0162#.google.cont" + - "ainer.v1.Operation.Type\0225\n\006status\030\004 \001(\0162" + - "%.google.container.v1.Operation.Status\022\016" + - "\n\006detail\030\010 \001(\t\022\026\n\016status_message\030\005 \001(\t\022\021" + - "\n\tself_link\030\006 \001(\t\022\023\n\013target_link\030\007 \001(\t\022\022" + - "\n\nstart_time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\"R\n\006" + - "Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PENDIN" + - "G\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004" + - "\"\375\002\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREAT" + - "E_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGRA" + - "DE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAIR" + - "_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREATE" + - "_NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030SE" + - "T_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR_" + - "NODES\020\n\022\026\n\022AUTO_UPGRADE_NODES\020\013\022\016\n\nSET_L" + - "ABELS\020\014\022\023\n\017SET_MASTER_AUTH\020\r\022\026\n\022SET_NODE" + - "_POOL_SIZE\020\016\022\026\n\022SET_NETWORK_POLICY\020\017\022\032\n\026" + - "SET_MAINTENANCE_POLICY\020\020\"g\n\024CreateCluste" + - "rRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001" + - "(\t\022-\n\007cluster\030\003 \001(\0132\034.google.container.v" + - "1.Cluster\"I\n\021GetClusterRequest\022\022\n\nprojec" + - "t_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003" + - " \001(\t\"\200\001\n\024UpdateClusterRequest\022\022\n\nproject" + - "_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003 " + - "\001(\t\0222\n\006update\030\004 \001(\0132\".google.container.v" + - "1.ClusterUpdate\"\215\001\n\025UpdateNodePoolReques" + - "t\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\nc" + - "luster_id\030\003 \001(\t\022\024\n\014node_pool_id\030\004 \001(\t\022\024\n" + - "\014node_version\030\005 \001(\t\022\022\n\nimage_type\030\006 \001(\t\"" + - "\252\001\n\035SetNodePoolAutoscalingRequest\022\022\n\npro" + - "ject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_i" + - "d\030\003 \001(\t\022\024\n\014node_pool_id\030\004 \001(\t\022=\n\013autosca" + - "ling\030\005 \001(\0132(.google.container.v1.NodePoo" + - "lAutoscaling\"i\n\030SetLoggingServiceRequest" + - "\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncl" + - "uster_id\030\003 \001(\t\022\027\n\017logging_service\030\004 \001(\t\"" + - "o\n\033SetMonitoringServiceRequest\022\022\n\nprojec" + - "t_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003" + - " \001(\t\022\032\n\022monitoring_service\030\004 \001(\t\"\210\001\n\026Set" + - "AddonsConfigRequest\022\022\n\nproject_id\030\001 \001(\t\022" + - "\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001(\t\0228\n\radd" + - "ons_config\030\004 \001(\0132!.google.container.v1.A" + - "ddonsConfig\"^\n\023SetLocationsRequest\022\022\n\npr" + - "oject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_" + - "id\030\003 \001(\t\022\021\n\tlocations\030\004 \003(\t\"c\n\023UpdateMas" + - "terRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zone\030\002" + - " \001(\t\022\022\n\ncluster_id\030\003 \001(\t\022\026\n\016master_versi" + - "on\030\004 \001(\t\"\221\002\n\024SetMasterAuthRequest\022\022\n\npro" + - "ject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_i" + - "d\030\003 \001(\t\022@\n\006action\030\004 \001(\01620.google.contain" + - "er.v1.SetMasterAuthRequest.Action\022/\n\006upd" + - "ate\030\005 \001(\0132\037.google.container.v1.MasterAu" + - "th\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSWOR" + - "D\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022\020\n\014SET_USERNA" + - "ME\020\003\"L\n\024DeleteClusterRequest\022\022\n\nproject_" + - "id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001" + - "(\t\"7\n\023ListClustersRequest\022\022\n\nproject_id\030" + - "\001 \001(\t\022\014\n\004zone\030\002 \001(\t\"]\n\024ListClustersRespo" + - "nse\022.\n\010clusters\030\001 \003(\0132\034.google.container" + - ".v1.Cluster\022\025\n\rmissing_zones\030\002 \003(\t\"M\n\023Ge" + - "tOperationRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n" + - "\004zone\030\002 \001(\t\022\024\n\014operation_id\030\003 \001(\t\"9\n\025Lis" + - "tOperationsRequest\022\022\n\nproject_id\030\001 \001(\t\022\014" + - "\n\004zone\030\002 \001(\t\"P\n\026CancelOperationRequest\022\022" + - "\n\nproject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\024\n\014oper" + - "ation_id\030\003 \001(\t\"c\n\026ListOperationsResponse" + - "\0222\n\noperations\030\001 \003(\0132\036.google.container." + - "v1.Operation\022\025\n\rmissing_zones\030\002 \003(\t\":\n\026G" + - "etServerConfigRequest\022\022\n\nproject_id\030\001 \001(" + - "\t\022\014\n\004zone\030\002 \001(\t\"\242\001\n\014ServerConfig\022\037\n\027defa" + - "ult_cluster_version\030\001 \001(\t\022\033\n\023valid_node_" + - "versions\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001" + - "(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_m" + - "aster_versions\030\006 \003(\t\"\177\n\025CreateNodePoolRe" + - "quest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022" + - "\022\n\ncluster_id\030\003 \001(\t\0220\n\tnode_pool\030\004 \001(\0132\035" + - ".google.container.v1.NodePool\"c\n\025DeleteN" + - "odePoolRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zo" + - "ne\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001(\t\022\024\n\014node_poo" + - "l_id\030\004 \001(\t\"L\n\024ListNodePoolsRequest\022\022\n\npr" + - "oject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_" + - "id\030\003 \001(\t\"`\n\022GetNodePoolRequest\022\022\n\nprojec" + - "t_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003" + - " \001(\t\022\024\n\014node_pool_id\030\004 \001(\t\"\360\003\n\010NodePool\022" + - "\014\n\004name\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.google.c" + - "ontainer.v1.NodeConfig\022\032\n\022initial_node_c" + - "ount\030\003 \001(\005\022\021\n\tself_link\030d \001(\t\022\017\n\007version" + - "\030e \001(\t\022\033\n\023instance_group_urls\030f \003(\t\0224\n\006s" + - "tatus\030g \001(\0162$.google.container.v1.NodePo" + - "ol.Status\022\026\n\016status_message\030h \001(\t\022=\n\013aut" + - "oscaling\030\004 \001(\0132(.google.container.v1.Nod" + - "ePoolAutoscaling\0227\n\nmanagement\030\005 \001(\0132#.g" + - "oogle.container.v1.NodeManagement\"\201\001\n\006St" + - "atus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIO" + - "NING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ERRO" + - "R\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ER" + - "ROR\020\006\"}\n\016NodeManagement\022\024\n\014auto_upgrade\030" + - "\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022@\n\017upgrade_op" + - "tions\030\n \001(\0132\'.google.container.v1.AutoUp" + - "gradeOptions\"J\n\022AutoUpgradeOptions\022\037\n\027au" + - "to_upgrade_start_time\030\001 \001(\t\022\023\n\013descripti" + - "on\030\002 \001(\t\"K\n\021MaintenancePolicy\0226\n\006window\030" + - "\001 \001(\0132&.google.container.v1.MaintenanceW" + - "indow\"n\n\021MaintenanceWindow\022O\n\030daily_main" + - "tenance_window\030\002 \001(\0132+.google.container." + - "v1.DailyMaintenanceWindowH\000B\010\n\006policy\">\n" + - "\026DailyMaintenanceWindow\022\022\n\nstart_time\030\002 " + - "\001(\t\022\020\n\010duration\030\003 \001(\t\"\243\001\n\034SetNodePoolMan" + - "agementRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zo" + - "ne\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001(\t\022\024\n\014node_poo" + - "l_id\030\004 \001(\t\0227\n\nmanagement\030\005 \001(\0132#.google." + - "container.v1.NodeManagement\"x\n\026SetNodePo" + - "olSizeRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zon" + - "e\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001(\t\022\024\n\014node_pool" + - "_id\030\004 \001(\t\022\022\n\nnode_count\030\005 \001(\005\"l\n\036Rollbac" + - "kNodePoolUpgradeRequest\022\022\n\nproject_id\030\001 " + - "\001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001(\t\022\024\n" + - "\014node_pool_id\030\004 \001(\t\"J\n\025ListNodePoolsResp" + - "onse\0221\n\nnode_pools\030\001 \003(\0132\035.google.contai" + - "ner.v1.NodePool\"V\n\023NodePoolAutoscaling\022\017" + - "\n\007enabled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001(\005\022" + - "\026\n\016max_node_count\030\003 \001(\005\"\356\001\n\020SetLabelsReq" + - "uest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022" + - "\n\ncluster_id\030\003 \001(\t\022R\n\017resource_labels\030\004 " + - "\003(\01329.google.container.v1.SetLabelsReque" + - "st.ResourceLabelsEntry\022\031\n\021label_fingerpr" + - "int\030\005 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\024SetLegacyAba" + - "cRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zone\030\002 \001" + - "(\t\022\022\n\ncluster_id\030\003 \001(\t\022\017\n\007enabled\030\004 \001(\010\"" + - "N\n\026StartIPRotationRequest\022\022\n\nproject_id\030" + - "\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001(\t\"" + - "Q\n\031CompleteIPRotationRequest\022\022\n\nproject_" + - "id\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001" + - "(\t\"H\n\021AcceleratorConfig\022\031\n\021accelerator_c" + - "ount\030\001 \001(\003\022\030\n\020accelerator_type\030\002 \001(\t\"\213\001\n" + - "\027SetNetworkPolicyRequest\022\022\n\nproject_id\030\001" + - " \001(\t\022\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001(\t\022:" + - "\n\016network_policy\030\004 \001(\0132\".google.containe" + - "r.v1.NetworkPolicy\"\227\001\n\033SetMaintenancePol" + - "icyRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zone\030\002" + - " \001(\t\022\022\n\ncluster_id\030\003 \001(\t\022B\n\022maintenance_" + - "policy\030\004 \001(\0132&.google.container.v1.Maint" + - "enancePolicy2\343*\n\016ClusterManager\022\234\001\n\014List" + - "Clusters\022(.google.container.v1.ListClust" + - "ersRequest\032).google.container.v1.ListClu" + - "stersResponse\"7\202\323\344\223\0021\022//v1/projects/{pro" + - "ject_id}/zones/{zone}/clusters\022\230\001\n\nGetCl" + - "uster\022&.google.container.v1.GetClusterRe" + - "quest\032\034.google.container.v1.Cluster\"D\202\323\344" + - "\223\002>\022\n\026DailyMa" + + "intenanceWindow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010d" + + "uration\030\003 \001(\t\"\301\001\n\034SetNodePoolManagementR" + + "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" + + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node" + + "_pool_id\030\004 \001(\tB\002\030\001\0227\n\nmanagement\030\005 \001(\0132#" + + ".google.container.v1.NodeManagement\022\014\n\004n" + + "ame\030\007 \001(\t\"\226\001\n\026SetNodePoolSizeRequest\022\026\n\n" + + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026" + + "\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004" + + " \001(\tB\002\030\001\022\022\n\nnode_count\030\005 \001(\005\022\014\n\004name\030\007 \001" + + "(\t\"\212\001\n\036RollbackNodePoolUpgradeRequest\022\026\n" + + "\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022" + + "\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030" + + "\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"J\n\025ListNodePools" + + "Response\0221\n\nnode_pools\030\001 \003(\0132\035.google.co" + + "ntainer.v1.NodePool\"V\n\023NodePoolAutoscali" + + "ng\022\017\n\007enabled\030\001 \001(\010\022\026\n\016min_node_count\030\002 " + + "\001(\005\022\026\n\016max_node_count\030\003 \001(\005\"\210\002\n\020SetLabel" + + "sRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone" + + "\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022R\n\017re" + + "source_labels\030\004 \003(\01329.google.container.v" + + "1.SetLabelsRequest.ResourceLabelsEntry\022\031" + + "\n\021label_fingerprint\030\005 \001(\t\022\014\n\004name\030\007 \001(\t\032" + + "5\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"w\n\024SetLegacyAbacRequest\022\026" + + "\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001" + + "\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\017\n\007enabled\030\004 \001(" + + "\010\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartIPRotationReque" + + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" + + "B\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\006 \001" + + "(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"k\n\031Comple" + + "teIPRotationRequest\022\026\n\nproject_id\030\001 \001(\tB" + + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(" + + "\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"H\n\021AcceleratorConfig" + + "\022\031\n\021accelerator_count\030\001 \001(\003\022\030\n\020accelerat" + + "or_type\030\002 \001(\t\"\245\001\n\027SetNetworkPolicyReques" + + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" + + "\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022:\n\016network_p" + + "olicy\030\004 \001(\0132\".google.container.v1.Networ" + + "kPolicy\022\014\n\004name\030\006 \001(\t\"\245\001\n\033SetMaintenance" + + "PolicyRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zon" + + "e\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001(\t\022B\n\022maintenan" + + "ce_policy\030\004 \001(\0132&.google.container.v1.Ma" + + "intenancePolicy\022\014\n\004name\030\005 \001(\t\"4\n\rNetwork" + + "Config\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 " + + "\001(\t2\3139\n\016ClusterManager\022\314\001\n\014ListClusters\022" + + "(.google.container.v1.ListClustersReques" + + "t\032).google.container.v1.ListClustersResp" + + "onse\"g\202\323\344\223\002a\022,/v1/{parent=projects/*/loc" + + "ations/*}/clustersZ1\022//v1/projects/{proj" + + "ect_id}/zones/{zone}/clusters\022\310\001\n\nGetClu" + + "ster\022&.google.container.v1.GetClusterReq" + + "uest\032\034.google.container.v1.Cluster\"t\202\323\344\223" + + "\002n\022,/v1/{name=projects/*/locations/*/clu" + + "sters/*}Z>\022**/v1/{name=projects/*/locat" + + "ions/*/clusters/*}:setResourceLabels:\001*Z" + + "P\"K/v1/projects/{project_id}/zones/{zone" + + "}/clusters/{cluster_id}/resourceLabels:\001" + + "*\022\361\001\n\rSetLegacyAbac\022).google.container.v" + + "1.SetLegacyAbacRequest\032\036.google.containe" + + "r.v1.Operation\"\224\001\202\323\344\223\002\215\001\":/v1/{name=proj" + + "ects/*/locations/*/clusters/*}:setLegacy" + + "Abac:\001*ZL\"G/v1/projects/{project_id}/zon" + + "es/{zone}/clusters/{cluster_id}/legacyAb" + + "ac:\001*\022\374\001\n\017StartIPRotation\022+.google.conta" + + "iner.v1.StartIPRotationRequest\032\036.google." + + "container.v1.Operation\"\233\001\202\323\344\223\002\224\001\" * The Kubernetes version to change the nodes to (typically an - * upgrade). Use `-` to upgrade to the latest version supported by - * the server. + * upgrade). + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version * * * string desired_node_version = 4; @@ -194,8 +200,14 @@ public java.lang.String getDesiredNodeVersion() { /** *
    * The Kubernetes version to change the nodes to (typically an
-   * upgrade). Use `-` to upgrade to the latest version supported by
-   * the server.
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
    * 
* * string desired_node_version = 4; @@ -498,7 +510,6 @@ public java.lang.String getDesiredLocations(int index) { private com.google.container.v1.MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig_; /** *
-   * Master authorized networks is a Beta feature.
    * The desired configuration options for master authorized networks feature.
    * 
* @@ -509,7 +520,6 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { } /** *
-   * Master authorized networks is a Beta feature.
    * The desired configuration options for master authorized networks feature.
    * 
* @@ -520,7 +530,6 @@ public com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAu } /** *
-   * Master authorized networks is a Beta feature.
    * The desired configuration options for master authorized networks feature.
    * 
* @@ -534,9 +543,14 @@ public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getDesire private volatile java.lang.Object desiredMasterVersion_; /** *
-   * The Kubernetes version to change the master to. The only valid value is the
-   * latest supported version. Use "-" to have the server automatically select
-   * the latest version.
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
    * 
* * string desired_master_version = 100; @@ -555,9 +569,14 @@ public java.lang.String getDesiredMasterVersion() { } /** *
-   * The Kubernetes version to change the master to. The only valid value is the
-   * latest supported version. Use "-" to have the server automatically select
-   * the latest version.
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
    * 
* * string desired_master_version = 100; @@ -1085,8 +1104,14 @@ public Builder mergeFrom( /** *
      * The Kubernetes version to change the nodes to (typically an
-     * upgrade). Use `-` to upgrade to the latest version supported by
-     * the server.
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
      * 
* * string desired_node_version = 4; @@ -1106,8 +1131,14 @@ public java.lang.String getDesiredNodeVersion() { /** *
      * The Kubernetes version to change the nodes to (typically an
-     * upgrade). Use `-` to upgrade to the latest version supported by
-     * the server.
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
      * 
* * string desired_node_version = 4; @@ -1128,8 +1159,14 @@ public java.lang.String getDesiredNodeVersion() { /** *
      * The Kubernetes version to change the nodes to (typically an
-     * upgrade). Use `-` to upgrade to the latest version supported by
-     * the server.
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
      * 
* * string desired_node_version = 4; @@ -1147,8 +1184,14 @@ public Builder setDesiredNodeVersion( /** *
      * The Kubernetes version to change the nodes to (typically an
-     * upgrade). Use `-` to upgrade to the latest version supported by
-     * the server.
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
      * 
* * string desired_node_version = 4; @@ -1162,8 +1205,14 @@ public Builder clearDesiredNodeVersion() { /** *
      * The Kubernetes version to change the nodes to (typically an
-     * upgrade). Use `-` to upgrade to the latest version supported by
-     * the server.
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
      * 
* * string desired_node_version = 4; @@ -1995,7 +2044,6 @@ public Builder addDesiredLocationsBytes( com.google.container.v1.MasterAuthorizedNetworksConfig, com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> desiredMasterAuthorizedNetworksConfigBuilder_; /** *
-     * Master authorized networks is a Beta feature.
      * The desired configuration options for master authorized networks feature.
      * 
* @@ -2006,7 +2054,6 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { } /** *
-     * Master authorized networks is a Beta feature.
      * The desired configuration options for master authorized networks feature.
      * 
* @@ -2021,7 +2068,6 @@ public com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAu } /** *
-     * Master authorized networks is a Beta feature.
      * The desired configuration options for master authorized networks feature.
      * 
* @@ -2042,7 +2088,6 @@ public Builder setDesiredMasterAuthorizedNetworksConfig(com.google.container.v1. } /** *
-     * Master authorized networks is a Beta feature.
      * The desired configuration options for master authorized networks feature.
      * 
* @@ -2061,7 +2106,6 @@ public Builder setDesiredMasterAuthorizedNetworksConfig( } /** *
-     * Master authorized networks is a Beta feature.
      * The desired configuration options for master authorized networks feature.
      * 
* @@ -2084,7 +2128,6 @@ public Builder mergeDesiredMasterAuthorizedNetworksConfig(com.google.container.v } /** *
-     * Master authorized networks is a Beta feature.
      * The desired configuration options for master authorized networks feature.
      * 
* @@ -2103,7 +2146,6 @@ public Builder clearDesiredMasterAuthorizedNetworksConfig() { } /** *
-     * Master authorized networks is a Beta feature.
      * The desired configuration options for master authorized networks feature.
      * 
* @@ -2116,7 +2158,6 @@ public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder getDesired } /** *
-     * Master authorized networks is a Beta feature.
      * The desired configuration options for master authorized networks feature.
      * 
* @@ -2132,7 +2173,6 @@ public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getDesire } /** *
-     * Master authorized networks is a Beta feature.
      * The desired configuration options for master authorized networks feature.
      * 
* @@ -2155,9 +2195,14 @@ public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getDesire private java.lang.Object desiredMasterVersion_ = ""; /** *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version. Use "-" to have the server automatically select
-     * the latest version.
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
      * 
* * string desired_master_version = 100; @@ -2176,9 +2221,14 @@ public java.lang.String getDesiredMasterVersion() { } /** *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version. Use "-" to have the server automatically select
-     * the latest version.
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
      * 
* * string desired_master_version = 100; @@ -2198,9 +2248,14 @@ public java.lang.String getDesiredMasterVersion() { } /** *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version. Use "-" to have the server automatically select
-     * the latest version.
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
      * 
* * string desired_master_version = 100; @@ -2217,9 +2272,14 @@ public Builder setDesiredMasterVersion( } /** *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version. Use "-" to have the server automatically select
-     * the latest version.
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
      * 
* * string desired_master_version = 100; @@ -2232,9 +2292,14 @@ public Builder clearDesiredMasterVersion() { } /** *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version. Use "-" to have the server automatically select
-     * the latest version.
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
      * 
* * string desired_master_version = 100; diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java index c26632b0b8f2..2cc051544388 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java @@ -10,8 +10,14 @@ public interface ClusterUpdateOrBuilder extends /** *
    * The Kubernetes version to change the nodes to (typically an
-   * upgrade). Use `-` to upgrade to the latest version supported by
-   * the server.
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
    * 
* * string desired_node_version = 4; @@ -20,8 +26,14 @@ public interface ClusterUpdateOrBuilder extends /** *
    * The Kubernetes version to change the nodes to (typically an
-   * upgrade). Use `-` to upgrade to the latest version supported by
-   * the server.
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
    * 
* * string desired_node_version = 4; @@ -213,7 +225,6 @@ public interface ClusterUpdateOrBuilder extends /** *
-   * Master authorized networks is a Beta feature.
    * The desired configuration options for master authorized networks feature.
    * 
* @@ -222,7 +233,6 @@ public interface ClusterUpdateOrBuilder extends boolean hasDesiredMasterAuthorizedNetworksConfig(); /** *
-   * Master authorized networks is a Beta feature.
    * The desired configuration options for master authorized networks feature.
    * 
* @@ -231,7 +241,6 @@ public interface ClusterUpdateOrBuilder extends com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig(); /** *
-   * Master authorized networks is a Beta feature.
    * The desired configuration options for master authorized networks feature.
    * 
* @@ -241,9 +250,14 @@ public interface ClusterUpdateOrBuilder extends /** *
-   * The Kubernetes version to change the master to. The only valid value is the
-   * latest supported version. Use "-" to have the server automatically select
-   * the latest version.
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
    * 
* * string desired_master_version = 100; @@ -251,9 +265,14 @@ public interface ClusterUpdateOrBuilder extends java.lang.String getDesiredMasterVersion(); /** *
-   * The Kubernetes version to change the master to. The only valid value is the
-   * latest supported version. Use "-" to have the server automatically select
-   * the latest version.
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
    * 
* * string desired_master_version = 100; diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java index 4802c2e75408..a5cdc0da2f12 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java @@ -23,6 +23,7 @@ private CompleteIPRotationRequest() { projectId_ = ""; zone_ = ""; clusterId_ = ""; + name_ = ""; } @java.lang.Override @@ -67,6 +68,12 @@ private CompleteIPRotationRequest( clusterId_ = s; break; } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -103,13 +110,14 @@ private CompleteIPRotationRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -123,13 +131,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -147,14 +156,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -168,14 +178,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -193,12 +204,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -212,12 +224,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -231,6 +244,50 @@ public java.lang.String getClusterId() { } } + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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() { @@ -254,6 +311,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getClusterIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } unknownFields.writeTo(output); } @@ -272,6 +332,9 @@ public int getSerializedSize() { if (!getClusterIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -294,6 +357,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getZone()); result = result && getClusterId() .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -311,6 +376,8 @@ public int hashCode() { hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -454,6 +521,8 @@ public Builder clear() { clusterId_ = ""; + name_ = ""; + return this; } @@ -483,6 +552,7 @@ public com.google.container.v1.CompleteIPRotationRequest buildPartial() { result.projectId_ = projectId_; result.zone_ = zone_; result.clusterId_ = clusterId_; + result.name_ = name_; onBuilt(); return result; } @@ -543,6 +613,10 @@ public Builder mergeFrom(com.google.container.v1.CompleteIPRotationRequest other clusterId_ = other.clusterId_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -575,13 +649,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -595,13 +670,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -616,13 +692,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -634,13 +711,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -648,13 +726,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -669,14 +748,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -690,14 +770,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -712,14 +793,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -731,14 +813,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -746,14 +829,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -768,12 +852,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -787,12 +872,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -807,12 +893,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -824,12 +911,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -837,12 +925,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -853,6 +942,100 @@ public Builder setClusterIdBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java index dcd620fa3b89..cf86d155a19a 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java @@ -9,61 +9,87 @@ public interface CompleteIPRotationRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java index 46fd92c290c4..e84533776194 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java @@ -22,6 +22,7 @@ private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder b private CreateClusterRequest() { projectId_ = ""; zone_ = ""; + parent_ = ""; } @java.lang.Override @@ -73,6 +74,12 @@ private CreateClusterRequest( break; } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -109,13 +116,14 @@ private CreateClusterRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -129,13 +137,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -153,14 +162,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -174,14 +184,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -231,6 +242,50 @@ public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { return getCluster(); } + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -254,6 +309,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (cluster_ != null) { output.writeMessage(3, getCluster()); } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } unknownFields.writeTo(output); } @@ -273,6 +331,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCluster()); } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -298,6 +359,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getCluster() .equals(other.getCluster()); } + result = result && getParent() + .equals(other.getParent()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -317,6 +380,8 @@ public int hashCode() { hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -464,6 +529,8 @@ public Builder clear() { cluster_ = null; clusterBuilder_ = null; } + parent_ = ""; + return this; } @@ -497,6 +564,7 @@ public com.google.container.v1.CreateClusterRequest buildPartial() { } else { result.cluster_ = clusterBuilder_.build(); } + result.parent_ = parent_; onBuilt(); return result; } @@ -556,6 +624,10 @@ public Builder mergeFrom(com.google.container.v1.CreateClusterRequest other) { if (other.hasCluster()) { mergeCluster(other.getCluster()); } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -588,13 +660,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -608,13 +681,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -629,13 +703,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -647,13 +722,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -661,13 +737,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -682,14 +759,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -703,14 +781,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -725,14 +804,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -744,14 +824,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -759,14 +840,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -939,6 +1021,100 @@ public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { } return clusterBuilder_; } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java index f2641e17fa19..6740fbbf6759 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java @@ -9,44 +9,48 @@ public interface CreateClusterRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** @@ -76,4 +80,24 @@ public interface CreateClusterRequestOrBuilder extends * .google.container.v1.Cluster cluster = 3; */ com.google.container.v1.ClusterOrBuilder getClusterOrBuilder(); + + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java index fc274acee746..282c23cb160b 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java @@ -23,6 +23,7 @@ private CreateNodePoolRequest() { projectId_ = ""; zone_ = ""; clusterId_ = ""; + parent_ = ""; } @java.lang.Override @@ -80,6 +81,12 @@ private CreateNodePoolRequest( break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -116,13 +123,14 @@ private CreateNodePoolRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -136,13 +144,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -160,14 +169,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -181,14 +191,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -206,12 +217,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -225,12 +237,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -277,6 +290,52 @@ public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { return getNodePool(); } + public static final int PARENT_FIELD_NUMBER = 6; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -303,6 +362,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nodePool_ != null) { output.writeMessage(4, getNodePool()); } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); + } unknownFields.writeTo(output); } @@ -325,6 +387,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getNodePool()); } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -352,6 +417,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getNodePool() .equals(other.getNodePool()); } + result = result && getParent() + .equals(other.getParent()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -373,6 +440,8 @@ public int hashCode() { hash = (37 * hash) + NODE_POOL_FIELD_NUMBER; hash = (53 * hash) + getNodePool().hashCode(); } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -522,6 +591,8 @@ public Builder clear() { nodePool_ = null; nodePoolBuilder_ = null; } + parent_ = ""; + return this; } @@ -556,6 +627,7 @@ public com.google.container.v1.CreateNodePoolRequest buildPartial() { } else { result.nodePool_ = nodePoolBuilder_.build(); } + result.parent_ = parent_; onBuilt(); return result; } @@ -619,6 +691,10 @@ public Builder mergeFrom(com.google.container.v1.CreateNodePoolRequest other) { if (other.hasNodePool()) { mergeNodePool(other.getNodePool()); } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -651,13 +727,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -671,13 +748,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -692,13 +770,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -710,13 +789,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -724,13 +804,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -745,14 +826,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -766,14 +848,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -788,14 +871,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -807,14 +891,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -822,14 +907,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -844,12 +930,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -863,12 +950,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -883,12 +971,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -900,12 +989,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -913,12 +1003,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1082,6 +1173,105 @@ public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { } return nodePoolBuilder_; } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java index 07f00dc3ed68..e520be3d8859 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java @@ -9,62 +9,68 @@ public interface CreateNodePoolRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** @@ -91,4 +97,26 @@ public interface CreateNodePoolRequestOrBuilder extends * .google.container.v1.NodePool node_pool = 4; */ com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder(); + + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java index 8cd0b57026d8..b4e475180240 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java @@ -23,6 +23,7 @@ private DeleteClusterRequest() { projectId_ = ""; zone_ = ""; clusterId_ = ""; + name_ = ""; } @java.lang.Override @@ -67,6 +68,12 @@ private DeleteClusterRequest( clusterId_ = s; break; } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -103,13 +110,14 @@ private DeleteClusterRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -123,13 +131,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -147,14 +156,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -168,14 +178,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -193,12 +204,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to delete.
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -212,12 +224,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to delete.
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -231,6 +244,50 @@ public java.lang.String getClusterId() { } } + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + 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() { @@ -254,6 +311,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getClusterIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } unknownFields.writeTo(output); } @@ -272,6 +332,9 @@ public int getSerializedSize() { if (!getClusterIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -294,6 +357,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getZone()); result = result && getClusterId() .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -311,6 +376,8 @@ public int hashCode() { hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -454,6 +521,8 @@ public Builder clear() { clusterId_ = ""; + name_ = ""; + return this; } @@ -483,6 +552,7 @@ public com.google.container.v1.DeleteClusterRequest buildPartial() { result.projectId_ = projectId_; result.zone_ = zone_; result.clusterId_ = clusterId_; + result.name_ = name_; onBuilt(); return result; } @@ -543,6 +613,10 @@ public Builder mergeFrom(com.google.container.v1.DeleteClusterRequest other) { clusterId_ = other.clusterId_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -575,13 +649,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -595,13 +670,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -616,13 +692,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -634,13 +711,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -648,13 +726,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -669,14 +748,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -690,14 +770,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -712,14 +793,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -731,14 +813,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -746,14 +829,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -768,12 +852,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to delete.
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -787,12 +872,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to delete.
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -807,12 +893,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to delete.
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -824,12 +911,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to delete.
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -837,12 +925,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to delete.
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -853,6 +942,100 @@ public Builder setClusterIdBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java index 0069b71fa9ad..1eddeeb1fd34 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java @@ -9,61 +9,87 @@ public interface DeleteClusterRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to delete.
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to delete.
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java index 4bc98edc9cc6..27438f9b21d8 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java @@ -24,6 +24,7 @@ private DeleteNodePoolRequest() { zone_ = ""; clusterId_ = ""; nodePoolId_ = ""; + name_ = ""; } @java.lang.Override @@ -74,6 +75,12 @@ private DeleteNodePoolRequest( nodePoolId_ = s; break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -110,13 +117,14 @@ private DeleteNodePoolRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -130,13 +138,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -154,14 +163,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -175,14 +185,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -200,12 +211,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -219,12 +231,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -242,12 +255,13 @@ public java.lang.String getClusterId() { private volatile java.lang.Object nodePoolId_; /** *
-   * The name of the node pool to delete.
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -261,12 +275,13 @@ public java.lang.String getNodePoolId() { } /** *
-   * The name of the node pool to delete.
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { @@ -280,6 +295,52 @@ public java.lang.String getNodePoolId() { } } + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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() { @@ -306,6 +367,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNodePoolIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } unknownFields.writeTo(output); } @@ -327,6 +391,9 @@ public int getSerializedSize() { if (!getNodePoolIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -351,6 +418,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClusterId()); result = result && getNodePoolId() .equals(other.getNodePoolId()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -370,6 +439,8 @@ public int hashCode() { hash = (53 * hash) + getClusterId().hashCode(); hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -515,6 +586,8 @@ public Builder clear() { nodePoolId_ = ""; + name_ = ""; + return this; } @@ -545,6 +618,7 @@ public com.google.container.v1.DeleteNodePoolRequest buildPartial() { result.zone_ = zone_; result.clusterId_ = clusterId_; result.nodePoolId_ = nodePoolId_; + result.name_ = name_; onBuilt(); return result; } @@ -609,6 +683,10 @@ public Builder mergeFrom(com.google.container.v1.DeleteNodePoolRequest other) { nodePoolId_ = other.nodePoolId_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -641,13 +719,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -661,13 +740,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -682,13 +762,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -700,13 +781,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -714,13 +796,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -735,14 +818,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -756,14 +840,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -778,14 +863,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -797,14 +883,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -812,14 +899,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -834,12 +922,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -853,12 +942,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -873,12 +963,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -890,12 +981,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -903,12 +995,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -923,12 +1016,13 @@ public Builder setClusterIdBytes( private java.lang.Object nodePoolId_ = ""; /** *
-     * The name of the node pool to delete.
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -942,12 +1036,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to delete.
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof String) { @@ -962,12 +1057,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to delete.
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolId( + @java.lang.Deprecated public Builder setNodePoolId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -979,12 +1075,13 @@ public Builder setNodePoolId( } /** *
-     * The name of the node pool to delete.
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder clearNodePoolId() { + @java.lang.Deprecated public Builder clearNodePoolId() { nodePoolId_ = getDefaultInstance().getNodePoolId(); onChanged(); @@ -992,12 +1089,13 @@ public Builder clearNodePoolId() { } /** *
-     * The name of the node pool to delete.
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolIdBytes( + @java.lang.Deprecated public Builder setNodePoolIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1008,6 +1106,105 @@ public Builder setNodePoolIdBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java index 1a9721d269f5..152e9ce8ff8b 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java @@ -9,79 +9,109 @@ public interface DeleteNodePoolRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** *
-   * The name of the node pool to delete.
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - java.lang.String getNodePoolId(); + @java.lang.Deprecated java.lang.String getNodePoolId(); /** *
-   * The name of the node pool to delete.
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java index 8640ec81a6a7..5711130500d6 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java @@ -23,6 +23,7 @@ private GetClusterRequest() { projectId_ = ""; zone_ = ""; clusterId_ = ""; + name_ = ""; } @java.lang.Override @@ -67,6 +68,12 @@ private GetClusterRequest( clusterId_ = s; break; } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -103,13 +110,14 @@ private GetClusterRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -123,13 +131,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -147,14 +156,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -168,14 +178,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -193,12 +204,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to retrieve.
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -212,12 +224,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to retrieve.
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -231,6 +244,50 @@ public java.lang.String getClusterId() { } } + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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() { @@ -254,6 +311,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getClusterIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } unknownFields.writeTo(output); } @@ -272,6 +332,9 @@ public int getSerializedSize() { if (!getClusterIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -294,6 +357,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getZone()); result = result && getClusterId() .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -311,6 +376,8 @@ public int hashCode() { hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -454,6 +521,8 @@ public Builder clear() { clusterId_ = ""; + name_ = ""; + return this; } @@ -483,6 +552,7 @@ public com.google.container.v1.GetClusterRequest buildPartial() { result.projectId_ = projectId_; result.zone_ = zone_; result.clusterId_ = clusterId_; + result.name_ = name_; onBuilt(); return result; } @@ -543,6 +613,10 @@ public Builder mergeFrom(com.google.container.v1.GetClusterRequest other) { clusterId_ = other.clusterId_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -575,13 +649,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -595,13 +670,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -616,13 +692,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -634,13 +711,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -648,13 +726,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -669,14 +748,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -690,14 +770,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -712,14 +793,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -731,14 +813,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -746,14 +829,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -768,12 +852,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to retrieve.
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -787,12 +872,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to retrieve.
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -807,12 +893,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to retrieve.
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -824,12 +911,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to retrieve.
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -837,12 +925,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to retrieve.
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -853,6 +942,100 @@ public Builder setClusterIdBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java index a9eec38ce479..78bc10a9a83b 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java @@ -9,61 +9,87 @@ public interface GetClusterRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to retrieve.
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to retrieve.
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java index a8f4bdd1df96..25c545a60a83 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java @@ -24,6 +24,7 @@ private GetNodePoolRequest() { zone_ = ""; clusterId_ = ""; nodePoolId_ = ""; + name_ = ""; } @java.lang.Override @@ -74,6 +75,12 @@ private GetNodePoolRequest( nodePoolId_ = s; break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -110,13 +117,14 @@ private GetNodePoolRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -130,13 +138,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -154,14 +163,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -175,14 +185,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -200,12 +211,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -219,12 +231,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -242,12 +255,13 @@ public java.lang.String getClusterId() { private volatile java.lang.Object nodePoolId_; /** *
-   * The name of the node pool.
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -261,12 +275,13 @@ public java.lang.String getNodePoolId() { } /** *
-   * The name of the node pool.
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { @@ -280,6 +295,52 @@ public java.lang.String getNodePoolId() { } } + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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() { @@ -306,6 +367,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNodePoolIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } unknownFields.writeTo(output); } @@ -327,6 +391,9 @@ public int getSerializedSize() { if (!getNodePoolIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -351,6 +418,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClusterId()); result = result && getNodePoolId() .equals(other.getNodePoolId()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -370,6 +439,8 @@ public int hashCode() { hash = (53 * hash) + getClusterId().hashCode(); hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -515,6 +586,8 @@ public Builder clear() { nodePoolId_ = ""; + name_ = ""; + return this; } @@ -545,6 +618,7 @@ public com.google.container.v1.GetNodePoolRequest buildPartial() { result.zone_ = zone_; result.clusterId_ = clusterId_; result.nodePoolId_ = nodePoolId_; + result.name_ = name_; onBuilt(); return result; } @@ -609,6 +683,10 @@ public Builder mergeFrom(com.google.container.v1.GetNodePoolRequest other) { nodePoolId_ = other.nodePoolId_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -641,13 +719,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -661,13 +740,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -682,13 +762,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -700,13 +781,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -714,13 +796,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -735,14 +818,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -756,14 +840,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -778,14 +863,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -797,14 +883,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -812,14 +899,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -834,12 +922,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -853,12 +942,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -873,12 +963,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -890,12 +981,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -903,12 +995,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -923,12 +1016,13 @@ public Builder setClusterIdBytes( private java.lang.Object nodePoolId_ = ""; /** *
-     * The name of the node pool.
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -942,12 +1036,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool.
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof String) { @@ -962,12 +1057,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool.
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolId( + @java.lang.Deprecated public Builder setNodePoolId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -979,12 +1075,13 @@ public Builder setNodePoolId( } /** *
-     * The name of the node pool.
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder clearNodePoolId() { + @java.lang.Deprecated public Builder clearNodePoolId() { nodePoolId_ = getDefaultInstance().getNodePoolId(); onChanged(); @@ -992,12 +1089,13 @@ public Builder clearNodePoolId() { } /** *
-     * The name of the node pool.
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolIdBytes( + @java.lang.Deprecated public Builder setNodePoolIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1008,6 +1106,105 @@ public Builder setNodePoolIdBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java index f730b6eefb89..808858e2c3b9 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java @@ -9,79 +9,109 @@ public interface GetNodePoolRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** *
-   * The name of the node pool.
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - java.lang.String getNodePoolId(); + @java.lang.Deprecated java.lang.String getNodePoolId(); /** *
-   * The name of the node pool.
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java index 47a0aa14c117..39ca84a29685 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java @@ -23,6 +23,7 @@ private GetOperationRequest() { projectId_ = ""; zone_ = ""; operationId_ = ""; + name_ = ""; } @java.lang.Override @@ -67,6 +68,12 @@ private GetOperationRequest( operationId_ = s; break; } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -103,13 +110,14 @@ private GetOperationRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -123,13 +131,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -147,14 +156,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -168,14 +178,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -193,12 +204,13 @@ public java.lang.String getZone() { private volatile java.lang.Object operationId_; /** *
-   * The server-assigned `name` of the operation.
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public java.lang.String getOperationId() { + @java.lang.Deprecated public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -212,12 +224,13 @@ public java.lang.String getOperationId() { } /** *
-   * The server-assigned `name` of the operation.
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { @@ -231,6 +244,50 @@ public java.lang.String getOperationId() { } } + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + 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() { @@ -254,6 +311,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getOperationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } unknownFields.writeTo(output); } @@ -272,6 +332,9 @@ public int getSerializedSize() { if (!getOperationIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -294,6 +357,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getZone()); result = result && getOperationId() .equals(other.getOperationId()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -311,6 +376,8 @@ public int hashCode() { hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -454,6 +521,8 @@ public Builder clear() { operationId_ = ""; + name_ = ""; + return this; } @@ -483,6 +552,7 @@ public com.google.container.v1.GetOperationRequest buildPartial() { result.projectId_ = projectId_; result.zone_ = zone_; result.operationId_ = operationId_; + result.name_ = name_; onBuilt(); return result; } @@ -543,6 +613,10 @@ public Builder mergeFrom(com.google.container.v1.GetOperationRequest other) { operationId_ = other.operationId_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -575,13 +649,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -595,13 +670,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -616,13 +692,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -634,13 +711,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -648,13 +726,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -669,14 +748,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -690,14 +770,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -712,14 +793,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -731,14 +813,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -746,14 +829,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -768,12 +852,13 @@ public Builder setZoneBytes( private java.lang.Object operationId_ = ""; /** *
-     * The server-assigned `name` of the operation.
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public java.lang.String getOperationId() { + @java.lang.Deprecated public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -787,12 +872,13 @@ public java.lang.String getOperationId() { } /** *
-     * The server-assigned `name` of the operation.
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof String) { @@ -807,12 +893,13 @@ public java.lang.String getOperationId() { } /** *
-     * The server-assigned `name` of the operation.
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public Builder setOperationId( + @java.lang.Deprecated public Builder setOperationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -824,12 +911,13 @@ public Builder setOperationId( } /** *
-     * The server-assigned `name` of the operation.
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public Builder clearOperationId() { + @java.lang.Deprecated public Builder clearOperationId() { operationId_ = getDefaultInstance().getOperationId(); onChanged(); @@ -837,12 +925,13 @@ public Builder clearOperationId() { } /** *
-     * The server-assigned `name` of the operation.
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - public Builder setOperationIdBytes( + @java.lang.Deprecated public Builder setOperationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -853,6 +942,100 @@ public Builder setOperationIdBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java index e7acbb2ad6cc..130a36744588 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java @@ -9,61 +9,87 @@ public interface GetOperationRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The server-assigned `name` of the operation.
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - java.lang.String getOperationId(); + @java.lang.Deprecated java.lang.String getOperationId(); /** *
-   * The server-assigned `name` of the operation.
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string operation_id = 3; + * string operation_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getOperationIdBytes(); + + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java index 7f6f50880700..dd33c1f8882c 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java @@ -5,7 +5,7 @@ /** *
- * Gets the current Container Engine service configuration.
+ * Gets the current Kubernetes Engine service configuration.
  * 
* * Protobuf type {@code google.container.v1.GetServerConfigRequest} @@ -22,6 +22,7 @@ private GetServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder private GetServerConfigRequest() { projectId_ = ""; zone_ = ""; + name_ = ""; } @java.lang.Override @@ -60,6 +61,12 @@ private GetServerConfigRequest( zone_ = s; break; } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -96,13 +103,14 @@ private GetServerConfigRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -116,13 +124,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -140,13 +149,14 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-   * to return operations for.
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -160,13 +170,14 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-   * to return operations for.
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -180,6 +191,50 @@ public java.lang.String getZone() { } } + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + 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() { @@ -200,6 +255,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getZoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } unknownFields.writeTo(output); } @@ -215,6 +273,9 @@ public int getSerializedSize() { if (!getZoneBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -235,6 +296,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getProjectId()); result = result && getZone() .equals(other.getZone()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -250,6 +313,8 @@ public int hashCode() { hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -347,7 +412,7 @@ protected Builder newBuilderForType( } /** *
-   * Gets the current Container Engine service configuration.
+   * Gets the current Kubernetes Engine service configuration.
    * 
* * Protobuf type {@code google.container.v1.GetServerConfigRequest} @@ -391,6 +456,8 @@ public Builder clear() { zone_ = ""; + name_ = ""; + return this; } @@ -419,6 +486,7 @@ public com.google.container.v1.GetServerConfigRequest buildPartial() { com.google.container.v1.GetServerConfigRequest result = new com.google.container.v1.GetServerConfigRequest(this); result.projectId_ = projectId_; result.zone_ = zone_; + result.name_ = name_; onBuilt(); return result; } @@ -475,6 +543,10 @@ public Builder mergeFrom(com.google.container.v1.GetServerConfigRequest other) { zone_ = other.zone_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -507,13 +579,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -527,13 +600,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -548,13 +622,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -566,13 +641,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -580,13 +656,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -601,13 +678,14 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-     * to return operations for.
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -621,13 +699,14 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-     * to return operations for.
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -642,13 +721,14 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-     * to return operations for.
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -660,13 +740,14 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-     * to return operations for.
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -674,13 +755,14 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-     * to return operations for.
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -691,6 +773,100 @@ public Builder setZoneBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java index 86071c569475..81686f271891 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java @@ -9,41 +9,65 @@ public interface GetServerConfigRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-   * to return operations for.
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-   * to return operations for.
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); + + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java index 8f630a000903..e853fff4d4cb 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java @@ -233,9 +233,9 @@ public java.lang.String getSubnetworkName() { * This field is deprecated, use cluster_ipv4_cidr_block. * * - * string cluster_ipv4_cidr = 4; + * string cluster_ipv4_cidr = 4 [deprecated = true]; */ - public java.lang.String getClusterIpv4Cidr() { + @java.lang.Deprecated public java.lang.String getClusterIpv4Cidr() { java.lang.Object ref = clusterIpv4Cidr_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -252,9 +252,9 @@ public java.lang.String getClusterIpv4Cidr() { * This field is deprecated, use cluster_ipv4_cidr_block. * * - * string cluster_ipv4_cidr = 4; + * string cluster_ipv4_cidr = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { java.lang.Object ref = clusterIpv4Cidr_; if (ref instanceof java.lang.String) { @@ -275,9 +275,9 @@ public java.lang.String getClusterIpv4Cidr() { * This field is deprecated, use node_ipv4_cidr_block. * * - * string node_ipv4_cidr = 5; + * string node_ipv4_cidr = 5 [deprecated = true]; */ - public java.lang.String getNodeIpv4Cidr() { + @java.lang.Deprecated public java.lang.String getNodeIpv4Cidr() { java.lang.Object ref = nodeIpv4Cidr_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -294,9 +294,9 @@ public java.lang.String getNodeIpv4Cidr() { * This field is deprecated, use node_ipv4_cidr_block. * * - * string node_ipv4_cidr = 5; + * string node_ipv4_cidr = 5 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { java.lang.Object ref = nodeIpv4Cidr_; if (ref instanceof java.lang.String) { @@ -317,9 +317,9 @@ public java.lang.String getNodeIpv4Cidr() { * This field is deprecated, use services_ipv4_cidr_block. * * - * string services_ipv4_cidr = 6; + * string services_ipv4_cidr = 6 [deprecated = true]; */ - public java.lang.String getServicesIpv4Cidr() { + @java.lang.Deprecated public java.lang.String getServicesIpv4Cidr() { java.lang.Object ref = servicesIpv4Cidr_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -336,9 +336,9 @@ public java.lang.String getServicesIpv4Cidr() { * This field is deprecated, use services_ipv4_cidr_block. * * - * string services_ipv4_cidr = 6; + * string services_ipv4_cidr = 6 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { java.lang.Object ref = servicesIpv4Cidr_; if (ref instanceof java.lang.String) { @@ -1303,9 +1303,9 @@ public Builder setSubnetworkNameBytes( * This field is deprecated, use cluster_ipv4_cidr_block. * * - * string cluster_ipv4_cidr = 4; + * string cluster_ipv4_cidr = 4 [deprecated = true]; */ - public java.lang.String getClusterIpv4Cidr() { + @java.lang.Deprecated public java.lang.String getClusterIpv4Cidr() { java.lang.Object ref = clusterIpv4Cidr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -1322,9 +1322,9 @@ public java.lang.String getClusterIpv4Cidr() { * This field is deprecated, use cluster_ipv4_cidr_block. * * - * string cluster_ipv4_cidr = 4; + * string cluster_ipv4_cidr = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { java.lang.Object ref = clusterIpv4Cidr_; if (ref instanceof String) { @@ -1342,9 +1342,9 @@ public java.lang.String getClusterIpv4Cidr() { * This field is deprecated, use cluster_ipv4_cidr_block. * * - * string cluster_ipv4_cidr = 4; + * string cluster_ipv4_cidr = 4 [deprecated = true]; */ - public Builder setClusterIpv4Cidr( + @java.lang.Deprecated public Builder setClusterIpv4Cidr( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1359,9 +1359,9 @@ public Builder setClusterIpv4Cidr( * This field is deprecated, use cluster_ipv4_cidr_block. * * - * string cluster_ipv4_cidr = 4; + * string cluster_ipv4_cidr = 4 [deprecated = true]; */ - public Builder clearClusterIpv4Cidr() { + @java.lang.Deprecated public Builder clearClusterIpv4Cidr() { clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); onChanged(); @@ -1372,9 +1372,9 @@ public Builder clearClusterIpv4Cidr() { * This field is deprecated, use cluster_ipv4_cidr_block. * * - * string cluster_ipv4_cidr = 4; + * string cluster_ipv4_cidr = 4 [deprecated = true]; */ - public Builder setClusterIpv4CidrBytes( + @java.lang.Deprecated public Builder setClusterIpv4CidrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1392,9 +1392,9 @@ public Builder setClusterIpv4CidrBytes( * This field is deprecated, use node_ipv4_cidr_block. * * - * string node_ipv4_cidr = 5; + * string node_ipv4_cidr = 5 [deprecated = true]; */ - public java.lang.String getNodeIpv4Cidr() { + @java.lang.Deprecated public java.lang.String getNodeIpv4Cidr() { java.lang.Object ref = nodeIpv4Cidr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -1411,9 +1411,9 @@ public java.lang.String getNodeIpv4Cidr() { * This field is deprecated, use node_ipv4_cidr_block. * * - * string node_ipv4_cidr = 5; + * string node_ipv4_cidr = 5 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { java.lang.Object ref = nodeIpv4Cidr_; if (ref instanceof String) { @@ -1431,9 +1431,9 @@ public java.lang.String getNodeIpv4Cidr() { * This field is deprecated, use node_ipv4_cidr_block. * * - * string node_ipv4_cidr = 5; + * string node_ipv4_cidr = 5 [deprecated = true]; */ - public Builder setNodeIpv4Cidr( + @java.lang.Deprecated public Builder setNodeIpv4Cidr( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1448,9 +1448,9 @@ public Builder setNodeIpv4Cidr( * This field is deprecated, use node_ipv4_cidr_block. * * - * string node_ipv4_cidr = 5; + * string node_ipv4_cidr = 5 [deprecated = true]; */ - public Builder clearNodeIpv4Cidr() { + @java.lang.Deprecated public Builder clearNodeIpv4Cidr() { nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); onChanged(); @@ -1461,9 +1461,9 @@ public Builder clearNodeIpv4Cidr() { * This field is deprecated, use node_ipv4_cidr_block. * * - * string node_ipv4_cidr = 5; + * string node_ipv4_cidr = 5 [deprecated = true]; */ - public Builder setNodeIpv4CidrBytes( + @java.lang.Deprecated public Builder setNodeIpv4CidrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1481,9 +1481,9 @@ public Builder setNodeIpv4CidrBytes( * This field is deprecated, use services_ipv4_cidr_block. * * - * string services_ipv4_cidr = 6; + * string services_ipv4_cidr = 6 [deprecated = true]; */ - public java.lang.String getServicesIpv4Cidr() { + @java.lang.Deprecated public java.lang.String getServicesIpv4Cidr() { java.lang.Object ref = servicesIpv4Cidr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -1500,9 +1500,9 @@ public java.lang.String getServicesIpv4Cidr() { * This field is deprecated, use services_ipv4_cidr_block. * * - * string services_ipv4_cidr = 6; + * string services_ipv4_cidr = 6 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { java.lang.Object ref = servicesIpv4Cidr_; if (ref instanceof String) { @@ -1520,9 +1520,9 @@ public java.lang.String getServicesIpv4Cidr() { * This field is deprecated, use services_ipv4_cidr_block. * * - * string services_ipv4_cidr = 6; + * string services_ipv4_cidr = 6 [deprecated = true]; */ - public Builder setServicesIpv4Cidr( + @java.lang.Deprecated public Builder setServicesIpv4Cidr( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1537,9 +1537,9 @@ public Builder setServicesIpv4Cidr( * This field is deprecated, use services_ipv4_cidr_block. * * - * string services_ipv4_cidr = 6; + * string services_ipv4_cidr = 6 [deprecated = true]; */ - public Builder clearServicesIpv4Cidr() { + @java.lang.Deprecated public Builder clearServicesIpv4Cidr() { servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); onChanged(); @@ -1550,9 +1550,9 @@ public Builder clearServicesIpv4Cidr() { * This field is deprecated, use services_ipv4_cidr_block. * * - * string services_ipv4_cidr = 6; + * string services_ipv4_cidr = 6 [deprecated = true]; */ - public Builder setServicesIpv4CidrBytes( + @java.lang.Deprecated public Builder setServicesIpv4CidrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java index 0ab8bd051665..79638d008971 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java @@ -53,17 +53,17 @@ public interface IPAllocationPolicyOrBuilder extends * This field is deprecated, use cluster_ipv4_cidr_block. * * - * string cluster_ipv4_cidr = 4; + * string cluster_ipv4_cidr = 4 [deprecated = true]; */ - java.lang.String getClusterIpv4Cidr(); + @java.lang.Deprecated java.lang.String getClusterIpv4Cidr(); /** *
    * This field is deprecated, use cluster_ipv4_cidr_block.
    * 
* - * string cluster_ipv4_cidr = 4; + * string cluster_ipv4_cidr = 4 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIpv4CidrBytes(); /** @@ -71,17 +71,17 @@ public interface IPAllocationPolicyOrBuilder extends * This field is deprecated, use node_ipv4_cidr_block. * * - * string node_ipv4_cidr = 5; + * string node_ipv4_cidr = 5 [deprecated = true]; */ - java.lang.String getNodeIpv4Cidr(); + @java.lang.Deprecated java.lang.String getNodeIpv4Cidr(); /** *
    * This field is deprecated, use node_ipv4_cidr_block.
    * 
* - * string node_ipv4_cidr = 5; + * string node_ipv4_cidr = 5 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getNodeIpv4CidrBytes(); /** @@ -89,17 +89,17 @@ public interface IPAllocationPolicyOrBuilder extends * This field is deprecated, use services_ipv4_cidr_block. * * - * string services_ipv4_cidr = 6; + * string services_ipv4_cidr = 6 [deprecated = true]; */ - java.lang.String getServicesIpv4Cidr(); + @java.lang.Deprecated java.lang.String getServicesIpv4Cidr(); /** *
    * This field is deprecated, use services_ipv4_cidr_block.
    * 
* - * string services_ipv4_cidr = 6; + * string services_ipv4_cidr = 6 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getServicesIpv4CidrBytes(); /** diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java index 31b0669c0706..0321fa233702 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java @@ -22,6 +22,7 @@ private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder bu private ListClustersRequest() { projectId_ = ""; zone_ = ""; + parent_ = ""; } @java.lang.Override @@ -60,6 +61,12 @@ private ListClustersRequest( zone_ = s; break; } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -96,13 +103,14 @@ private ListClustersRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -116,13 +124,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -140,14 +149,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -161,14 +171,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -182,6 +193,52 @@ public java.lang.String getZone() { } } + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -202,6 +259,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getZoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } unknownFields.writeTo(output); } @@ -217,6 +277,9 @@ public int getSerializedSize() { if (!getZoneBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -237,6 +300,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getProjectId()); result = result && getZone() .equals(other.getZone()); + result = result && getParent() + .equals(other.getParent()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -252,6 +317,8 @@ public int hashCode() { hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -393,6 +460,8 @@ public Builder clear() { zone_ = ""; + parent_ = ""; + return this; } @@ -421,6 +490,7 @@ public com.google.container.v1.ListClustersRequest buildPartial() { com.google.container.v1.ListClustersRequest result = new com.google.container.v1.ListClustersRequest(this); result.projectId_ = projectId_; result.zone_ = zone_; + result.parent_ = parent_; onBuilt(); return result; } @@ -477,6 +547,10 @@ public Builder mergeFrom(com.google.container.v1.ListClustersRequest other) { zone_ = other.zone_; onChanged(); } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -509,13 +583,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -529,13 +604,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -550,13 +626,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -568,13 +645,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -582,13 +660,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -603,14 +682,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -624,14 +704,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -646,14 +727,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -665,14 +747,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -680,14 +763,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -698,6 +782,105 @@ public Builder setZoneBytes( onChanged(); return this; } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java index ef9b8fee32f5..b79f22fad6c2 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java @@ -9,43 +9,69 @@ public interface ListClustersRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); + + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java index c546a9e003e6..477d91149851 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java @@ -23,6 +23,7 @@ private ListNodePoolsRequest() { projectId_ = ""; zone_ = ""; clusterId_ = ""; + parent_ = ""; } @java.lang.Override @@ -67,6 +68,12 @@ private ListNodePoolsRequest( clusterId_ = s; break; } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -103,13 +110,14 @@ private ListNodePoolsRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -123,13 +131,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -147,14 +156,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -168,14 +178,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -193,12 +204,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -212,12 +224,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -231,6 +244,50 @@ public java.lang.String getClusterId() { } } + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -254,6 +311,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getClusterIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } unknownFields.writeTo(output); } @@ -272,6 +332,9 @@ public int getSerializedSize() { if (!getClusterIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -294,6 +357,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getZone()); result = result && getClusterId() .equals(other.getClusterId()); + result = result && getParent() + .equals(other.getParent()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -311,6 +376,8 @@ public int hashCode() { hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -454,6 +521,8 @@ public Builder clear() { clusterId_ = ""; + parent_ = ""; + return this; } @@ -483,6 +552,7 @@ public com.google.container.v1.ListNodePoolsRequest buildPartial() { result.projectId_ = projectId_; result.zone_ = zone_; result.clusterId_ = clusterId_; + result.parent_ = parent_; onBuilt(); return result; } @@ -543,6 +613,10 @@ public Builder mergeFrom(com.google.container.v1.ListNodePoolsRequest other) { clusterId_ = other.clusterId_; onChanged(); } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -575,13 +649,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -595,13 +670,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -616,13 +692,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -634,13 +711,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -648,13 +726,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -669,14 +748,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -690,14 +770,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -712,14 +793,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -731,14 +813,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -746,14 +829,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -768,12 +852,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -787,12 +872,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -807,12 +893,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -824,12 +911,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -837,12 +925,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -853,6 +942,100 @@ public Builder setClusterIdBytes( onChanged(); return this; } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java index 698ea8429981..38bcfb9d50f1 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java @@ -9,61 +9,87 @@ public interface ListNodePoolsRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); + + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java index 01b6db9f0c88..da85b8bb1ff8 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java @@ -22,6 +22,7 @@ private ListOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder private ListOperationsRequest() { projectId_ = ""; zone_ = ""; + parent_ = ""; } @java.lang.Override @@ -60,6 +61,12 @@ private ListOperationsRequest( zone_ = s; break; } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -96,13 +103,14 @@ private ListOperationsRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -116,13 +124,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -140,13 +149,14 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-   * to return operations for, or `-` for all zones.
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -160,13 +170,14 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-   * to return operations for, or `-` for all zones.
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -180,6 +191,52 @@ public java.lang.String getZone() { } } + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -200,6 +257,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getZoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } unknownFields.writeTo(output); } @@ -215,6 +275,9 @@ public int getSerializedSize() { if (!getZoneBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -235,6 +298,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getProjectId()); result = result && getZone() .equals(other.getZone()); + result = result && getParent() + .equals(other.getParent()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -250,6 +315,8 @@ public int hashCode() { hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -391,6 +458,8 @@ public Builder clear() { zone_ = ""; + parent_ = ""; + return this; } @@ -419,6 +488,7 @@ public com.google.container.v1.ListOperationsRequest buildPartial() { com.google.container.v1.ListOperationsRequest result = new com.google.container.v1.ListOperationsRequest(this); result.projectId_ = projectId_; result.zone_ = zone_; + result.parent_ = parent_; onBuilt(); return result; } @@ -475,6 +545,10 @@ public Builder mergeFrom(com.google.container.v1.ListOperationsRequest other) { zone_ = other.zone_; onChanged(); } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -507,13 +581,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -527,13 +602,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -548,13 +624,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -566,13 +643,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -580,13 +658,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -601,13 +680,14 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-     * to return operations for, or `-` for all zones.
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -621,13 +701,14 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-     * to return operations for, or `-` for all zones.
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -642,13 +723,14 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-     * to return operations for, or `-` for all zones.
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -660,13 +742,14 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-     * to return operations for, or `-` for all zones.
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -674,13 +757,14 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-     * to return operations for, or `-` for all zones.
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -691,6 +775,105 @@ public Builder setZoneBytes( onChanged(); return this; } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java index df16b58515cc..a1aad82da489 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java @@ -9,41 +9,67 @@ public interface ListOperationsRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-   * to return operations for, or `-` for all zones.
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
-   * to return operations for, or `-` for all zones.
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); + + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocationName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocationName.java new file mode 100644 index 000000000000..9c6149578571 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocationName.java @@ -0,0 +1,189 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class LocationName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public static LocationName of(String project, String location) { + return newBuilder() + .setProject(project) + .setLocation(location) + .build(); + } + + public static String format(String project, String location) { + return newBuilder() + .setProject(project) + .setLocation(location) + .build() + .toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location); + } + + /** Builder for LocationName. */ + public static class Builder { + + private String project; + private String location; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder() { + } + + private Builder(LocationName locationName) { + project = locationName.project; + location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof LocationName) { + LocationName that = (LocationName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java index 8c93bc434d92..2478421ca4e6 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java @@ -226,8 +226,9 @@ public java.lang.String getPassword() { private com.google.container.v1.ClientCertificateConfig clientCertificateConfig_; /** *
-   * Configuration for client certificate authentication on the cluster.  If no
-   * configuration is specified, a client certificate is issued.
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
    * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -237,8 +238,9 @@ public boolean hasClientCertificateConfig() { } /** *
-   * Configuration for client certificate authentication on the cluster.  If no
-   * configuration is specified, a client certificate is issued.
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
    * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -248,8 +250,9 @@ public com.google.container.v1.ClientCertificateConfig getClientCertificateConfi } /** *
-   * Configuration for client certificate authentication on the cluster.  If no
-   * configuration is specified, a client certificate is issued.
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
    * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -1005,8 +1008,9 @@ public Builder setPasswordBytes( com.google.container.v1.ClientCertificateConfig, com.google.container.v1.ClientCertificateConfig.Builder, com.google.container.v1.ClientCertificateConfigOrBuilder> clientCertificateConfigBuilder_; /** *
-     * Configuration for client certificate authentication on the cluster.  If no
-     * configuration is specified, a client certificate is issued.
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
      * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -1016,8 +1020,9 @@ public boolean hasClientCertificateConfig() { } /** *
-     * Configuration for client certificate authentication on the cluster.  If no
-     * configuration is specified, a client certificate is issued.
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
      * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -1031,8 +1036,9 @@ public com.google.container.v1.ClientCertificateConfig getClientCertificateConfi } /** *
-     * Configuration for client certificate authentication on the cluster.  If no
-     * configuration is specified, a client certificate is issued.
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
      * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -1052,8 +1058,9 @@ public Builder setClientCertificateConfig(com.google.container.v1.ClientCertific } /** *
-     * Configuration for client certificate authentication on the cluster.  If no
-     * configuration is specified, a client certificate is issued.
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
      * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -1071,8 +1078,9 @@ public Builder setClientCertificateConfig( } /** *
-     * Configuration for client certificate authentication on the cluster.  If no
-     * configuration is specified, a client certificate is issued.
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
      * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -1094,8 +1102,9 @@ public Builder mergeClientCertificateConfig(com.google.container.v1.ClientCertif } /** *
-     * Configuration for client certificate authentication on the cluster.  If no
-     * configuration is specified, a client certificate is issued.
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
      * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -1113,8 +1122,9 @@ public Builder clearClientCertificateConfig() { } /** *
-     * Configuration for client certificate authentication on the cluster.  If no
-     * configuration is specified, a client certificate is issued.
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
      * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -1126,8 +1136,9 @@ public com.google.container.v1.ClientCertificateConfig.Builder getClientCertific } /** *
-     * Configuration for client certificate authentication on the cluster.  If no
-     * configuration is specified, a client certificate is issued.
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
      * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -1142,8 +1153,9 @@ public com.google.container.v1.ClientCertificateConfigOrBuilder getClientCertifi } /** *
-     * Configuration for client certificate authentication on the cluster.  If no
-     * configuration is specified, a client certificate is issued.
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
      * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java index 3d6590e199a9..8281e6e207c8 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java @@ -55,8 +55,9 @@ public interface MasterAuthOrBuilder extends /** *
-   * Configuration for client certificate authentication on the cluster.  If no
-   * configuration is specified, a client certificate is issued.
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
    * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -64,8 +65,9 @@ public interface MasterAuthOrBuilder extends boolean hasClientCertificateConfig(); /** *
-   * Configuration for client certificate authentication on the cluster.  If no
-   * configuration is specified, a client certificate is issued.
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
    * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; @@ -73,8 +75,9 @@ public interface MasterAuthOrBuilder extends com.google.container.v1.ClientCertificateConfig getClientCertificateConfig(); /** *
-   * Configuration for client certificate authentication on the cluster.  If no
-   * configuration is specified, a client certificate is issued.
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
    * 
* * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java index 0e4e5e766948..ce40139b9811 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java @@ -5,7 +5,6 @@ /** *
- * Master authorized networks is a Beta feature.
  * Configuration options for the master authorized networks feature. Enabled
  * master authorized networks will disallow all external traffic to access
  * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
@@ -1114,7 +1113,6 @@ protected Builder newBuilderForType(
   }
   /**
    * 
-   * Master authorized networks is a Beta feature.
    * Configuration options for the master authorized networks feature. Enabled
    * master authorized networks will disallow all external traffic to access
    * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java
new file mode 100644
index 000000000000..b81fe66110b7
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java
@@ -0,0 +1,767 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/container/v1/cluster_service.proto
+
+package com.google.container.v1;
+
+/**
+ * 
+ * NetworkConfig reports the relative names of network & subnetwork.
+ * 
+ * + * Protobuf type {@code google.container.v1.NetworkConfig} + */ +public final class NetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NetworkConfig) + NetworkConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkConfig.newBuilder() to construct. + private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkConfig() { + network_ = ""; + subnetwork_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NetworkConfig( + 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(); + + network_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + subnetwork_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkConfig.class, com.google.container.v1.NetworkConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object network_; + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+   * the cluster is connected.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+   * the cluster is connected.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object subnetwork_; + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = 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 (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!getSubnetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!getSubnetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); + } + 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.container.v1.NetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1.NetworkConfig other = (com.google.container.v1.NetworkConfig) obj; + + boolean result = true; + result = result && getNetwork() + .equals(other.getNetwork()); + result = result && getSubnetwork() + .equals(other.getSubnetwork()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NetworkConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NetworkConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1.NetworkConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NetworkConfig reports the relative names of network & subnetwork.
+   * 
+ * + * Protobuf type {@code google.container.v1.NetworkConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkConfig) + com.google.container.v1.NetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkConfig.class, com.google.container.v1.NetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1.NetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + network_ = ""; + + subnetwork_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig getDefaultInstanceForType() { + return com.google.container.v1.NetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig build() { + com.google.container.v1.NetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig buildPartial() { + com.google.container.v1.NetworkConfig result = new com.google.container.v1.NetworkConfig(this); + result.network_ = network_; + result.subnetwork_ = subnetwork_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NetworkConfig) { + return mergeFrom((com.google.container.v1.NetworkConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { + if (other == com.google.container.v1.NetworkConfig.getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.NetworkConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.NetworkConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+     * the cluster is connected.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+     * the cluster is connected.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+     * the cluster is connected.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + */ + public Builder setNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+     * the cluster is connected.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+     * the cluster is connected.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + */ + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + */ + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + */ + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NetworkConfig) + private static final com.google.container.v1.NetworkConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NetworkConfig(); + } + + public static com.google.container.v1.NetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java new file mode 100644 index 000000000000..eaa5c4bb21f5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface NetworkConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+   * the cluster is connected.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + */ + java.lang.String getNetwork(); + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+   * the cluster is connected.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + */ + java.lang.String getSubnetwork(); + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java index 3e8181ca2ed4..441c05b4c473 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java @@ -29,6 +29,7 @@ private NodeConfig() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; preemptible_ = false; accelerators_ = java.util.Collections.emptyList(); + diskType_ = ""; minCpuPlatform_ = ""; } @@ -142,6 +143,12 @@ private NodeConfig( input.readMessage(com.google.container.v1.AcceleratorConfig.parser(), extensionRegistry)); break; } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + diskType_ = s; + break; + } case 106: { java.lang.String s = input.readStringRequireUtf8(); @@ -430,8 +437,18 @@ public int getMetadataCount() { * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -459,8 +476,18 @@ public java.util.Map getMetadata() { * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -479,8 +506,18 @@ public java.util.Map getMetadataMap() { * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -504,8 +541,18 @@ public java.lang.String getMetadataOrDefault( * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -844,6 +891,50 @@ public com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuild return accelerators_.get(index); } + public static final int DISK_TYPE_FIELD_NUMBER = 12; + private volatile java.lang.Object diskType_; + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + public com.google.protobuf.ByteString + getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; private volatile java.lang.Object minCpuPlatform_; /** @@ -853,7 +944,8 @@ public com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuild * friendly names of CPU platforms, such as * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more - * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) *
* * string min_cpu_platform = 13; @@ -877,7 +969,8 @@ public java.lang.String getMinCpuPlatform() { * friendly names of CPU platforms, such as * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more - * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) *
* * string min_cpu_platform = 13; @@ -949,6 +1042,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < accelerators_.size(); i++) { output.writeMessage(11, accelerators_.get(i)); } + if (!getDiskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, diskType_); + } if (!getMinCpuPlatformBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); } @@ -1022,6 +1118,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, accelerators_.get(i)); } + if (!getDiskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, diskType_); + } if (!getMinCpuPlatformBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); } @@ -1063,6 +1162,8 @@ public boolean equals(final java.lang.Object obj) { == other.getPreemptible()); result = result && getAcceleratorsList() .equals(other.getAcceleratorsList()); + result = result && getDiskType() + .equals(other.getDiskType()); result = result && getMinCpuPlatform() .equals(other.getMinCpuPlatform()); result = result && unknownFields.equals(other.unknownFields); @@ -1109,6 +1210,8 @@ public int hashCode() { hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; hash = (53 * hash) + getAcceleratorsList().hashCode(); } + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; hash = (53 * hash) + getMinCpuPlatform().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1299,6 +1402,8 @@ public Builder clear() { } else { acceleratorsBuilder_.clear(); } + diskType_ = ""; + minCpuPlatform_ = ""; return this; @@ -1358,6 +1463,7 @@ public com.google.container.v1.NodeConfig buildPartial() { } else { result.accelerators_ = acceleratorsBuilder_.build(); } + result.diskType_ = diskType_; result.minCpuPlatform_ = minCpuPlatform_; result.bitField0_ = to_bitField0_; onBuilt(); @@ -1479,6 +1585,10 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { } } } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + onChanged(); + } if (!other.getMinCpuPlatform().isEmpty()) { minCpuPlatform_ = other.minCpuPlatform_; onChanged(); @@ -2012,8 +2122,18 @@ public int getMetadataCount() { * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -2041,8 +2161,18 @@ public java.util.Map getMetadata() { * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -2061,8 +2191,18 @@ public java.util.Map getMetadataMap() { * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -2086,8 +2226,18 @@ public java.lang.String getMetadataOrDefault( * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -2119,8 +2269,18 @@ public Builder clearMetadata() { * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -2151,8 +2311,18 @@ public Builder removeMetadata( * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -2176,8 +2346,18 @@ public Builder putMetadata( * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -3087,6 +3267,100 @@ public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder( return acceleratorsBuilder_; } + private java.lang.Object diskType_ = ""; + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public com.google.protobuf.ByteString + getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public Builder setDiskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + diskType_ = value; + onChanged(); + return this; + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public Builder clearDiskType() { + + diskType_ = getDefaultInstance().getDiskType(); + onChanged(); + return this; + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public Builder setDiskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diskType_ = value; + onChanged(); + return this; + } + private java.lang.Object minCpuPlatform_ = ""; /** *
@@ -3095,7 +3369,8 @@ public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder(
      * friendly names of CPU platforms, such as
      * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
      * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
-     * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
      * 
* * string min_cpu_platform = 13; @@ -3119,7 +3394,8 @@ public java.lang.String getMinCpuPlatform() { * friendly names of CPU platforms, such as * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more - * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) * * * string min_cpu_platform = 13; @@ -3144,7 +3420,8 @@ public java.lang.String getMinCpuPlatform() { * friendly names of CPU platforms, such as * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more - * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) * * * string min_cpu_platform = 13; @@ -3166,7 +3443,8 @@ public Builder setMinCpuPlatform( * friendly names of CPU platforms, such as * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more - * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) * * * string min_cpu_platform = 13; @@ -3184,7 +3462,8 @@ public Builder clearMinCpuPlatform() { * friendly names of CPU platforms, such as * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more - * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) * * * string min_cpu_platform = 13; diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java index 5e1812fa3873..9db91db89567 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java @@ -145,8 +145,18 @@ public interface NodeConfigOrBuilder extends * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -162,8 +172,18 @@ public interface NodeConfigOrBuilder extends * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -186,8 +206,18 @@ boolean containsMetadata( * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -204,8 +234,18 @@ boolean containsMetadata( * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -224,8 +264,18 @@ java.lang.String getMetadataOrDefault( * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes * in length. These are reflected as part of a URL in the metadata server. * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * Values are free-form strings, and only have meaning as interpreted by * the image running in the instance. The only restriction placed on them is * that each value's size must be less than or equal to 32 KB. @@ -472,6 +522,26 @@ java.lang.String getLabelsOrThrow( com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( int index); + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + java.lang.String getDiskType(); + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + com.google.protobuf.ByteString + getDiskTypeBytes(); + /** *
    * Minimum CPU platform to be used by this instance. The instance may be
@@ -479,7 +549,8 @@ com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(
    * friendly names of CPU platforms, such as
    * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
    * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
-   * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
    * 
* * string min_cpu_platform = 13; @@ -492,7 +563,8 @@ com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( * friendly names of CPU platforms, such as * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more - * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) * * * string min_cpu_platform = 13; diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolName.java new file mode 100644 index 000000000000..cbc156db379f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolName.java @@ -0,0 +1,235 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class NodePoolName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + private final String cluster; + private final String nodePool; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getNodePool() { + return nodePool; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private NodePoolName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + nodePool = Preconditions.checkNotNull(builder.getNodePool()); + } + + public static NodePoolName of(String project, String location, String cluster, String nodePool) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setNodePool(nodePool) + .build(); + } + + public static String format(String project, String location, String cluster, String nodePool) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setNodePool(nodePool) + .build() + .toString(); + } + + public static NodePoolName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "NodePoolName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster"), matchMap.get("node_pool")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (NodePoolName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldMapBuilder.put("cluster", cluster); + fieldMapBuilder.put("nodePool", nodePool); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location, "cluster", cluster, "node_pool", nodePool); + } + + /** Builder for NodePoolName. */ + public static class Builder { + + private String project; + private String location; + private String cluster; + private String nodePool; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getNodePool() { + return nodePool; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + public Builder setNodePool(String nodePool) { + this.nodePool = nodePool; + return this; + } + + private Builder() { + } + + private Builder(NodePoolName nodePoolName) { + project = nodePoolName.project; + location = nodePoolName.location; + cluster = nodePoolName.cluster; + nodePool = nodePoolName.nodePool; + } + + public NodePoolName build() { + return new NodePoolName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof NodePoolName) { + NodePoolName that = (NodePoolName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)) + && (this.cluster.equals(that.cluster)) + && (this.nodePool.equals(that.nodePool)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + h *= 1000003; + h ^= cluster.hashCode(); + h *= 1000003; + h ^= nodePool.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java index d267d02673e9..605726f2e647 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java @@ -29,6 +29,7 @@ private Operation() { statusMessage_ = ""; selfLink_ = ""; targetLink_ = ""; + location_ = ""; startTime_ = ""; endTime_ = ""; } @@ -105,6 +106,12 @@ private Operation( detail_ = s; break; } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } case 82: { java.lang.String s = input.readStringRequireUtf8(); @@ -740,11 +747,12 @@ public java.lang.String getName() { * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation * is taking place. + * This field is deprecated, use location instead. * * - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -761,11 +769,12 @@ public java.lang.String getZone() { * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation * is taking place. + * This field is deprecated, use location instead. * * - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -997,6 +1006,54 @@ public java.lang.String getTargetLink() { } } + public static final int LOCATION_FIELD_NUMBER = 9; + private volatile java.lang.Object location_; + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int START_TIME_FIELD_NUMBER = 10; private volatile java.lang.Object startTime_; /** @@ -1123,6 +1180,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getDetailBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_); } + if (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_); + } if (!getStartTimeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); } @@ -1164,6 +1224,9 @@ public int getSerializedSize() { if (!getDetailBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_); } + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_); + } if (!getStartTimeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); } @@ -1200,6 +1263,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getSelfLink()); result = result && getTargetLink() .equals(other.getTargetLink()); + result = result && getLocation() + .equals(other.getLocation()); result = result && getStartTime() .equals(other.getStartTime()); result = result && getEndTime() @@ -1231,6 +1296,8 @@ public int hashCode() { hash = (53 * hash) + getSelfLink().hashCode(); hash = (37 * hash) + TARGET_LINK_FIELD_NUMBER; hash = (53 * hash) + getTargetLink().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); hash = (37 * hash) + END_TIME_FIELD_NUMBER; @@ -1389,6 +1456,8 @@ public Builder clear() { targetLink_ = ""; + location_ = ""; + startTime_ = ""; endTime_ = ""; @@ -1427,6 +1496,7 @@ public com.google.container.v1.Operation buildPartial() { result.statusMessage_ = statusMessage_; result.selfLink_ = selfLink_; result.targetLink_ = targetLink_; + result.location_ = location_; result.startTime_ = startTime_; result.endTime_ = endTime_; onBuilt(); @@ -1507,6 +1577,10 @@ public Builder mergeFrom(com.google.container.v1.Operation other) { targetLink_ = other.targetLink_; onChanged(); } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } if (!other.getStartTime().isEmpty()) { startTime_ = other.startTime_; onChanged(); @@ -1639,11 +1713,12 @@ public Builder setNameBytes( * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation * is taking place. + * This field is deprecated, use location instead. * * - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -1660,11 +1735,12 @@ public java.lang.String getZone() { * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation * is taking place. + * This field is deprecated, use location instead. * * - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -1682,11 +1758,12 @@ public java.lang.String getZone() { * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation * is taking place. + * This field is deprecated, use location instead. * * - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1701,11 +1778,12 @@ public Builder setZone( * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation * is taking place. + * This field is deprecated, use location instead. * * - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -1716,11 +1794,12 @@ public Builder clearZone() { * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation * is taking place. + * This field is deprecated, use location instead. * * - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -2218,6 +2297,110 @@ public Builder setTargetLinkBytes( return this; } + private java.lang.Object location_ = ""; + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public Builder setLocation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + private java.lang.Object startTime_ = ""; /** *
diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationName.java
new file mode 100644
index 000000000000..7cc381df1930
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationName.java
@@ -0,0 +1,212 @@
+/*
+ * Copyright 2018 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.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.
+ */
+
+package com.google.container.v1;
+
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import java.util.Map;
+import java.util.ArrayList;
+import java.util.List;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class OperationName implements ResourceName {
+
+  private static final PathTemplate PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/operations/{operation}");
+
+  private volatile Map fieldValuesMap;
+
+  private final String project;
+  private final String location;
+  private final String operation;
+
+  public String getProject() {
+    return project;
+  }
+
+  public String getLocation() {
+    return location;
+  }
+
+  public String getOperation() {
+    return operation;
+  }
+
+  public static Builder newBuilder() {
+    return new Builder();
+  }
+
+  public Builder toBuilder() {
+    return new Builder(this);
+  }
+
+  private OperationName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    operation = Preconditions.checkNotNull(builder.getOperation());
+  }
+
+  public static OperationName of(String project, String location, String operation) {
+    return newBuilder()
+      .setProject(project)
+      .setLocation(location)
+      .setOperation(operation)
+      .build();
+  }
+
+  public static String format(String project, String location, String operation) {
+    return newBuilder()
+      .setProject(project)
+      .setLocation(location)
+      .setOperation(operation)
+      .build()
+      .toString();
+  }
+
+  public static OperationName parse(String formattedString) {
+    if (formattedString.isEmpty()) {
+      return null;
+    }
+    Map matchMap =
+        PATH_TEMPLATE.validatedMatch(formattedString, "OperationName.parse: formattedString not in valid format");
+    return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("operation"));
+  }
+
+  public static List parseList(List formattedStrings) {
+    List list = new ArrayList<>(formattedStrings.size());
+    for (String formattedString : formattedStrings) {
+      list.add(parse(formattedString));
+    }
+    return list;
+  }
+
+  public static List toStringList(List values) {
+    List list = new ArrayList(values.size());
+    for (OperationName value : values) {
+      if (value == null) {
+        list.add("");
+      } else {
+        list.add(value.toString());
+      }
+    }
+    return list;
+  }
+
+  public static boolean isParsableFrom(String formattedString) {
+    return PATH_TEMPLATE.matches(formattedString);
+  }
+
+  public Map getFieldValuesMap() {
+    if (fieldValuesMap == null) {
+      synchronized (this) {
+        if (fieldValuesMap == null) {
+          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+          fieldMapBuilder.put("project", project);
+          fieldMapBuilder.put("location", location);
+          fieldMapBuilder.put("operation", operation);
+          fieldValuesMap = fieldMapBuilder.build();
+        }
+      }
+    }
+    return fieldValuesMap;
+  }
+
+  public String getFieldValue(String fieldName) {
+    return getFieldValuesMap().get(fieldName);
+  }
+
+  @Override
+  public String toString() {
+    return PATH_TEMPLATE.instantiate("project", project, "location", location, "operation", operation);
+  }
+
+  /** Builder for OperationName. */
+  public static class Builder {
+
+    private String project;
+    private String location;
+    private String operation;
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public String getOperation() {
+      return operation;
+    }
+
+    public Builder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public Builder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    public Builder setOperation(String operation) {
+      this.operation = operation;
+      return this;
+    }
+
+    private Builder() {
+    }
+
+    private Builder(OperationName operationName) {
+      project = operationName.project;
+      location = operationName.location;
+      operation = operationName.operation;
+    }
+
+    public OperationName build() {
+      return new OperationName(this);
+    }
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o instanceof OperationName) {
+      OperationName that = (OperationName) o;
+      return (this.project.equals(that.project))
+          && (this.location.equals(that.location))
+          && (this.operation.equals(that.operation));
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= project.hashCode();
+    h *= 1000003;
+    h ^= location.hashCode();
+    h *= 1000003;
+    h ^= operation.hashCode();
+    return h;
+  }
+}
+
diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java
index 9248d133b8eb..1ccaf5aa59ba 100644
--- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java
@@ -30,21 +30,23 @@ public interface OperationOrBuilder extends
    * The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the operation
    * is taking place.
+   * This field is deprecated, use location instead.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
    * The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the operation
    * is taking place.
+   * This field is deprecated, use location instead.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** @@ -153,6 +155,30 @@ public interface OperationOrBuilder extends com.google.protobuf.ByteString getTargetLinkBytes(); + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + java.lang.String getLocation(); + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + com.google.protobuf.ByteString + getLocationBytes(); + /** *
    * [Output only] The time the operation started, in
diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ProjectName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ProjectName.java
new file mode 100644
index 000000000000..be233e577114
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ProjectName.java
@@ -0,0 +1,166 @@
+/*
+ * Copyright 2018 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.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.
+ */
+
+package com.google.container.v1;
+
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import java.util.Map;
+import java.util.ArrayList;
+import java.util.List;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class ProjectName implements ResourceName {
+
+  private static final PathTemplate PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding("projects/{project}");
+
+  private volatile Map fieldValuesMap;
+
+  private final String project;
+
+  public String getProject() {
+    return project;
+  }
+
+  public static Builder newBuilder() {
+    return new Builder();
+  }
+
+  public Builder toBuilder() {
+    return new Builder(this);
+  }
+
+  private ProjectName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+  }
+
+  public static ProjectName of(String project) {
+    return newBuilder()
+      .setProject(project)
+      .build();
+  }
+
+  public static String format(String project) {
+    return newBuilder()
+      .setProject(project)
+      .build()
+      .toString();
+  }
+
+  public static ProjectName parse(String formattedString) {
+    if (formattedString.isEmpty()) {
+      return null;
+    }
+    Map matchMap =
+        PATH_TEMPLATE.validatedMatch(formattedString, "ProjectName.parse: formattedString not in valid format");
+    return of(matchMap.get("project"));
+  }
+
+  public static List parseList(List formattedStrings) {
+    List list = new ArrayList<>(formattedStrings.size());
+    for (String formattedString : formattedStrings) {
+      list.add(parse(formattedString));
+    }
+    return list;
+  }
+
+  public static List toStringList(List values) {
+    List list = new ArrayList(values.size());
+    for (ProjectName value : values) {
+      if (value == null) {
+        list.add("");
+      } else {
+        list.add(value.toString());
+      }
+    }
+    return list;
+  }
+
+  public static boolean isParsableFrom(String formattedString) {
+    return PATH_TEMPLATE.matches(formattedString);
+  }
+
+  public Map getFieldValuesMap() {
+    if (fieldValuesMap == null) {
+      synchronized (this) {
+        if (fieldValuesMap == null) {
+          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+          fieldMapBuilder.put("project", project);
+          fieldValuesMap = fieldMapBuilder.build();
+        }
+      }
+    }
+    return fieldValuesMap;
+  }
+
+  public String getFieldValue(String fieldName) {
+    return getFieldValuesMap().get(fieldName);
+  }
+
+  @Override
+  public String toString() {
+    return PATH_TEMPLATE.instantiate("project", project);
+  }
+
+  /** Builder for ProjectName. */
+  public static class Builder {
+
+    private String project;
+
+    public String getProject() {
+      return project;
+    }
+
+    public Builder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    private Builder() {
+    }
+
+    private Builder(ProjectName projectName) {
+      project = projectName.project;
+    }
+
+    public ProjectName build() {
+      return new ProjectName(this);
+    }
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o instanceof ProjectName) {
+      ProjectName that = (ProjectName) o;
+      return (this.project.equals(that.project));
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= project.hashCode();
+    return h;
+  }
+}
+
diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ProjectPathName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ProjectPathName.java
new file mode 100644
index 000000000000..5223935506c5
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ProjectPathName.java
@@ -0,0 +1,166 @@
+/*
+ * Copyright 2018 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.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.
+ */
+
+package com.google.container.v1;
+
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import java.util.Map;
+import java.util.ArrayList;
+import java.util.List;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class ProjectPathName implements ResourceName {
+
+  private static final PathTemplate PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding("projects/{project_path=**}");
+
+  private volatile Map fieldValuesMap;
+
+  private final String projectPath;
+
+  public String getProjectPath() {
+    return projectPath;
+  }
+
+  public static Builder newBuilder() {
+    return new Builder();
+  }
+
+  public Builder toBuilder() {
+    return new Builder(this);
+  }
+
+  private ProjectPathName(Builder builder) {
+    projectPath = Preconditions.checkNotNull(builder.getProjectPath());
+  }
+
+  public static ProjectPathName of(String projectPath) {
+    return newBuilder()
+      .setProjectPath(projectPath)
+      .build();
+  }
+
+  public static String format(String projectPath) {
+    return newBuilder()
+      .setProjectPath(projectPath)
+      .build()
+      .toString();
+  }
+
+  public static ProjectPathName parse(String formattedString) {
+    if (formattedString.isEmpty()) {
+      return null;
+    }
+    Map matchMap =
+        PATH_TEMPLATE.validatedMatch(formattedString, "ProjectPathName.parse: formattedString not in valid format");
+    return of(matchMap.get("project_path"));
+  }
+
+  public static List parseList(List formattedStrings) {
+    List list = new ArrayList<>(formattedStrings.size());
+    for (String formattedString : formattedStrings) {
+      list.add(parse(formattedString));
+    }
+    return list;
+  }
+
+  public static List toStringList(List values) {
+    List list = new ArrayList(values.size());
+    for (ProjectPathName value : values) {
+      if (value == null) {
+        list.add("");
+      } else {
+        list.add(value.toString());
+      }
+    }
+    return list;
+  }
+
+  public static boolean isParsableFrom(String formattedString) {
+    return PATH_TEMPLATE.matches(formattedString);
+  }
+
+  public Map getFieldValuesMap() {
+    if (fieldValuesMap == null) {
+      synchronized (this) {
+        if (fieldValuesMap == null) {
+          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+          fieldMapBuilder.put("projectPath", projectPath);
+          fieldValuesMap = fieldMapBuilder.build();
+        }
+      }
+    }
+    return fieldValuesMap;
+  }
+
+  public String getFieldValue(String fieldName) {
+    return getFieldValuesMap().get(fieldName);
+  }
+
+  @Override
+  public String toString() {
+    return PATH_TEMPLATE.instantiate("project_path", projectPath);
+  }
+
+  /** Builder for ProjectPathName. */
+  public static class Builder {
+
+    private String projectPath;
+
+    public String getProjectPath() {
+      return projectPath;
+    }
+
+    public Builder setProjectPath(String projectPath) {
+      this.projectPath = projectPath;
+      return this;
+    }
+
+    private Builder() {
+    }
+
+    private Builder(ProjectPathName projectPathName) {
+      projectPath = projectPathName.projectPath;
+    }
+
+    public ProjectPathName build() {
+      return new ProjectPathName(this);
+    }
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o instanceof ProjectPathName) {
+      ProjectPathName that = (ProjectPathName) o;
+      return (this.projectPath.equals(that.projectPath));
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= projectPath.hashCode();
+    return h;
+  }
+}
+
diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java
index 7777458999a0..43be86b84476 100644
--- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java
+++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java
@@ -26,6 +26,7 @@ private RollbackNodePoolUpgradeRequest() {
     zone_ = "";
     clusterId_ = "";
     nodePoolId_ = "";
+    name_ = "";
   }
 
   @java.lang.Override
@@ -76,6 +77,12 @@ private RollbackNodePoolUpgradeRequest(
             nodePoolId_ = s;
             break;
           }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            name_ = s;
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -112,13 +119,14 @@ private RollbackNodePoolUpgradeRequest(
   private volatile java.lang.Object projectId_;
   /**
    * 
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -132,13 +140,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -156,14 +165,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -177,14 +187,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -202,12 +213,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to rollback.
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -221,12 +233,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to rollback.
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -244,12 +257,13 @@ public java.lang.String getClusterId() { private volatile java.lang.Object nodePoolId_; /** *
-   * The name of the node pool to rollback.
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -263,12 +277,13 @@ public java.lang.String getNodePoolId() { } /** *
-   * The name of the node pool to rollback.
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { @@ -282,6 +297,52 @@ public java.lang.String getNodePoolId() { } } + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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() { @@ -308,6 +369,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNodePoolIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } unknownFields.writeTo(output); } @@ -329,6 +393,9 @@ public int getSerializedSize() { if (!getNodePoolIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -353,6 +420,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClusterId()); result = result && getNodePoolId() .equals(other.getNodePoolId()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -372,6 +441,8 @@ public int hashCode() { hash = (53 * hash) + getClusterId().hashCode(); hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -519,6 +590,8 @@ public Builder clear() { nodePoolId_ = ""; + name_ = ""; + return this; } @@ -549,6 +622,7 @@ public com.google.container.v1.RollbackNodePoolUpgradeRequest buildPartial() { result.zone_ = zone_; result.clusterId_ = clusterId_; result.nodePoolId_ = nodePoolId_; + result.name_ = name_; onBuilt(); return result; } @@ -613,6 +687,10 @@ public Builder mergeFrom(com.google.container.v1.RollbackNodePoolUpgradeRequest nodePoolId_ = other.nodePoolId_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -645,13 +723,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -665,13 +744,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -686,13 +766,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -704,13 +785,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -718,13 +800,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -739,14 +822,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -760,14 +844,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -782,14 +867,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -801,14 +887,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -816,14 +903,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -838,12 +926,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to rollback.
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -857,12 +946,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to rollback.
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -877,12 +967,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to rollback.
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -894,12 +985,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to rollback.
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -907,12 +999,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to rollback.
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -927,12 +1020,13 @@ public Builder setClusterIdBytes( private java.lang.Object nodePoolId_ = ""; /** *
-     * The name of the node pool to rollback.
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -946,12 +1040,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to rollback.
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof String) { @@ -966,12 +1061,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to rollback.
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolId( + @java.lang.Deprecated public Builder setNodePoolId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -983,12 +1079,13 @@ public Builder setNodePoolId( } /** *
-     * The name of the node pool to rollback.
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder clearNodePoolId() { + @java.lang.Deprecated public Builder clearNodePoolId() { nodePoolId_ = getDefaultInstance().getNodePoolId(); onChanged(); @@ -996,12 +1093,13 @@ public Builder clearNodePoolId() { } /** *
-     * The name of the node pool to rollback.
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolIdBytes( + @java.lang.Deprecated public Builder setNodePoolIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1012,6 +1110,105 @@ public Builder setNodePoolIdBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java index 02343da75af2..ec2e63cb0dbd 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -9,79 +9,109 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to rollback.
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to rollback.
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** *
-   * The name of the node pool to rollback.
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - java.lang.String getNodePoolId(); + @java.lang.Deprecated java.lang.String getNodePoolId(); /** *
-   * The name of the node pool to rollback.
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java index 5ec8e647e790..e1677a1d7f86 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java @@ -5,7 +5,7 @@ /** *
- * Container Engine service configuration.
+ * Kubernetes Engine service configuration.
  * 
* * Protobuf type {@code google.container.v1.ServerConfig} @@ -569,7 +569,7 @@ protected Builder newBuilderForType( } /** *
-   * Container Engine service configuration.
+   * Kubernetes Engine service configuration.
    * 
* * Protobuf type {@code google.container.v1.ServerConfig} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java index 0de7532c2965..70be765d8e9f 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java @@ -23,6 +23,7 @@ private SetAddonsConfigRequest() { projectId_ = ""; zone_ = ""; clusterId_ = ""; + name_ = ""; } @java.lang.Override @@ -80,6 +81,12 @@ private SetAddonsConfigRequest( break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -116,13 +123,14 @@ private SetAddonsConfigRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -136,13 +144,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -160,14 +169,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -181,14 +191,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -206,12 +217,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -225,12 +237,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -280,6 +293,50 @@ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() return getAddonsConfig(); } + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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() { @@ -306,6 +363,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (addonsConfig_ != null) { output.writeMessage(4, getAddonsConfig()); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } unknownFields.writeTo(output); } @@ -328,6 +388,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAddonsConfig()); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -355,6 +418,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getAddonsConfig() .equals(other.getAddonsConfig()); } + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -376,6 +441,8 @@ public int hashCode() { hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAddonsConfig().hashCode(); } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -525,6 +592,8 @@ public Builder clear() { addonsConfig_ = null; addonsConfigBuilder_ = null; } + name_ = ""; + return this; } @@ -559,6 +628,7 @@ public com.google.container.v1.SetAddonsConfigRequest buildPartial() { } else { result.addonsConfig_ = addonsConfigBuilder_.build(); } + result.name_ = name_; onBuilt(); return result; } @@ -622,6 +692,10 @@ public Builder mergeFrom(com.google.container.v1.SetAddonsConfigRequest other) { if (other.hasAddonsConfig()) { mergeAddonsConfig(other.getAddonsConfig()); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -654,13 +728,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -674,13 +749,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -695,13 +771,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -713,13 +790,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -727,13 +805,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -748,14 +827,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -769,14 +849,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -791,14 +872,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -810,14 +892,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -825,14 +908,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -847,12 +931,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -866,12 +951,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -886,12 +972,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -903,12 +990,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -916,12 +1004,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1094,6 +1183,100 @@ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() } return addonsConfigBuilder_; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java index 0f9ee60cd278..fa2effff1d8c 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java @@ -9,62 +9,68 @@ public interface SetAddonsConfigRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** @@ -94,4 +100,24 @@ public interface SetAddonsConfigRequestOrBuilder extends * .google.container.v1.AddonsConfig addons_config = 4; */ com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java index f72557a9ff59..6f3c0e06848a 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java @@ -26,6 +26,7 @@ private SetLabelsRequest() { zone_ = ""; clusterId_ = ""; labelFingerprint_ = ""; + name_ = ""; } @java.lang.Override @@ -89,6 +90,12 @@ private SetLabelsRequest( labelFingerprint_ = s; break; } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -138,13 +145,14 @@ protected com.google.protobuf.MapField internalGetMapField( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -158,13 +166,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -182,14 +191,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -203,14 +213,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -228,12 +239,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -247,12 +259,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -364,7 +377,7 @@ public java.lang.String getResourceLabelsOrThrow( *
    * The fingerprint of the previous set of labels for this resource,
    * used to detect conflicts. The fingerprint is initially generated by
-   * Container Engine and changes after every request to modify or update
+   * Kubernetes Engine and changes after every request to modify or update
    * labels. You must always provide an up-to-date fingerprint hash when
    * updating or changing labels. Make a <code>get()</code> request to the
    * resource to get the latest fingerprint.
@@ -388,7 +401,7 @@ public java.lang.String getLabelFingerprint() {
    * 
    * The fingerprint of the previous set of labels for this resource,
    * used to detect conflicts. The fingerprint is initially generated by
-   * Container Engine and changes after every request to modify or update
+   * Kubernetes Engine and changes after every request to modify or update
    * labels. You must always provide an up-to-date fingerprint hash when
    * updating or changing labels. Make a <code>get()</code> request to the
    * resource to get the latest fingerprint.
@@ -410,6 +423,50 @@ public java.lang.String getLabelFingerprint() {
     }
   }
 
+  public static final int NAME_FIELD_NUMBER = 7;
+  private volatile java.lang.Object name_;
+  /**
+   * 
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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() { @@ -442,6 +499,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getLabelFingerprintBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, labelFingerprint_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } unknownFields.writeTo(output); } @@ -473,6 +533,9 @@ public int getSerializedSize() { if (!getLabelFingerprintBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, labelFingerprint_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -499,6 +562,8 @@ public boolean equals(final java.lang.Object obj) { other.internalGetResourceLabels()); result = result && getLabelFingerprint() .equals(other.getLabelFingerprint()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -522,6 +587,8 @@ public int hashCode() { } hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getLabelFingerprint().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -692,6 +759,8 @@ public Builder clear() { internalGetMutableResourceLabels().clear(); labelFingerprint_ = ""; + name_ = ""; + return this; } @@ -726,6 +795,7 @@ public com.google.container.v1.SetLabelsRequest buildPartial() { result.resourceLabels_ = internalGetResourceLabels(); result.resourceLabels_.makeImmutable(); result.labelFingerprint_ = labelFingerprint_; + result.name_ = name_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -793,6 +863,10 @@ public Builder mergeFrom(com.google.container.v1.SetLabelsRequest other) { labelFingerprint_ = other.labelFingerprint_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -826,13 +900,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -846,13 +921,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -867,13 +943,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -885,13 +962,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -899,13 +977,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -920,14 +999,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -941,14 +1021,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -963,14 +1044,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -982,14 +1064,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -997,14 +1080,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1019,12 +1103,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -1038,12 +1123,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -1058,12 +1144,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1075,12 +1162,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -1088,12 +1176,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1261,7 +1350,7 @@ public Builder putAllResourceLabels( *
      * The fingerprint of the previous set of labels for this resource,
      * used to detect conflicts. The fingerprint is initially generated by
-     * Container Engine and changes after every request to modify or update
+     * Kubernetes Engine and changes after every request to modify or update
      * labels. You must always provide an up-to-date fingerprint hash when
      * updating or changing labels. Make a <code>get()</code> request to the
      * resource to get the latest fingerprint.
@@ -1285,7 +1374,7 @@ public java.lang.String getLabelFingerprint() {
      * 
      * The fingerprint of the previous set of labels for this resource,
      * used to detect conflicts. The fingerprint is initially generated by
-     * Container Engine and changes after every request to modify or update
+     * Kubernetes Engine and changes after every request to modify or update
      * labels. You must always provide an up-to-date fingerprint hash when
      * updating or changing labels. Make a <code>get()</code> request to the
      * resource to get the latest fingerprint.
@@ -1310,7 +1399,7 @@ public java.lang.String getLabelFingerprint() {
      * 
      * The fingerprint of the previous set of labels for this resource,
      * used to detect conflicts. The fingerprint is initially generated by
-     * Container Engine and changes after every request to modify or update
+     * Kubernetes Engine and changes after every request to modify or update
      * labels. You must always provide an up-to-date fingerprint hash when
      * updating or changing labels. Make a <code>get()</code> request to the
      * resource to get the latest fingerprint.
@@ -1332,7 +1421,7 @@ public Builder setLabelFingerprint(
      * 
      * The fingerprint of the previous set of labels for this resource,
      * used to detect conflicts. The fingerprint is initially generated by
-     * Container Engine and changes after every request to modify or update
+     * Kubernetes Engine and changes after every request to modify or update
      * labels. You must always provide an up-to-date fingerprint hash when
      * updating or changing labels. Make a <code>get()</code> request to the
      * resource to get the latest fingerprint.
@@ -1350,7 +1439,7 @@ public Builder clearLabelFingerprint() {
      * 
      * The fingerprint of the previous set of labels for this resource,
      * used to detect conflicts. The fingerprint is initially generated by
-     * Container Engine and changes after every request to modify or update
+     * Kubernetes Engine and changes after every request to modify or update
      * labels. You must always provide an up-to-date fingerprint hash when
      * updating or changing labels. Make a <code>get()</code> request to the
      * resource to get the latest fingerprint.
@@ -1369,6 +1458,100 @@ public Builder setLabelFingerprintBytes(
       onChanged();
       return this;
     }
+
+    private java.lang.Object name_ = "";
+    /**
+     * 
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java index 2cdc1b0b7b81..84dd57de7eff 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java @@ -9,62 +9,68 @@ public interface SetLabelsRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** @@ -125,7 +131,7 @@ java.lang.String getResourceLabelsOrThrow( *
    * The fingerprint of the previous set of labels for this resource,
    * used to detect conflicts. The fingerprint is initially generated by
-   * Container Engine and changes after every request to modify or update
+   * Kubernetes Engine and changes after every request to modify or update
    * labels. You must always provide an up-to-date fingerprint hash when
    * updating or changing labels. Make a <code>get()</code> request to the
    * resource to get the latest fingerprint.
@@ -138,7 +144,7 @@ java.lang.String getResourceLabelsOrThrow(
    * 
    * The fingerprint of the previous set of labels for this resource,
    * used to detect conflicts. The fingerprint is initially generated by
-   * Container Engine and changes after every request to modify or update
+   * Kubernetes Engine and changes after every request to modify or update
    * labels. You must always provide an up-to-date fingerprint hash when
    * updating or changing labels. Make a <code>get()</code> request to the
    * resource to get the latest fingerprint.
@@ -148,4 +154,24 @@ java.lang.String getResourceLabelsOrThrow(
    */
   com.google.protobuf.ByteString
       getLabelFingerprintBytes();
+
+  /**
+   * 
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java index 05cf0e132e48..2dd4e6ea699b 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java @@ -25,6 +25,7 @@ private SetLegacyAbacRequest() { zone_ = ""; clusterId_ = ""; enabled_ = false; + name_ = ""; } @java.lang.Override @@ -74,6 +75,12 @@ private SetLegacyAbacRequest( enabled_ = input.readBool(); break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -110,13 +117,14 @@ private SetLegacyAbacRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -130,13 +138,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -154,14 +163,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -175,14 +185,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -200,12 +211,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -219,12 +231,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -251,6 +264,50 @@ public boolean getEnabled() { return enabled_; } + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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() { @@ -277,6 +334,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (enabled_ != false) { output.writeBool(4, enabled_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } unknownFields.writeTo(output); } @@ -299,6 +359,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, enabled_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -323,6 +386,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClusterId()); result = result && (getEnabled() == other.getEnabled()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -343,6 +408,8 @@ public int hashCode() { hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -489,6 +556,8 @@ public Builder clear() { enabled_ = false; + name_ = ""; + return this; } @@ -519,6 +588,7 @@ public com.google.container.v1.SetLegacyAbacRequest buildPartial() { result.zone_ = zone_; result.clusterId_ = clusterId_; result.enabled_ = enabled_; + result.name_ = name_; onBuilt(); return result; } @@ -582,6 +652,10 @@ public Builder mergeFrom(com.google.container.v1.SetLegacyAbacRequest other) { if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -614,13 +688,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -634,13 +709,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -655,13 +731,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -673,13 +750,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -687,13 +765,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -708,14 +787,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -729,14 +809,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -751,14 +832,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -770,14 +852,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -785,14 +868,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -807,12 +891,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -826,12 +911,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -846,12 +932,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -863,12 +950,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -876,12 +964,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -930,6 +1019,100 @@ public Builder clearEnabled() { onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java index 1e1c883ee247..1652c6560080 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java @@ -9,62 +9,68 @@ public interface SetLegacyAbacRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** @@ -75,4 +81,24 @@ public interface SetLegacyAbacRequestOrBuilder extends * bool enabled = 4; */ boolean getEnabled(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java index a45e1d33bfc3..c1fa2f415274 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java @@ -24,6 +24,7 @@ private SetLocationsRequest() { zone_ = ""; clusterId_ = ""; locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + name_ = ""; } @java.lang.Override @@ -77,6 +78,12 @@ private SetLocationsRequest( locations_.add(s); break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -117,13 +124,14 @@ private SetLocationsRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -137,13 +145,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -161,14 +170,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -182,14 +192,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -207,12 +218,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -226,12 +238,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -310,6 +323,50 @@ public java.lang.String getLocations(int index) { return locations_.getByteString(index); } + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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() { @@ -336,6 +393,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < locations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locations_.getRaw(i)); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } unknownFields.writeTo(output); } @@ -362,6 +422,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLocationsList().size(); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -386,6 +449,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClusterId()); result = result && getLocationsList() .equals(other.getLocationsList()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -407,6 +472,8 @@ public int hashCode() { hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getLocationsList().hashCode(); } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -552,6 +619,8 @@ public Builder clear() { locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); + name_ = ""; + return this; } @@ -588,6 +657,7 @@ public com.google.container.v1.SetLocationsRequest buildPartial() { bitField0_ = (bitField0_ & ~0x00000008); } result.locations_ = locations_; + result.name_ = name_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -659,6 +729,10 @@ public Builder mergeFrom(com.google.container.v1.SetLocationsRequest other) { } onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -692,13 +766,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -712,13 +787,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -733,13 +809,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -751,13 +828,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -765,13 +843,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -786,14 +865,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -807,14 +887,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -829,14 +910,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -848,14 +930,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -863,14 +946,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -885,12 +969,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -904,12 +989,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -924,12 +1010,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -941,12 +1028,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -954,12 +1042,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1145,6 +1234,100 @@ public Builder addLocationsBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java index 401391a640c8..f31c6a6de1f0 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java @@ -9,62 +9,68 @@ public interface SetLocationsRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** @@ -121,4 +127,24 @@ public interface SetLocationsRequestOrBuilder extends */ com.google.protobuf.ByteString getLocationsBytes(int index); + + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java index 8569f1f1fd34..1aac19d267a6 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java @@ -24,6 +24,7 @@ private SetLoggingServiceRequest() { zone_ = ""; clusterId_ = ""; loggingService_ = ""; + name_ = ""; } @java.lang.Override @@ -74,6 +75,12 @@ private SetLoggingServiceRequest( loggingService_ = s; break; } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -110,13 +117,14 @@ private SetLoggingServiceRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -130,13 +138,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -154,9 +163,10 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* * string zone = 2; @@ -175,9 +185,10 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* * string zone = 2; @@ -200,12 +211,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -219,12 +231,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -286,6 +299,50 @@ public java.lang.String getLoggingService() { } } + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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() { @@ -312,6 +369,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getLoggingServiceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, loggingService_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } unknownFields.writeTo(output); } @@ -333,6 +393,9 @@ public int getSerializedSize() { if (!getLoggingServiceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, loggingService_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -357,6 +420,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClusterId()); result = result && getLoggingService() .equals(other.getLoggingService()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -376,6 +441,8 @@ public int hashCode() { hash = (53 * hash) + getClusterId().hashCode(); hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getLoggingService().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -521,6 +588,8 @@ public Builder clear() { loggingService_ = ""; + name_ = ""; + return this; } @@ -551,6 +620,7 @@ public com.google.container.v1.SetLoggingServiceRequest buildPartial() { result.zone_ = zone_; result.clusterId_ = clusterId_; result.loggingService_ = loggingService_; + result.name_ = name_; onBuilt(); return result; } @@ -615,6 +685,10 @@ public Builder mergeFrom(com.google.container.v1.SetLoggingServiceRequest other) loggingService_ = other.loggingService_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -647,13 +721,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -667,13 +742,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -688,13 +764,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -706,13 +783,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -720,13 +798,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -741,9 +820,10 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* * string zone = 2; @@ -762,9 +842,10 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* * string zone = 2; @@ -784,9 +865,10 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* * string zone = 2; @@ -803,9 +885,10 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* * string zone = 2; @@ -818,9 +901,10 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* * string zone = 2; @@ -840,12 +924,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -859,12 +944,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -879,12 +965,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -896,12 +983,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -909,12 +997,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1029,6 +1118,100 @@ public Builder setLoggingServiceBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java index 7646fab1941b..e34d26718fb4 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java @@ -9,29 +9,32 @@ public interface SetLoggingServiceRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* * string zone = 2; @@ -39,9 +42,10 @@ public interface SetLoggingServiceRequestOrBuilder extends java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* * string zone = 2; @@ -51,20 +55,22 @@ public interface SetLoggingServiceRequestOrBuilder extends /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** @@ -90,4 +96,24 @@ public interface SetLoggingServiceRequestOrBuilder extends */ com.google.protobuf.ByteString getLoggingServiceBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java index 0b11e22931ec..821396d560c0 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java @@ -23,6 +23,7 @@ private SetMaintenancePolicyRequest() { projectId_ = ""; zone_ = ""; clusterId_ = ""; + name_ = ""; } @java.lang.Override @@ -80,6 +81,12 @@ private SetMaintenancePolicyRequest( break; } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -280,6 +287,52 @@ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOr return getMaintenancePolicy(); } + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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() { @@ -306,6 +359,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (maintenancePolicy_ != null) { output.writeMessage(4, getMaintenancePolicy()); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } unknownFields.writeTo(output); } @@ -328,6 +384,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMaintenancePolicy()); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -355,6 +414,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getMaintenancePolicy() .equals(other.getMaintenancePolicy()); } + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -376,6 +437,8 @@ public int hashCode() { hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; hash = (53 * hash) + getMaintenancePolicy().hashCode(); } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -525,6 +588,8 @@ public Builder clear() { maintenancePolicy_ = null; maintenancePolicyBuilder_ = null; } + name_ = ""; + return this; } @@ -559,6 +624,7 @@ public com.google.container.v1.SetMaintenancePolicyRequest buildPartial() { } else { result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); } + result.name_ = name_; onBuilt(); return result; } @@ -622,6 +688,10 @@ public Builder mergeFrom(com.google.container.v1.SetMaintenancePolicyRequest oth if (other.hasMaintenancePolicy()) { mergeMaintenancePolicy(other.getMaintenancePolicy()); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1094,6 +1164,105 @@ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOr } return maintenancePolicyBuilder_; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java index 427782924cc4..5169b5d65350 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java @@ -94,4 +94,26 @@ public interface SetMaintenancePolicyRequestOrBuilder extends * .google.container.v1.MaintenancePolicy maintenance_policy = 4; */ com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java index 5f84567f4c05..3506c82d5d9b 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java @@ -24,6 +24,7 @@ private SetMasterAuthRequest() { zone_ = ""; clusterId_ = ""; action_ = 0; + name_ = ""; } @java.lang.Override @@ -87,6 +88,12 @@ private SetMasterAuthRequest( break; } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -281,13 +288,14 @@ private Action(int value) { private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -301,13 +309,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -325,14 +334,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -346,14 +356,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -371,12 +382,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -390,12 +402,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -467,6 +480,50 @@ public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { return getUpdate(); } + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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() { @@ -496,6 +553,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (update_ != null) { output.writeMessage(5, getUpdate()); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } unknownFields.writeTo(output); } @@ -522,6 +582,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getUpdate()); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -550,6 +613,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getUpdate() .equals(other.getUpdate()); } + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -573,6 +638,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -724,6 +791,8 @@ public Builder clear() { update_ = null; updateBuilder_ = null; } + name_ = ""; + return this; } @@ -759,6 +828,7 @@ public com.google.container.v1.SetMasterAuthRequest buildPartial() { } else { result.update_ = updateBuilder_.build(); } + result.name_ = name_; onBuilt(); return result; } @@ -825,6 +895,10 @@ public Builder mergeFrom(com.google.container.v1.SetMasterAuthRequest other) { if (other.hasUpdate()) { mergeUpdate(other.getUpdate()); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -857,13 +931,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -877,13 +952,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -898,13 +974,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -916,13 +993,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -930,13 +1008,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -951,14 +1030,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -972,14 +1052,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -994,14 +1075,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1013,14 +1095,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -1028,14 +1111,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1050,12 +1134,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -1069,12 +1154,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -1089,12 +1175,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1106,12 +1193,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -1119,12 +1207,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1353,6 +1442,100 @@ public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { } return updateBuilder_; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java index 70dc0799621a..ecdf875f1e49 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java @@ -9,62 +9,68 @@ public interface SetMasterAuthRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** @@ -108,4 +114,24 @@ public interface SetMasterAuthRequestOrBuilder extends * .google.container.v1.MasterAuth update = 5; */ com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java index cfac98d537ff..1caaa41d14d2 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java @@ -24,6 +24,7 @@ private SetMonitoringServiceRequest() { zone_ = ""; clusterId_ = ""; monitoringService_ = ""; + name_ = ""; } @java.lang.Override @@ -74,6 +75,12 @@ private SetMonitoringServiceRequest( monitoringService_ = s; break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -110,13 +117,14 @@ private SetMonitoringServiceRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -130,13 +138,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -154,14 +163,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -175,14 +185,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -200,12 +211,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -219,12 +231,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -286,6 +299,50 @@ public java.lang.String getMonitoringService() { } } + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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() { @@ -312,6 +369,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getMonitoringServiceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, monitoringService_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } unknownFields.writeTo(output); } @@ -333,6 +393,9 @@ public int getSerializedSize() { if (!getMonitoringServiceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, monitoringService_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -357,6 +420,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClusterId()); result = result && getMonitoringService() .equals(other.getMonitoringService()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -376,6 +441,8 @@ public int hashCode() { hash = (53 * hash) + getClusterId().hashCode(); hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getMonitoringService().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -521,6 +588,8 @@ public Builder clear() { monitoringService_ = ""; + name_ = ""; + return this; } @@ -551,6 +620,7 @@ public com.google.container.v1.SetMonitoringServiceRequest buildPartial() { result.zone_ = zone_; result.clusterId_ = clusterId_; result.monitoringService_ = monitoringService_; + result.name_ = name_; onBuilt(); return result; } @@ -615,6 +685,10 @@ public Builder mergeFrom(com.google.container.v1.SetMonitoringServiceRequest oth monitoringService_ = other.monitoringService_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -647,13 +721,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -667,13 +742,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -688,13 +764,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -706,13 +783,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -720,13 +798,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -741,14 +820,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -762,14 +842,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -784,14 +865,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -803,14 +885,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -818,14 +901,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -840,12 +924,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -859,12 +944,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -879,12 +965,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -896,12 +983,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -909,12 +997,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1029,6 +1118,100 @@ public Builder setMonitoringServiceBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java index d5a242ad2608..d052237851cd 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java @@ -9,62 +9,68 @@ public interface SetMonitoringServiceRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** @@ -90,4 +96,24 @@ public interface SetMonitoringServiceRequestOrBuilder extends */ com.google.protobuf.ByteString getMonitoringServiceBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java index 708036010cc6..d7dc408300fa 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java @@ -23,6 +23,7 @@ private SetNetworkPolicyRequest() { projectId_ = ""; zone_ = ""; clusterId_ = ""; + name_ = ""; } @java.lang.Override @@ -80,6 +81,12 @@ private SetNetworkPolicyRequest( break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -116,13 +123,14 @@ private SetNetworkPolicyRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -136,13 +144,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -160,14 +169,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -181,14 +191,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -206,12 +217,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -225,12 +237,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -277,6 +290,50 @@ public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder( return getNetworkPolicy(); } + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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() { @@ -303,6 +360,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (networkPolicy_ != null) { output.writeMessage(4, getNetworkPolicy()); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } unknownFields.writeTo(output); } @@ -325,6 +385,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getNetworkPolicy()); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -352,6 +415,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getNetworkPolicy() .equals(other.getNetworkPolicy()); } + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -373,6 +438,8 @@ public int hashCode() { hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; hash = (53 * hash) + getNetworkPolicy().hashCode(); } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -522,6 +589,8 @@ public Builder clear() { networkPolicy_ = null; networkPolicyBuilder_ = null; } + name_ = ""; + return this; } @@ -556,6 +625,7 @@ public com.google.container.v1.SetNetworkPolicyRequest buildPartial() { } else { result.networkPolicy_ = networkPolicyBuilder_.build(); } + result.name_ = name_; onBuilt(); return result; } @@ -619,6 +689,10 @@ public Builder mergeFrom(com.google.container.v1.SetNetworkPolicyRequest other) if (other.hasNetworkPolicy()) { mergeNetworkPolicy(other.getNetworkPolicy()); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -651,13 +725,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -671,13 +746,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -692,13 +768,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -710,13 +787,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -724,13 +802,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -745,14 +824,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -766,14 +846,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -788,14 +869,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -807,14 +889,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -822,14 +905,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -844,12 +928,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -863,12 +948,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -883,12 +969,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -900,12 +987,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -913,12 +1001,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1082,6 +1171,100 @@ public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder( } return networkPolicyBuilder_; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java index b727dd3192ee..0627f23b838b 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java @@ -9,62 +9,68 @@ public interface SetNetworkPolicyRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** @@ -91,4 +97,24 @@ public interface SetNetworkPolicyRequestOrBuilder extends * .google.container.v1.NetworkPolicy network_policy = 4; */ com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java index 7c7be3781326..7e283ff95c2c 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java @@ -24,6 +24,7 @@ private SetNodePoolAutoscalingRequest() { zone_ = ""; clusterId_ = ""; nodePoolId_ = ""; + name_ = ""; } @java.lang.Override @@ -87,6 +88,12 @@ private SetNodePoolAutoscalingRequest( break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -123,13 +130,14 @@ private SetNodePoolAutoscalingRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -143,13 +151,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -167,14 +176,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -188,14 +198,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -213,12 +224,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -232,12 +244,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -255,12 +268,13 @@ public java.lang.String getClusterId() { private volatile java.lang.Object nodePoolId_; /** *
-   * The name of the node pool to upgrade.
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -274,12 +288,13 @@ public java.lang.String getNodePoolId() { } /** *
-   * The name of the node pool to upgrade.
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { @@ -326,6 +341,52 @@ public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuil return getAutoscaling(); } + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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() { @@ -355,6 +416,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (autoscaling_ != null) { output.writeMessage(5, getAutoscaling()); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } unknownFields.writeTo(output); } @@ -380,6 +444,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAutoscaling()); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -409,6 +476,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getAutoscaling() .equals(other.getAutoscaling()); } + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -432,6 +501,8 @@ public int hashCode() { hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; hash = (53 * hash) + getAutoscaling().hashCode(); } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -583,6 +654,8 @@ public Builder clear() { autoscaling_ = null; autoscalingBuilder_ = null; } + name_ = ""; + return this; } @@ -618,6 +691,7 @@ public com.google.container.v1.SetNodePoolAutoscalingRequest buildPartial() { } else { result.autoscaling_ = autoscalingBuilder_.build(); } + result.name_ = name_; onBuilt(); return result; } @@ -685,6 +759,10 @@ public Builder mergeFrom(com.google.container.v1.SetNodePoolAutoscalingRequest o if (other.hasAutoscaling()) { mergeAutoscaling(other.getAutoscaling()); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -717,13 +795,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -737,13 +816,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -758,13 +838,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -776,13 +857,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -790,13 +872,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -811,14 +894,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -832,14 +916,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -854,14 +939,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -873,14 +959,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -888,14 +975,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -910,12 +998,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -929,12 +1018,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -949,12 +1039,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -966,12 +1057,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -979,12 +1071,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -999,12 +1092,13 @@ public Builder setClusterIdBytes( private java.lang.Object nodePoolId_ = ""; /** *
-     * The name of the node pool to upgrade.
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -1018,12 +1112,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to upgrade.
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof String) { @@ -1038,12 +1133,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to upgrade.
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolId( + @java.lang.Deprecated public Builder setNodePoolId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1055,12 +1151,13 @@ public Builder setNodePoolId( } /** *
-     * The name of the node pool to upgrade.
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder clearNodePoolId() { + @java.lang.Deprecated public Builder clearNodePoolId() { nodePoolId_ = getDefaultInstance().getNodePoolId(); onChanged(); @@ -1068,12 +1165,13 @@ public Builder clearNodePoolId() { } /** *
-     * The name of the node pool to upgrade.
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolIdBytes( + @java.lang.Deprecated public Builder setNodePoolIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1237,6 +1335,105 @@ public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuil } return autoscalingBuilder_; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java index 7a80e0b6b2a5..880dca0fc271 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -9,80 +9,88 @@ public interface SetNodePoolAutoscalingRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** *
-   * The name of the node pool to upgrade.
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - java.lang.String getNodePoolId(); + @java.lang.Deprecated java.lang.String getNodePoolId(); /** *
-   * The name of the node pool to upgrade.
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); /** @@ -109,4 +117,26 @@ public interface SetNodePoolAutoscalingRequestOrBuilder extends * .google.container.v1.NodePoolAutoscaling autoscaling = 5; */ com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java index 23186f9e4678..34f1007a55cd 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java @@ -25,6 +25,7 @@ private SetNodePoolManagementRequest() { zone_ = ""; clusterId_ = ""; nodePoolId_ = ""; + name_ = ""; } @java.lang.Override @@ -88,6 +89,12 @@ private SetNodePoolManagementRequest( break; } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -124,13 +131,14 @@ private SetNodePoolManagementRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -144,13 +152,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -168,14 +177,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -189,14 +199,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -214,12 +225,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -233,12 +245,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -256,12 +269,13 @@ public java.lang.String getClusterId() { private volatile java.lang.Object nodePoolId_; /** *
-   * The name of the node pool to update.
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -275,12 +289,13 @@ public java.lang.String getNodePoolId() { } /** *
-   * The name of the node pool to update.
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { @@ -327,6 +342,52 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() return getManagement(); } + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + 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() { @@ -356,6 +417,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (management_ != null) { output.writeMessage(5, getManagement()); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } unknownFields.writeTo(output); } @@ -381,6 +445,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getManagement()); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -410,6 +477,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getManagement() .equals(other.getManagement()); } + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -433,6 +502,8 @@ public int hashCode() { hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; hash = (53 * hash) + getManagement().hashCode(); } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -585,6 +656,8 @@ public Builder clear() { management_ = null; managementBuilder_ = null; } + name_ = ""; + return this; } @@ -620,6 +693,7 @@ public com.google.container.v1.SetNodePoolManagementRequest buildPartial() { } else { result.management_ = managementBuilder_.build(); } + result.name_ = name_; onBuilt(); return result; } @@ -687,6 +761,10 @@ public Builder mergeFrom(com.google.container.v1.SetNodePoolManagementRequest ot if (other.hasManagement()) { mergeManagement(other.getManagement()); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -719,13 +797,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -739,13 +818,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -760,13 +840,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -778,13 +859,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -792,13 +874,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -813,14 +896,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -834,14 +918,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -856,14 +941,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -875,14 +961,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -890,14 +977,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -912,12 +1000,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -931,12 +1020,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -951,12 +1041,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -968,12 +1059,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -981,12 +1073,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1001,12 +1094,13 @@ public Builder setClusterIdBytes( private java.lang.Object nodePoolId_ = ""; /** *
-     * The name of the node pool to update.
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -1020,12 +1114,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to update.
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof String) { @@ -1040,12 +1135,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to update.
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolId( + @java.lang.Deprecated public Builder setNodePoolId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1057,12 +1153,13 @@ public Builder setNodePoolId( } /** *
-     * The name of the node pool to update.
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder clearNodePoolId() { + @java.lang.Deprecated public Builder clearNodePoolId() { nodePoolId_ = getDefaultInstance().getNodePoolId(); onChanged(); @@ -1070,12 +1167,13 @@ public Builder clearNodePoolId() { } /** *
-     * The name of the node pool to update.
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolIdBytes( + @java.lang.Deprecated public Builder setNodePoolIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1239,6 +1337,105 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() } return managementBuilder_; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java index 64455f656e66..c3cfde3ff3c9 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java @@ -9,80 +9,88 @@ public interface SetNodePoolManagementRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** *
-   * The name of the node pool to update.
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - java.lang.String getNodePoolId(); + @java.lang.Deprecated java.lang.String getNodePoolId(); /** *
-   * The name of the node pool to update.
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); /** @@ -109,4 +117,26 @@ public interface SetNodePoolManagementRequestOrBuilder extends * .google.container.v1.NodeManagement management = 5; */ com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java index 3bcdc6144827..d4686ced8d66 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java @@ -26,6 +26,7 @@ private SetNodePoolSizeRequest() { clusterId_ = ""; nodePoolId_ = ""; nodeCount_ = 0; + name_ = ""; } @java.lang.Override @@ -81,6 +82,12 @@ private SetNodePoolSizeRequest( nodeCount_ = input.readInt32(); break; } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -117,13 +124,14 @@ private SetNodePoolSizeRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -137,13 +145,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -161,14 +170,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -182,14 +192,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -207,12 +218,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -226,12 +238,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -249,12 +262,13 @@ public java.lang.String getClusterId() { private volatile java.lang.Object nodePoolId_; /** *
-   * The name of the node pool to update.
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -268,12 +282,13 @@ public java.lang.String getNodePoolId() { } /** *
-   * The name of the node pool to update.
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { @@ -300,6 +315,52 @@ public int getNodeCount() { return nodeCount_; } + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + 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() { @@ -329,6 +390,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nodeCount_ != 0) { output.writeInt32(5, nodeCount_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } unknownFields.writeTo(output); } @@ -354,6 +418,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, nodeCount_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -380,6 +447,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getNodePoolId()); result = result && (getNodeCount() == other.getNodeCount()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -401,6 +470,8 @@ public int hashCode() { hash = (53 * hash) + getNodePoolId().hashCode(); hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getNodeCount(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -549,6 +620,8 @@ public Builder clear() { nodeCount_ = 0; + name_ = ""; + return this; } @@ -580,6 +653,7 @@ public com.google.container.v1.SetNodePoolSizeRequest buildPartial() { result.clusterId_ = clusterId_; result.nodePoolId_ = nodePoolId_; result.nodeCount_ = nodeCount_; + result.name_ = name_; onBuilt(); return result; } @@ -647,6 +721,10 @@ public Builder mergeFrom(com.google.container.v1.SetNodePoolSizeRequest other) { if (other.getNodeCount() != 0) { setNodeCount(other.getNodeCount()); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -679,13 +757,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -699,13 +778,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -720,13 +800,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -738,13 +819,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -752,13 +834,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -773,14 +856,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -794,14 +878,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -816,14 +901,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -835,14 +921,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -850,14 +937,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -872,12 +960,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -891,12 +980,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -911,12 +1001,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -928,12 +1019,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -941,12 +1033,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to update.
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -961,12 +1054,13 @@ public Builder setClusterIdBytes( private java.lang.Object nodePoolId_ = ""; /** *
-     * The name of the node pool to update.
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -980,12 +1074,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to update.
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof String) { @@ -1000,12 +1095,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to update.
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolId( + @java.lang.Deprecated public Builder setNodePoolId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1017,12 +1113,13 @@ public Builder setNodePoolId( } /** *
-     * The name of the node pool to update.
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder clearNodePoolId() { + @java.lang.Deprecated public Builder clearNodePoolId() { nodePoolId_ = getDefaultInstance().getNodePoolId(); onChanged(); @@ -1030,12 +1127,13 @@ public Builder clearNodePoolId() { } /** *
-     * The name of the node pool to update.
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolIdBytes( + @java.lang.Deprecated public Builder setNodePoolIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1084,6 +1182,105 @@ public Builder clearNodeCount() { onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java index 6d859bf12899..a33b1c0c1c7b 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java @@ -9,80 +9,88 @@ public interface SetNodePoolSizeRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to update.
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** *
-   * The name of the node pool to update.
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - java.lang.String getNodePoolId(); + @java.lang.Deprecated java.lang.String getNodePoolId(); /** *
-   * The name of the node pool to update.
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); /** @@ -93,4 +101,26 @@ public interface SetNodePoolSizeRequestOrBuilder extends * int32 node_count = 5; */ int getNodeCount(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java index 634a3948bdcd..7cff7014363b 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java @@ -24,6 +24,8 @@ private StartIPRotationRequest() { projectId_ = ""; zone_ = ""; clusterId_ = ""; + name_ = ""; + rotateCredentials_ = false; } @java.lang.Override @@ -68,6 +70,17 @@ private StartIPRotationRequest( clusterId_ = s; break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 56: { + + rotateCredentials_ = input.readBool(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -104,13 +117,14 @@ private StartIPRotationRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -124,13 +138,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -148,14 +163,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -169,14 +185,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -194,12 +211,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -213,12 +231,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -232,6 +251,63 @@ public java.lang.String getClusterId() { } } + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 ROTATE_CREDENTIALS_FIELD_NUMBER = 7; + private boolean rotateCredentials_; + /** + *
+   * Whether to rotate credentials during IP rotation.
+   * 
+ * + * bool rotate_credentials = 7; + */ + public boolean getRotateCredentials() { + return rotateCredentials_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -255,6 +331,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getClusterIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + if (rotateCredentials_ != false) { + output.writeBool(7, rotateCredentials_); + } unknownFields.writeTo(output); } @@ -273,6 +355,13 @@ public int getSerializedSize() { if (!getClusterIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + if (rotateCredentials_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, rotateCredentials_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -295,6 +384,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getZone()); result = result && getClusterId() .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); + result = result && (getRotateCredentials() + == other.getRotateCredentials()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -312,6 +405,11 @@ public int hashCode() { hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ROTATE_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRotateCredentials()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -456,6 +554,10 @@ public Builder clear() { clusterId_ = ""; + name_ = ""; + + rotateCredentials_ = false; + return this; } @@ -485,6 +587,8 @@ public com.google.container.v1.StartIPRotationRequest buildPartial() { result.projectId_ = projectId_; result.zone_ = zone_; result.clusterId_ = clusterId_; + result.name_ = name_; + result.rotateCredentials_ = rotateCredentials_; onBuilt(); return result; } @@ -545,6 +649,13 @@ public Builder mergeFrom(com.google.container.v1.StartIPRotationRequest other) { clusterId_ = other.clusterId_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getRotateCredentials() != false) { + setRotateCredentials(other.getRotateCredentials()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -577,13 +688,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -597,13 +709,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -618,13 +731,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -636,13 +750,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -650,13 +765,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -671,14 +787,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -692,14 +809,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -714,14 +832,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -733,14 +852,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -748,14 +868,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -770,12 +891,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -789,12 +911,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -809,12 +932,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -826,12 +950,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -839,12 +964,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster.
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -855,6 +981,138 @@ public Builder setClusterIdBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean rotateCredentials_ ; + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + */ + public boolean getRotateCredentials() { + return rotateCredentials_; + } + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + */ + public Builder setRotateCredentials(boolean value) { + + rotateCredentials_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + */ + public Builder clearRotateCredentials() { + + rotateCredentials_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java index 1a593fc0aae9..a4bb7bde0f36 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java @@ -9,61 +9,96 @@ public interface StartIPRotationRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster.
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Whether to rotate credentials during IP rotation.
+   * 
+ * + * bool rotate_credentials = 7; + */ + boolean getRotateCredentials(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java index 6b6a6e9fe04f..e7c26d81ca45 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java @@ -23,6 +23,7 @@ private UpdateClusterRequest() { projectId_ = ""; zone_ = ""; clusterId_ = ""; + name_ = ""; } @java.lang.Override @@ -80,6 +81,12 @@ private UpdateClusterRequest( break; } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -116,13 +123,14 @@ private UpdateClusterRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -136,13 +144,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -160,14 +169,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -181,14 +191,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -206,12 +217,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -225,12 +237,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -277,6 +290,50 @@ public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { return getUpdate(); } + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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() { @@ -303,6 +360,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (update_ != null) { output.writeMessage(4, getUpdate()); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } unknownFields.writeTo(output); } @@ -325,6 +385,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUpdate()); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -352,6 +415,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getUpdate() .equals(other.getUpdate()); } + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -373,6 +438,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -522,6 +589,8 @@ public Builder clear() { update_ = null; updateBuilder_ = null; } + name_ = ""; + return this; } @@ -556,6 +625,7 @@ public com.google.container.v1.UpdateClusterRequest buildPartial() { } else { result.update_ = updateBuilder_.build(); } + result.name_ = name_; onBuilt(); return result; } @@ -619,6 +689,10 @@ public Builder mergeFrom(com.google.container.v1.UpdateClusterRequest other) { if (other.hasUpdate()) { mergeUpdate(other.getUpdate()); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -651,13 +725,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -671,13 +746,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -692,13 +768,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -710,13 +787,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -724,13 +802,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -745,14 +824,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -766,14 +846,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -788,14 +869,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -807,14 +889,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -822,14 +905,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -844,12 +928,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -863,12 +948,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -883,12 +969,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -900,12 +987,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -913,12 +1001,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1082,6 +1171,100 @@ public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { } return updateBuilder_; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java index 2e56721ef626..0973188ba4fa 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java @@ -9,62 +9,68 @@ public interface UpdateClusterRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** @@ -91,4 +97,24 @@ public interface UpdateClusterRequestOrBuilder extends * .google.container.v1.ClusterUpdate update = 4; */ com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java index b7b74590bb92..9ceec1027cb1 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java @@ -24,6 +24,7 @@ private UpdateMasterRequest() { zone_ = ""; clusterId_ = ""; masterVersion_ = ""; + name_ = ""; } @java.lang.Override @@ -74,6 +75,12 @@ private UpdateMasterRequest( masterVersion_ = s; break; } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -110,13 +117,14 @@ private UpdateMasterRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -130,13 +138,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -154,14 +163,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -175,14 +185,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -200,12 +211,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -219,12 +231,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -242,9 +255,14 @@ public java.lang.String getClusterId() { private volatile java.lang.Object masterVersion_; /** *
-   * The Kubernetes version to change the master to. The only valid value is the
-   * latest supported version. Use "-" to have the server automatically select
-   * the latest version.
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
    * 
* * string master_version = 4; @@ -263,9 +281,14 @@ public java.lang.String getMasterVersion() { } /** *
-   * The Kubernetes version to change the master to. The only valid value is the
-   * latest supported version. Use "-" to have the server automatically select
-   * the latest version.
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
    * 
* * string master_version = 4; @@ -284,6 +307,50 @@ public java.lang.String getMasterVersion() { } } + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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() { @@ -310,6 +377,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getMasterVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, masterVersion_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } unknownFields.writeTo(output); } @@ -331,6 +401,9 @@ public int getSerializedSize() { if (!getMasterVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, masterVersion_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -355,6 +428,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getClusterId()); result = result && getMasterVersion() .equals(other.getMasterVersion()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -374,6 +449,8 @@ public int hashCode() { hash = (53 * hash) + getClusterId().hashCode(); hash = (37 * hash) + MASTER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMasterVersion().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -519,6 +596,8 @@ public Builder clear() { masterVersion_ = ""; + name_ = ""; + return this; } @@ -549,6 +628,7 @@ public com.google.container.v1.UpdateMasterRequest buildPartial() { result.zone_ = zone_; result.clusterId_ = clusterId_; result.masterVersion_ = masterVersion_; + result.name_ = name_; onBuilt(); return result; } @@ -613,6 +693,10 @@ public Builder mergeFrom(com.google.container.v1.UpdateMasterRequest other) { masterVersion_ = other.masterVersion_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -645,13 +729,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -665,13 +750,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -686,13 +772,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -704,13 +791,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -718,13 +806,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -739,14 +828,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -760,14 +850,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -782,14 +873,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -801,14 +893,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -816,14 +909,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -838,12 +932,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -857,12 +952,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -877,12 +973,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -894,12 +991,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -907,12 +1005,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -927,9 +1026,14 @@ public Builder setClusterIdBytes( private java.lang.Object masterVersion_ = ""; /** *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version. Use "-" to have the server automatically select
-     * the latest version.
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
      * 
* * string master_version = 4; @@ -948,9 +1052,14 @@ public java.lang.String getMasterVersion() { } /** *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version. Use "-" to have the server automatically select
-     * the latest version.
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
      * 
* * string master_version = 4; @@ -970,9 +1079,14 @@ public java.lang.String getMasterVersion() { } /** *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version. Use "-" to have the server automatically select
-     * the latest version.
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
      * 
* * string master_version = 4; @@ -989,9 +1103,14 @@ public Builder setMasterVersion( } /** *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version. Use "-" to have the server automatically select
-     * the latest version.
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
      * 
* * string master_version = 4; @@ -1004,9 +1123,14 @@ public Builder clearMasterVersion() { } /** *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version. Use "-" to have the server automatically select
-     * the latest version.
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
      * 
* * string master_version = 4; @@ -1022,6 +1146,100 @@ public Builder setMasterVersionBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java index a4b2e7f07534..5db5839219d7 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java @@ -9,69 +9,80 @@ public interface UpdateMasterRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** *
-   * The Kubernetes version to change the master to. The only valid value is the
-   * latest supported version. Use "-" to have the server automatically select
-   * the latest version.
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
    * 
* * string master_version = 4; @@ -79,13 +90,38 @@ public interface UpdateMasterRequestOrBuilder extends java.lang.String getMasterVersion(); /** *
-   * The Kubernetes version to change the master to. The only valid value is the
-   * latest supported version. Use "-" to have the server automatically select
-   * the latest version.
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
    * 
* * string master_version = 4; */ com.google.protobuf.ByteString getMasterVersionBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java index 488dceba53d4..e445590dd6d0 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java @@ -26,6 +26,7 @@ private UpdateNodePoolRequest() { nodePoolId_ = ""; nodeVersion_ = ""; imageType_ = ""; + name_ = ""; } @java.lang.Override @@ -88,6 +89,12 @@ private UpdateNodePoolRequest( imageType_ = s; break; } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -124,13 +131,14 @@ private UpdateNodePoolRequest( private volatile java.lang.Object projectId_; /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -144,13 +152,14 @@ public java.lang.String getProjectId() { } /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { @@ -168,14 +177,15 @@ public java.lang.String getProjectId() { private volatile java.lang.Object zone_; /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -189,14 +199,15 @@ public java.lang.String getZone() { } /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { @@ -214,12 +225,13 @@ public java.lang.String getZone() { private volatile java.lang.Object clusterId_; /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -233,12 +245,13 @@ public java.lang.String getClusterId() { } /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { @@ -256,12 +269,13 @@ public java.lang.String getClusterId() { private volatile java.lang.Object nodePoolId_; /** *
-   * The name of the node pool to upgrade.
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -275,12 +289,13 @@ public java.lang.String getNodePoolId() { } /** *
-   * The name of the node pool to upgrade.
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof java.lang.String) { @@ -299,8 +314,14 @@ public java.lang.String getNodePoolId() { /** *
    * The Kubernetes version to change the nodes to (typically an
-   * upgrade). Use `-` to upgrade to the latest version supported by
-   * the server.
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
    * 
* * string node_version = 5; @@ -320,8 +341,14 @@ public java.lang.String getNodeVersion() { /** *
    * The Kubernetes version to change the nodes to (typically an
-   * upgrade). Use `-` to upgrade to the latest version supported by
-   * the server.
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
    * 
* * string node_version = 5; @@ -382,6 +409,52 @@ public java.lang.String getImageType() { } } + public static final int NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + 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() { @@ -414,6 +487,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getImageTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, imageType_); } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, name_); + } unknownFields.writeTo(output); } @@ -441,6 +517,9 @@ public int getSerializedSize() { if (!getImageTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, imageType_); } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -469,6 +548,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getNodeVersion()); result = result && getImageType() .equals(other.getImageType()); + result = result && getName() + .equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -492,6 +573,8 @@ public int hashCode() { hash = (53 * hash) + getNodeVersion().hashCode(); hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getImageType().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -641,6 +724,8 @@ public Builder clear() { imageType_ = ""; + name_ = ""; + return this; } @@ -673,6 +758,7 @@ public com.google.container.v1.UpdateNodePoolRequest buildPartial() { result.nodePoolId_ = nodePoolId_; result.nodeVersion_ = nodeVersion_; result.imageType_ = imageType_; + result.name_ = name_; onBuilt(); return result; } @@ -745,6 +831,10 @@ public Builder mergeFrom(com.google.container.v1.UpdateNodePoolRequest other) { imageType_ = other.imageType_; onChanged(); } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -777,13 +867,14 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public java.lang.String getProjectId() { + @java.lang.Deprecated public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -797,13 +888,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { @@ -818,13 +910,14 @@ public java.lang.String getProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectId( + @java.lang.Deprecated public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -836,13 +929,14 @@ public Builder setProjectId( } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder clearProjectId() { + @java.lang.Deprecated public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); @@ -850,13 +944,14 @@ public Builder clearProjectId() { } /** *
-     * The Google Developers Console [project ID or project
+     * Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - public Builder setProjectIdBytes( + @java.lang.Deprecated public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -871,14 +966,15 @@ public Builder setProjectIdBytes( private java.lang.Object zone_ = ""; /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public java.lang.String getZone() { + @java.lang.Deprecated public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -892,14 +988,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { @@ -914,14 +1011,15 @@ public java.lang.String getZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZone( + @java.lang.Deprecated public Builder setZone( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -933,14 +1031,15 @@ public Builder setZone( } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder clearZone() { + @java.lang.Deprecated public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); @@ -948,14 +1047,15 @@ public Builder clearZone() { } /** *
-     * The name of the Google Compute Engine
+     * Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - public Builder setZoneBytes( + @java.lang.Deprecated public Builder setZoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -970,12 +1070,13 @@ public Builder setZoneBytes( private java.lang.Object clusterId_ = ""; /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public java.lang.String getClusterId() { + @java.lang.Deprecated public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -989,12 +1090,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { @@ -1009,12 +1111,13 @@ public java.lang.String getClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterId( + @java.lang.Deprecated public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1026,12 +1129,13 @@ public Builder setClusterId( } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder clearClusterId() { + @java.lang.Deprecated public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); @@ -1039,12 +1143,13 @@ public Builder clearClusterId() { } /** *
-     * The name of the cluster to upgrade.
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - public Builder setClusterIdBytes( + @java.lang.Deprecated public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1059,12 +1164,13 @@ public Builder setClusterIdBytes( private java.lang.Object nodePoolId_ = ""; /** *
-     * The name of the node pool to upgrade.
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public java.lang.String getNodePoolId() { + @java.lang.Deprecated public java.lang.String getNodePoolId() { java.lang.Object ref = nodePoolId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -1078,12 +1184,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to upgrade.
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { java.lang.Object ref = nodePoolId_; if (ref instanceof String) { @@ -1098,12 +1205,13 @@ public java.lang.String getNodePoolId() { } /** *
-     * The name of the node pool to upgrade.
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolId( + @java.lang.Deprecated public Builder setNodePoolId( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1115,12 +1223,13 @@ public Builder setNodePoolId( } /** *
-     * The name of the node pool to upgrade.
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder clearNodePoolId() { + @java.lang.Deprecated public Builder clearNodePoolId() { nodePoolId_ = getDefaultInstance().getNodePoolId(); onChanged(); @@ -1128,12 +1237,13 @@ public Builder clearNodePoolId() { } /** *
-     * The name of the node pool to upgrade.
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
      * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - public Builder setNodePoolIdBytes( + @java.lang.Deprecated public Builder setNodePoolIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1149,8 +1259,14 @@ public Builder setNodePoolIdBytes( /** *
      * The Kubernetes version to change the nodes to (typically an
-     * upgrade). Use `-` to upgrade to the latest version supported by
-     * the server.
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
      * 
* * string node_version = 5; @@ -1170,8 +1286,14 @@ public java.lang.String getNodeVersion() { /** *
      * The Kubernetes version to change the nodes to (typically an
-     * upgrade). Use `-` to upgrade to the latest version supported by
-     * the server.
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
      * 
* * string node_version = 5; @@ -1192,8 +1314,14 @@ public java.lang.String getNodeVersion() { /** *
      * The Kubernetes version to change the nodes to (typically an
-     * upgrade). Use `-` to upgrade to the latest version supported by
-     * the server.
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
      * 
* * string node_version = 5; @@ -1211,8 +1339,14 @@ public Builder setNodeVersion( /** *
      * The Kubernetes version to change the nodes to (typically an
-     * upgrade). Use `-` to upgrade to the latest version supported by
-     * the server.
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
      * 
* * string node_version = 5; @@ -1226,8 +1360,14 @@ public Builder clearNodeVersion() { /** *
      * The Kubernetes version to change the nodes to (typically an
-     * upgrade). Use `-` to upgrade to the latest version supported by
-     * the server.
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
      * 
* * string node_version = 5; @@ -1332,6 +1472,105 @@ public Builder setImageTypeBytes( onChanged(); return this; } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + 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) { diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java index aee02b81eb11..c91907fd12d5 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java @@ -9,87 +9,101 @@ public interface UpdateNodePoolRequestOrBuilder extends /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - java.lang.String getProjectId(); + @java.lang.Deprecated java.lang.String getProjectId(); /** *
-   * The Google Developers Console [project ID or project
+   * Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1; + * string project_id = 1 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - java.lang.String getZone(); + @java.lang.Deprecated java.lang.String getZone(); /** *
-   * The name of the Google Compute Engine
+   * Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - java.lang.String getClusterId(); + @java.lang.Deprecated java.lang.String getClusterId(); /** *
-   * The name of the cluster to upgrade.
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); /** *
-   * The name of the node pool to upgrade.
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - java.lang.String getNodePoolId(); + @java.lang.Deprecated java.lang.String getNodePoolId(); /** *
-   * The name of the node pool to upgrade.
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
    * 
* - * string node_pool_id = 4; + * string node_pool_id = 4 [deprecated = true]; */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); /** *
    * The Kubernetes version to change the nodes to (typically an
-   * upgrade). Use `-` to upgrade to the latest version supported by
-   * the server.
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
    * 
* * string node_version = 5; @@ -98,8 +112,14 @@ public interface UpdateNodePoolRequestOrBuilder extends /** *
    * The Kubernetes version to change the nodes to (typically an
-   * upgrade). Use `-` to upgrade to the latest version supported by
-   * the server.
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
    * 
* * string node_version = 5; @@ -124,4 +144,26 @@ public interface UpdateNodePoolRequestOrBuilder extends */ com.google.protobuf.ByteString getImageTypeBytes(); + + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AcceleratorConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AcceleratorConfig.java new file mode 100644 index 000000000000..87176bcbd739 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AcceleratorConfig.java @@ -0,0 +1,659 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * AcceleratorConfig represents a Hardware Accelerator request.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.AcceleratorConfig} + */ +public final class AcceleratorConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.AcceleratorConfig) + AcceleratorConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AcceleratorConfig.newBuilder() to construct. + private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AcceleratorConfig() { + acceleratorCount_ = 0L; + acceleratorType_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AcceleratorConfig( + 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 8: { + + acceleratorCount_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + acceleratorType_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AcceleratorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.AcceleratorConfig.class, com.google.container.v1alpha1.AcceleratorConfig.Builder.class); + } + + public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1; + private long acceleratorCount_; + /** + *
+   * The number of the accelerator cards exposed to an instance.
+   * 
+ * + * int64 accelerator_count = 1; + */ + public long getAcceleratorCount() { + return acceleratorCount_; + } + + public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object acceleratorType_; + /** + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](/compute/docs/gpus/#Introduction)
+   * 
+ * + * string accelerator_type = 2; + */ + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } + } + /** + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](/compute/docs/gpus/#Introduction)
+   * 
+ * + * string accelerator_type = 2; + */ + public com.google.protobuf.ByteString + getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + acceleratorType_ = 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 (acceleratorCount_ != 0L) { + output.writeInt64(1, acceleratorCount_); + } + if (!getAcceleratorTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (acceleratorCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, acceleratorCount_); + } + if (!getAcceleratorTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); + } + 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.container.v1alpha1.AcceleratorConfig)) { + return super.equals(obj); + } + com.google.container.v1alpha1.AcceleratorConfig other = (com.google.container.v1alpha1.AcceleratorConfig) obj; + + boolean result = true; + result = result && (getAcceleratorCount() + == other.getAcceleratorCount()); + result = result && getAcceleratorType() + .equals(other.getAcceleratorType()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAcceleratorCount()); + hash = (37 * hash) + ACCELERATOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAcceleratorType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.AcceleratorConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.AcceleratorConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.AcceleratorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AcceleratorConfig represents a Hardware Accelerator request.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.AcceleratorConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.AcceleratorConfig) + com.google.container.v1alpha1.AcceleratorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AcceleratorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.AcceleratorConfig.class, com.google.container.v1alpha1.AcceleratorConfig.Builder.class); + } + + // Construct using com.google.container.v1alpha1.AcceleratorConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + acceleratorCount_ = 0L; + + acceleratorType_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.AcceleratorConfig getDefaultInstanceForType() { + return com.google.container.v1alpha1.AcceleratorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.AcceleratorConfig build() { + com.google.container.v1alpha1.AcceleratorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.AcceleratorConfig buildPartial() { + com.google.container.v1alpha1.AcceleratorConfig result = new com.google.container.v1alpha1.AcceleratorConfig(this); + result.acceleratorCount_ = acceleratorCount_; + result.acceleratorType_ = acceleratorType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.AcceleratorConfig) { + return mergeFrom((com.google.container.v1alpha1.AcceleratorConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.AcceleratorConfig other) { + if (other == com.google.container.v1alpha1.AcceleratorConfig.getDefaultInstance()) return this; + if (other.getAcceleratorCount() != 0L) { + setAcceleratorCount(other.getAcceleratorCount()); + } + if (!other.getAcceleratorType().isEmpty()) { + acceleratorType_ = other.acceleratorType_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.AcceleratorConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.AcceleratorConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long acceleratorCount_ ; + /** + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + */ + public long getAcceleratorCount() { + return acceleratorCount_; + } + /** + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + */ + public Builder setAcceleratorCount(long value) { + + acceleratorCount_ = value; + onChanged(); + return this; + } + /** + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + */ + public Builder clearAcceleratorCount() { + + acceleratorCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object acceleratorType_ = ""; + /** + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](/compute/docs/gpus/#Introduction)
+     * 
+ * + * string accelerator_type = 2; + */ + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](/compute/docs/gpus/#Introduction)
+     * 
+ * + * string accelerator_type = 2; + */ + public com.google.protobuf.ByteString + getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + acceleratorType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](/compute/docs/gpus/#Introduction)
+     * 
+ * + * string accelerator_type = 2; + */ + public Builder setAcceleratorType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + acceleratorType_ = value; + onChanged(); + return this; + } + /** + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](/compute/docs/gpus/#Introduction)
+     * 
+ * + * string accelerator_type = 2; + */ + public Builder clearAcceleratorType() { + + acceleratorType_ = getDefaultInstance().getAcceleratorType(); + onChanged(); + return this; + } + /** + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](/compute/docs/gpus/#Introduction)
+     * 
+ * + * string accelerator_type = 2; + */ + public Builder setAcceleratorTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + acceleratorType_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.AcceleratorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.AcceleratorConfig) + private static final com.google.container.v1alpha1.AcceleratorConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.AcceleratorConfig(); + } + + public static com.google.container.v1alpha1.AcceleratorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AcceleratorConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.AcceleratorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AcceleratorConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AcceleratorConfigOrBuilder.java new file mode 100644 index 000000000000..51e6953d640b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AcceleratorConfigOrBuilder.java @@ -0,0 +1,38 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface AcceleratorConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.AcceleratorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The number of the accelerator cards exposed to an instance.
+   * 
+ * + * int64 accelerator_count = 1; + */ + long getAcceleratorCount(); + + /** + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](/compute/docs/gpus/#Introduction)
+   * 
+ * + * string accelerator_type = 2; + */ + java.lang.String getAcceleratorType(); + /** + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](/compute/docs/gpus/#Introduction)
+   * 
+ * + * string accelerator_type = 2; + */ + com.google.protobuf.ByteString + getAcceleratorTypeBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AddonsConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AddonsConfig.java new file mode 100644 index 000000000000..0583a19ac225 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AddonsConfig.java @@ -0,0 +1,1400 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration for the addons that can be automatically spun up in the
+ * cluster, enabling additional functionality.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.AddonsConfig} + */ +public final class AddonsConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.AddonsConfig) + AddonsConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AddonsConfig.newBuilder() to construct. + private AddonsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AddonsConfig() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddonsConfig( + 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: { + com.google.container.v1alpha1.HttpLoadBalancing.Builder subBuilder = null; + if (httpLoadBalancing_ != null) { + subBuilder = httpLoadBalancing_.toBuilder(); + } + httpLoadBalancing_ = input.readMessage(com.google.container.v1alpha1.HttpLoadBalancing.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpLoadBalancing_); + httpLoadBalancing_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.container.v1alpha1.HorizontalPodAutoscaling.Builder subBuilder = null; + if (horizontalPodAutoscaling_ != null) { + subBuilder = horizontalPodAutoscaling_.toBuilder(); + } + horizontalPodAutoscaling_ = input.readMessage(com.google.container.v1alpha1.HorizontalPodAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(horizontalPodAutoscaling_); + horizontalPodAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.container.v1alpha1.KubernetesDashboard.Builder subBuilder = null; + if (kubernetesDashboard_ != null) { + subBuilder = kubernetesDashboard_.toBuilder(); + } + kubernetesDashboard_ = input.readMessage(com.google.container.v1alpha1.KubernetesDashboard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kubernetesDashboard_); + kubernetesDashboard_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.container.v1alpha1.NetworkPolicyConfig.Builder subBuilder = null; + if (networkPolicyConfig_ != null) { + subBuilder = networkPolicyConfig_.toBuilder(); + } + networkPolicyConfig_ = input.readMessage(com.google.container.v1alpha1.NetworkPolicyConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkPolicyConfig_); + networkPolicyConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AddonsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AddonsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.AddonsConfig.class, com.google.container.v1alpha1.AddonsConfig.Builder.class); + } + + public static final int HTTP_LOAD_BALANCING_FIELD_NUMBER = 1; + private com.google.container.v1alpha1.HttpLoadBalancing httpLoadBalancing_; + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public boolean hasHttpLoadBalancing() { + return httpLoadBalancing_ != null; + } + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1alpha1.HttpLoadBalancing getHttpLoadBalancing() { + return httpLoadBalancing_ == null ? com.google.container.v1alpha1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; + } + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1alpha1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { + return getHttpLoadBalancing(); + } + + public static final int HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER = 2; + private com.google.container.v1alpha1.HorizontalPodAutoscaling horizontalPodAutoscaling_; + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public boolean hasHorizontalPodAutoscaling() { + return horizontalPodAutoscaling_ != null; + } + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1alpha1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { + return horizontalPodAutoscaling_ == null ? com.google.container.v1alpha1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; + } + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1alpha1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder() { + return getHorizontalPodAutoscaling(); + } + + public static final int KUBERNETES_DASHBOARD_FIELD_NUMBER = 3; + private com.google.container.v1alpha1.KubernetesDashboard kubernetesDashboard_; + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public boolean hasKubernetesDashboard() { + return kubernetesDashboard_ != null; + } + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public com.google.container.v1alpha1.KubernetesDashboard getKubernetesDashboard() { + return kubernetesDashboard_ == null ? com.google.container.v1alpha1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; + } + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public com.google.container.v1alpha1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { + return getKubernetesDashboard(); + } + + public static final int NETWORK_POLICY_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1alpha1.NetworkPolicyConfig networkPolicyConfig_; + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public boolean hasNetworkPolicyConfig() { + return networkPolicyConfig_ != null; + } + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1alpha1.NetworkPolicyConfig getNetworkPolicyConfig() { + return networkPolicyConfig_ == null ? com.google.container.v1alpha1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; + } + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1alpha1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { + return getNetworkPolicyConfig(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (httpLoadBalancing_ != null) { + output.writeMessage(1, getHttpLoadBalancing()); + } + if (horizontalPodAutoscaling_ != null) { + output.writeMessage(2, getHorizontalPodAutoscaling()); + } + if (kubernetesDashboard_ != null) { + output.writeMessage(3, getKubernetesDashboard()); + } + if (networkPolicyConfig_ != null) { + output.writeMessage(4, getNetworkPolicyConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (httpLoadBalancing_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHttpLoadBalancing()); + } + if (horizontalPodAutoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHorizontalPodAutoscaling()); + } + if (kubernetesDashboard_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getKubernetesDashboard()); + } + if (networkPolicyConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNetworkPolicyConfig()); + } + 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.container.v1alpha1.AddonsConfig)) { + return super.equals(obj); + } + com.google.container.v1alpha1.AddonsConfig other = (com.google.container.v1alpha1.AddonsConfig) obj; + + boolean result = true; + result = result && (hasHttpLoadBalancing() == other.hasHttpLoadBalancing()); + if (hasHttpLoadBalancing()) { + result = result && getHttpLoadBalancing() + .equals(other.getHttpLoadBalancing()); + } + result = result && (hasHorizontalPodAutoscaling() == other.hasHorizontalPodAutoscaling()); + if (hasHorizontalPodAutoscaling()) { + result = result && getHorizontalPodAutoscaling() + .equals(other.getHorizontalPodAutoscaling()); + } + result = result && (hasKubernetesDashboard() == other.hasKubernetesDashboard()); + if (hasKubernetesDashboard()) { + result = result && getKubernetesDashboard() + .equals(other.getKubernetesDashboard()); + } + result = result && (hasNetworkPolicyConfig() == other.hasNetworkPolicyConfig()); + if (hasNetworkPolicyConfig()) { + result = result && getNetworkPolicyConfig() + .equals(other.getNetworkPolicyConfig()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHttpLoadBalancing()) { + hash = (37 * hash) + HTTP_LOAD_BALANCING_FIELD_NUMBER; + hash = (53 * hash) + getHttpLoadBalancing().hashCode(); + } + if (hasHorizontalPodAutoscaling()) { + hash = (37 * hash) + HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getHorizontalPodAutoscaling().hashCode(); + } + if (hasKubernetesDashboard()) { + hash = (37 * hash) + KUBERNETES_DASHBOARD_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesDashboard().hashCode(); + } + if (hasNetworkPolicyConfig()) { + hash = (37 * hash) + NETWORK_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicyConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.AddonsConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.AddonsConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.AddonsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.AddonsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.AddonsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.AddonsConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.AddonsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.AddonsConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.AddonsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.AddonsConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.AddonsConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.AddonsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.AddonsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the addons that can be automatically spun up in the
+   * cluster, enabling additional functionality.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.AddonsConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.AddonsConfig) + com.google.container.v1alpha1.AddonsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AddonsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AddonsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.AddonsConfig.class, com.google.container.v1alpha1.AddonsConfig.Builder.class); + } + + // Construct using com.google.container.v1alpha1.AddonsConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = null; + } else { + httpLoadBalancing_ = null; + httpLoadBalancingBuilder_ = null; + } + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = null; + } else { + horizontalPodAutoscaling_ = null; + horizontalPodAutoscalingBuilder_ = null; + } + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = null; + } else { + kubernetesDashboard_ = null; + kubernetesDashboardBuilder_ = null; + } + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = null; + } else { + networkPolicyConfig_ = null; + networkPolicyConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AddonsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.AddonsConfig getDefaultInstanceForType() { + return com.google.container.v1alpha1.AddonsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.AddonsConfig build() { + com.google.container.v1alpha1.AddonsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.AddonsConfig buildPartial() { + com.google.container.v1alpha1.AddonsConfig result = new com.google.container.v1alpha1.AddonsConfig(this); + if (httpLoadBalancingBuilder_ == null) { + result.httpLoadBalancing_ = httpLoadBalancing_; + } else { + result.httpLoadBalancing_ = httpLoadBalancingBuilder_.build(); + } + if (horizontalPodAutoscalingBuilder_ == null) { + result.horizontalPodAutoscaling_ = horizontalPodAutoscaling_; + } else { + result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_.build(); + } + if (kubernetesDashboardBuilder_ == null) { + result.kubernetesDashboard_ = kubernetesDashboard_; + } else { + result.kubernetesDashboard_ = kubernetesDashboardBuilder_.build(); + } + if (networkPolicyConfigBuilder_ == null) { + result.networkPolicyConfig_ = networkPolicyConfig_; + } else { + result.networkPolicyConfig_ = networkPolicyConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.AddonsConfig) { + return mergeFrom((com.google.container.v1alpha1.AddonsConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.AddonsConfig other) { + if (other == com.google.container.v1alpha1.AddonsConfig.getDefaultInstance()) return this; + if (other.hasHttpLoadBalancing()) { + mergeHttpLoadBalancing(other.getHttpLoadBalancing()); + } + if (other.hasHorizontalPodAutoscaling()) { + mergeHorizontalPodAutoscaling(other.getHorizontalPodAutoscaling()); + } + if (other.hasKubernetesDashboard()) { + mergeKubernetesDashboard(other.getKubernetesDashboard()); + } + if (other.hasNetworkPolicyConfig()) { + mergeNetworkPolicyConfig(other.getNetworkPolicyConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.AddonsConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.AddonsConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1alpha1.HttpLoadBalancing httpLoadBalancing_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.HttpLoadBalancing, com.google.container.v1alpha1.HttpLoadBalancing.Builder, com.google.container.v1alpha1.HttpLoadBalancingOrBuilder> httpLoadBalancingBuilder_; + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public boolean hasHttpLoadBalancing() { + return httpLoadBalancingBuilder_ != null || httpLoadBalancing_ != null; + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1alpha1.HttpLoadBalancing getHttpLoadBalancing() { + if (httpLoadBalancingBuilder_ == null) { + return httpLoadBalancing_ == null ? com.google.container.v1alpha1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; + } else { + return httpLoadBalancingBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing(com.google.container.v1alpha1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + httpLoadBalancing_ = value; + onChanged(); + } else { + httpLoadBalancingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing( + com.google.container.v1alpha1.HttpLoadBalancing.Builder builderForValue) { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = builderForValue.build(); + onChanged(); + } else { + httpLoadBalancingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder mergeHttpLoadBalancing(com.google.container.v1alpha1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (httpLoadBalancing_ != null) { + httpLoadBalancing_ = + com.google.container.v1alpha1.HttpLoadBalancing.newBuilder(httpLoadBalancing_).mergeFrom(value).buildPartial(); + } else { + httpLoadBalancing_ = value; + } + onChanged(); + } else { + httpLoadBalancingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder clearHttpLoadBalancing() { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = null; + onChanged(); + } else { + httpLoadBalancing_ = null; + httpLoadBalancingBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1alpha1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() { + + onChanged(); + return getHttpLoadBalancingFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1alpha1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { + if (httpLoadBalancingBuilder_ != null) { + return httpLoadBalancingBuilder_.getMessageOrBuilder(); + } else { + return httpLoadBalancing_ == null ? + com.google.container.v1alpha1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; + } + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.HttpLoadBalancing, com.google.container.v1alpha1.HttpLoadBalancing.Builder, com.google.container.v1alpha1.HttpLoadBalancingOrBuilder> + getHttpLoadBalancingFieldBuilder() { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.HttpLoadBalancing, com.google.container.v1alpha1.HttpLoadBalancing.Builder, com.google.container.v1alpha1.HttpLoadBalancingOrBuilder>( + getHttpLoadBalancing(), + getParentForChildren(), + isClean()); + httpLoadBalancing_ = null; + } + return httpLoadBalancingBuilder_; + } + + private com.google.container.v1alpha1.HorizontalPodAutoscaling horizontalPodAutoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.HorizontalPodAutoscaling, com.google.container.v1alpha1.HorizontalPodAutoscaling.Builder, com.google.container.v1alpha1.HorizontalPodAutoscalingOrBuilder> horizontalPodAutoscalingBuilder_; + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public boolean hasHorizontalPodAutoscaling() { + return horizontalPodAutoscalingBuilder_ != null || horizontalPodAutoscaling_ != null; + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1alpha1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { + if (horizontalPodAutoscalingBuilder_ == null) { + return horizontalPodAutoscaling_ == null ? com.google.container.v1alpha1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; + } else { + return horizontalPodAutoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder setHorizontalPodAutoscaling(com.google.container.v1alpha1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + horizontalPodAutoscaling_ = value; + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder setHorizontalPodAutoscaling( + com.google.container.v1alpha1.HorizontalPodAutoscaling.Builder builderForValue) { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder mergeHorizontalPodAutoscaling(com.google.container.v1alpha1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (horizontalPodAutoscaling_ != null) { + horizontalPodAutoscaling_ = + com.google.container.v1alpha1.HorizontalPodAutoscaling.newBuilder(horizontalPodAutoscaling_).mergeFrom(value).buildPartial(); + } else { + horizontalPodAutoscaling_ = value; + } + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder clearHorizontalPodAutoscaling() { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = null; + onChanged(); + } else { + horizontalPodAutoscaling_ = null; + horizontalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1alpha1.HorizontalPodAutoscaling.Builder getHorizontalPodAutoscalingBuilder() { + + onChanged(); + return getHorizontalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1alpha1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder() { + if (horizontalPodAutoscalingBuilder_ != null) { + return horizontalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return horizontalPodAutoscaling_ == null ? + com.google.container.v1alpha1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; + } + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.HorizontalPodAutoscaling, com.google.container.v1alpha1.HorizontalPodAutoscaling.Builder, com.google.container.v1alpha1.HorizontalPodAutoscalingOrBuilder> + getHorizontalPodAutoscalingFieldBuilder() { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.HorizontalPodAutoscaling, com.google.container.v1alpha1.HorizontalPodAutoscaling.Builder, com.google.container.v1alpha1.HorizontalPodAutoscalingOrBuilder>( + getHorizontalPodAutoscaling(), + getParentForChildren(), + isClean()); + horizontalPodAutoscaling_ = null; + } + return horizontalPodAutoscalingBuilder_; + } + + private com.google.container.v1alpha1.KubernetesDashboard kubernetesDashboard_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.KubernetesDashboard, com.google.container.v1alpha1.KubernetesDashboard.Builder, com.google.container.v1alpha1.KubernetesDashboardOrBuilder> kubernetesDashboardBuilder_; + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public boolean hasKubernetesDashboard() { + return kubernetesDashboardBuilder_ != null || kubernetesDashboard_ != null; + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public com.google.container.v1alpha1.KubernetesDashboard getKubernetesDashboard() { + if (kubernetesDashboardBuilder_ == null) { + return kubernetesDashboard_ == null ? com.google.container.v1alpha1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; + } else { + return kubernetesDashboardBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public Builder setKubernetesDashboard(com.google.container.v1alpha1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesDashboard_ = value; + onChanged(); + } else { + kubernetesDashboardBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public Builder setKubernetesDashboard( + com.google.container.v1alpha1.KubernetesDashboard.Builder builderForValue) { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = builderForValue.build(); + onChanged(); + } else { + kubernetesDashboardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public Builder mergeKubernetesDashboard(com.google.container.v1alpha1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (kubernetesDashboard_ != null) { + kubernetesDashboard_ = + com.google.container.v1alpha1.KubernetesDashboard.newBuilder(kubernetesDashboard_).mergeFrom(value).buildPartial(); + } else { + kubernetesDashboard_ = value; + } + onChanged(); + } else { + kubernetesDashboardBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public Builder clearKubernetesDashboard() { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = null; + onChanged(); + } else { + kubernetesDashboard_ = null; + kubernetesDashboardBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public com.google.container.v1alpha1.KubernetesDashboard.Builder getKubernetesDashboardBuilder() { + + onChanged(); + return getKubernetesDashboardFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public com.google.container.v1alpha1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { + if (kubernetesDashboardBuilder_ != null) { + return kubernetesDashboardBuilder_.getMessageOrBuilder(); + } else { + return kubernetesDashboard_ == null ? + com.google.container.v1alpha1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; + } + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.KubernetesDashboard, com.google.container.v1alpha1.KubernetesDashboard.Builder, com.google.container.v1alpha1.KubernetesDashboardOrBuilder> + getKubernetesDashboardFieldBuilder() { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.KubernetesDashboard, com.google.container.v1alpha1.KubernetesDashboard.Builder, com.google.container.v1alpha1.KubernetesDashboardOrBuilder>( + getKubernetesDashboard(), + getParentForChildren(), + isClean()); + kubernetesDashboard_ = null; + } + return kubernetesDashboardBuilder_; + } + + private com.google.container.v1alpha1.NetworkPolicyConfig networkPolicyConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NetworkPolicyConfig, com.google.container.v1alpha1.NetworkPolicyConfig.Builder, com.google.container.v1alpha1.NetworkPolicyConfigOrBuilder> networkPolicyConfigBuilder_; + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public boolean hasNetworkPolicyConfig() { + return networkPolicyConfigBuilder_ != null || networkPolicyConfig_ != null; + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1alpha1.NetworkPolicyConfig getNetworkPolicyConfig() { + if (networkPolicyConfigBuilder_ == null) { + return networkPolicyConfig_ == null ? com.google.container.v1alpha1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; + } else { + return networkPolicyConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig(com.google.container.v1alpha1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicyConfig_ = value; + onChanged(); + } else { + networkPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig( + com.google.container.v1alpha1.NetworkPolicyConfig.Builder builderForValue) { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder mergeNetworkPolicyConfig(com.google.container.v1alpha1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (networkPolicyConfig_ != null) { + networkPolicyConfig_ = + com.google.container.v1alpha1.NetworkPolicyConfig.newBuilder(networkPolicyConfig_).mergeFrom(value).buildPartial(); + } else { + networkPolicyConfig_ = value; + } + onChanged(); + } else { + networkPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder clearNetworkPolicyConfig() { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = null; + onChanged(); + } else { + networkPolicyConfig_ = null; + networkPolicyConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1alpha1.NetworkPolicyConfig.Builder getNetworkPolicyConfigBuilder() { + + onChanged(); + return getNetworkPolicyConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1alpha1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { + if (networkPolicyConfigBuilder_ != null) { + return networkPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return networkPolicyConfig_ == null ? + com.google.container.v1alpha1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; + } + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NetworkPolicyConfig, com.google.container.v1alpha1.NetworkPolicyConfig.Builder, com.google.container.v1alpha1.NetworkPolicyConfigOrBuilder> + getNetworkPolicyConfigFieldBuilder() { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NetworkPolicyConfig, com.google.container.v1alpha1.NetworkPolicyConfig.Builder, com.google.container.v1alpha1.NetworkPolicyConfigOrBuilder>( + getNetworkPolicyConfig(), + getParentForChildren(), + isClean()); + networkPolicyConfig_ = null; + } + return networkPolicyConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.AddonsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.AddonsConfig) + private static final com.google.container.v1alpha1.AddonsConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.AddonsConfig(); + } + + public static com.google.container.v1alpha1.AddonsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddonsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddonsConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.AddonsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AddonsConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AddonsConfigOrBuilder.java new file mode 100644 index 000000000000..3282f9ff666b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AddonsConfigOrBuilder.java @@ -0,0 +1,124 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface AddonsConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.AddonsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + boolean hasHttpLoadBalancing(); + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + com.google.container.v1alpha1.HttpLoadBalancing getHttpLoadBalancing(); + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1alpha1.HttpLoadBalancing http_load_balancing = 1; + */ + com.google.container.v1alpha1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder(); + + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + boolean hasHorizontalPodAutoscaling(); + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + com.google.container.v1alpha1.HorizontalPodAutoscaling getHorizontalPodAutoscaling(); + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1alpha1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + com.google.container.v1alpha1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder(); + + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + boolean hasKubernetesDashboard(); + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + com.google.container.v1alpha1.KubernetesDashboard getKubernetesDashboard(); + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1alpha1.KubernetesDashboard kubernetes_dashboard = 3; + */ + com.google.container.v1alpha1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder(); + + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + boolean hasNetworkPolicyConfig(); + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + com.google.container.v1alpha1.NetworkPolicyConfig getNetworkPolicyConfig(); + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicyConfig network_policy_config = 4; + */ + com.google.container.v1alpha1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AutoUpgradeOptions.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AutoUpgradeOptions.java new file mode 100644 index 000000000000..5462f2e73803 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AutoUpgradeOptions.java @@ -0,0 +1,755 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * AutoUpgradeOptions defines the set of options for the user to control how
+ * the Auto Upgrades will proceed.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.AutoUpgradeOptions} + */ +public final class AutoUpgradeOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.AutoUpgradeOptions) + AutoUpgradeOptionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use AutoUpgradeOptions.newBuilder() to construct. + private AutoUpgradeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AutoUpgradeOptions() { + autoUpgradeStartTime_ = ""; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AutoUpgradeOptions( + 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(); + + autoUpgradeStartTime_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AutoUpgradeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.AutoUpgradeOptions.class, com.google.container.v1alpha1.AutoUpgradeOptions.Builder.class); + } + + public static final int AUTO_UPGRADE_START_TIME_FIELD_NUMBER = 1; + private volatile java.lang.Object autoUpgradeStartTime_; + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + */ + public java.lang.String getAutoUpgradeStartTime() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoUpgradeStartTime_ = s; + return s; + } + } + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + */ + public com.google.protobuf.ByteString + getAutoUpgradeStartTimeBytes() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + autoUpgradeStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAutoUpgradeStartTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoUpgradeStartTime_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAutoUpgradeStartTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoUpgradeStartTime_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + 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.container.v1alpha1.AutoUpgradeOptions)) { + return super.equals(obj); + } + com.google.container.v1alpha1.AutoUpgradeOptions other = (com.google.container.v1alpha1.AutoUpgradeOptions) obj; + + boolean result = true; + result = result && getAutoUpgradeStartTime() + .equals(other.getAutoUpgradeStartTime()); + result = result && getDescription() + .equals(other.getDescription()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUTO_UPGRADE_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getAutoUpgradeStartTime().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.AutoUpgradeOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.AutoUpgradeOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.AutoUpgradeOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AutoUpgradeOptions defines the set of options for the user to control how
+   * the Auto Upgrades will proceed.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.AutoUpgradeOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.AutoUpgradeOptions) + com.google.container.v1alpha1.AutoUpgradeOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AutoUpgradeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.AutoUpgradeOptions.class, com.google.container.v1alpha1.AutoUpgradeOptions.Builder.class); + } + + // Construct using com.google.container.v1alpha1.AutoUpgradeOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + autoUpgradeStartTime_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.AutoUpgradeOptions getDefaultInstanceForType() { + return com.google.container.v1alpha1.AutoUpgradeOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.AutoUpgradeOptions build() { + com.google.container.v1alpha1.AutoUpgradeOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.AutoUpgradeOptions buildPartial() { + com.google.container.v1alpha1.AutoUpgradeOptions result = new com.google.container.v1alpha1.AutoUpgradeOptions(this); + result.autoUpgradeStartTime_ = autoUpgradeStartTime_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.AutoUpgradeOptions) { + return mergeFrom((com.google.container.v1alpha1.AutoUpgradeOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.AutoUpgradeOptions other) { + if (other == com.google.container.v1alpha1.AutoUpgradeOptions.getDefaultInstance()) return this; + if (!other.getAutoUpgradeStartTime().isEmpty()) { + autoUpgradeStartTime_ = other.autoUpgradeStartTime_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.AutoUpgradeOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.AutoUpgradeOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object autoUpgradeStartTime_ = ""; + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + */ + public java.lang.String getAutoUpgradeStartTime() { + java.lang.Object ref = autoUpgradeStartTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoUpgradeStartTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + */ + public com.google.protobuf.ByteString + getAutoUpgradeStartTimeBytes() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + autoUpgradeStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + */ + public Builder setAutoUpgradeStartTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + autoUpgradeStartTime_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + */ + public Builder clearAutoUpgradeStartTime() { + + autoUpgradeStartTime_ = getDefaultInstance().getAutoUpgradeStartTime(); + onChanged(); + return this; + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + */ + public Builder setAutoUpgradeStartTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + autoUpgradeStartTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.AutoUpgradeOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.AutoUpgradeOptions) + private static final com.google.container.v1alpha1.AutoUpgradeOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.AutoUpgradeOptions(); + } + + public static com.google.container.v1alpha1.AutoUpgradeOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoUpgradeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AutoUpgradeOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.AutoUpgradeOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AutoUpgradeOptionsOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AutoUpgradeOptionsOrBuilder.java new file mode 100644 index 000000000000..474a196b07d0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/AutoUpgradeOptionsOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface AutoUpgradeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.AutoUpgradeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + */ + java.lang.String getAutoUpgradeStartTime(); + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + */ + com.google.protobuf.ByteString + getAutoUpgradeStartTimeBytes(); + + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/BinaryAuthorization.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/BinaryAuthorization.java new file mode 100644 index 000000000000..07ed833bd2d7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/BinaryAuthorization.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration for Binary Authorization.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.BinaryAuthorization} + */ +public final class BinaryAuthorization extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.BinaryAuthorization) + BinaryAuthorizationOrBuilder { +private static final long serialVersionUID = 0L; + // Use BinaryAuthorization.newBuilder() to construct. + private BinaryAuthorization(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BinaryAuthorization() { + enabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BinaryAuthorization( + 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 8: { + + enabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_BinaryAuthorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.BinaryAuthorization.class, com.google.container.v1alpha1.BinaryAuthorization.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+   * Enable Binary Authorization for this cluster. If enabled, all container
+   * images will be validated by Google Binauthz.
+   * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + size += 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.container.v1alpha1.BinaryAuthorization)) { + return super.equals(obj); + } + com.google.container.v1alpha1.BinaryAuthorization other = (com.google.container.v1alpha1.BinaryAuthorization) obj; + + boolean result = true; + result = result && (getEnabled() + == other.getEnabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.BinaryAuthorization parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.BinaryAuthorization parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.BinaryAuthorization prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.BinaryAuthorization} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.BinaryAuthorization) + com.google.container.v1alpha1.BinaryAuthorizationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_BinaryAuthorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.BinaryAuthorization.class, com.google.container.v1alpha1.BinaryAuthorization.Builder.class); + } + + // Construct using com.google.container.v1alpha1.BinaryAuthorization.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.BinaryAuthorization getDefaultInstanceForType() { + return com.google.container.v1alpha1.BinaryAuthorization.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.BinaryAuthorization build() { + com.google.container.v1alpha1.BinaryAuthorization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.BinaryAuthorization buildPartial() { + com.google.container.v1alpha1.BinaryAuthorization result = new com.google.container.v1alpha1.BinaryAuthorization(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.BinaryAuthorization) { + return mergeFrom((com.google.container.v1alpha1.BinaryAuthorization)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.BinaryAuthorization other) { + if (other == com.google.container.v1alpha1.BinaryAuthorization.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.BinaryAuthorization parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.BinaryAuthorization) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Google Binauthz.
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Google Binauthz.
+     * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Google Binauthz.
+     * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.BinaryAuthorization) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.BinaryAuthorization) + private static final com.google.container.v1alpha1.BinaryAuthorization DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.BinaryAuthorization(); + } + + public static com.google.container.v1alpha1.BinaryAuthorization getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinaryAuthorization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinaryAuthorization(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.BinaryAuthorization getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/BinaryAuthorizationOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/BinaryAuthorizationOrBuilder.java new file mode 100644 index 000000000000..b28e003c38d2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/BinaryAuthorizationOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface BinaryAuthorizationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.BinaryAuthorization) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enable Binary Authorization for this cluster. If enabled, all container
+   * images will be validated by Google Binauthz.
+   * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CancelOperationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CancelOperationRequest.java new file mode 100644 index 000000000000..3230d812bbb2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CancelOperationRequest.java @@ -0,0 +1,1084 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * CancelOperationRequest cancels a single operation.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.CancelOperationRequest} + */ +public final class CancelOperationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.CancelOperationRequest) + CancelOperationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CancelOperationRequest.newBuilder() to construct. + private CancelOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CancelOperationRequest() { + projectId_ = ""; + zone_ = ""; + operationId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CancelOperationRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + operationId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CancelOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.CancelOperationRequest.class, com.google.container.v1alpha1.CancelOperationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object operationId_; + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.container.v1alpha1.CancelOperationRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.CancelOperationRequest other = (com.google.container.v1alpha1.CancelOperationRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getOperationId() + .equals(other.getOperationId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().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.container.v1alpha1.CancelOperationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CancelOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.CancelOperationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CancelOperationRequest cancels a single operation.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.CancelOperationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.CancelOperationRequest) + com.google.container.v1alpha1.CancelOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CancelOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.CancelOperationRequest.class, com.google.container.v1alpha1.CancelOperationRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.CancelOperationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + operationId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.CancelOperationRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.CancelOperationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.CancelOperationRequest build() { + com.google.container.v1alpha1.CancelOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.CancelOperationRequest buildPartial() { + com.google.container.v1alpha1.CancelOperationRequest result = new com.google.container.v1alpha1.CancelOperationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.operationId_ = operationId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.CancelOperationRequest) { + return mergeFrom((com.google.container.v1alpha1.CancelOperationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.CancelOperationRequest other) { + if (other == com.google.container.v1alpha1.CancelOperationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.CancelOperationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.CancelOperationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOperationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.CancelOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.CancelOperationRequest) + private static final com.google.container.v1alpha1.CancelOperationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.CancelOperationRequest(); + } + + public static com.google.container.v1alpha1.CancelOperationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CancelOperationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.CancelOperationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CancelOperationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CancelOperationRequestOrBuilder.java new file mode 100644 index 000000000000..c1ef71d032fc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CancelOperationRequestOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface CancelOperationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.CancelOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getOperationId(); + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getOperationIdBytes(); + + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClientCertificateConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClientCertificateConfig.java new file mode 100644 index 000000000000..b15397818252 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClientCertificateConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration for client certificates on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ClientCertificateConfig} + */ +public final class ClientCertificateConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ClientCertificateConfig) + ClientCertificateConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ClientCertificateConfig.newBuilder() to construct. + private ClientCertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClientCertificateConfig() { + issueClientCertificate_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientCertificateConfig( + 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 8: { + + issueClientCertificate_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClientCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ClientCertificateConfig.class, com.google.container.v1alpha1.ClientCertificateConfig.Builder.class); + } + + public static final int ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER = 1; + private boolean issueClientCertificate_; + /** + *
+   * Issue a client certificate.
+   * 
+ * + * bool issue_client_certificate = 1; + */ + public boolean getIssueClientCertificate() { + return issueClientCertificate_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (issueClientCertificate_ != false) { + output.writeBool(1, issueClientCertificate_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (issueClientCertificate_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, issueClientCertificate_); + } + 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.container.v1alpha1.ClientCertificateConfig)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ClientCertificateConfig other = (com.google.container.v1alpha1.ClientCertificateConfig) obj; + + boolean result = true; + result = result && (getIssueClientCertificate() + == other.getIssueClientCertificate()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIssueClientCertificate()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ClientCertificateConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ClientCertificateConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ClientCertificateConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for client certificates on the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ClientCertificateConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ClientCertificateConfig) + com.google.container.v1alpha1.ClientCertificateConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClientCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ClientCertificateConfig.class, com.google.container.v1alpha1.ClientCertificateConfig.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ClientCertificateConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + issueClientCertificate_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ClientCertificateConfig getDefaultInstanceForType() { + return com.google.container.v1alpha1.ClientCertificateConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ClientCertificateConfig build() { + com.google.container.v1alpha1.ClientCertificateConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ClientCertificateConfig buildPartial() { + com.google.container.v1alpha1.ClientCertificateConfig result = new com.google.container.v1alpha1.ClientCertificateConfig(this); + result.issueClientCertificate_ = issueClientCertificate_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ClientCertificateConfig) { + return mergeFrom((com.google.container.v1alpha1.ClientCertificateConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ClientCertificateConfig other) { + if (other == com.google.container.v1alpha1.ClientCertificateConfig.getDefaultInstance()) return this; + if (other.getIssueClientCertificate() != false) { + setIssueClientCertificate(other.getIssueClientCertificate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ClientCertificateConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ClientCertificateConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean issueClientCertificate_ ; + /** + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + */ + public boolean getIssueClientCertificate() { + return issueClientCertificate_; + } + /** + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + */ + public Builder setIssueClientCertificate(boolean value) { + + issueClientCertificate_ = value; + onChanged(); + return this; + } + /** + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + */ + public Builder clearIssueClientCertificate() { + + issueClientCertificate_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ClientCertificateConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ClientCertificateConfig) + private static final com.google.container.v1alpha1.ClientCertificateConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ClientCertificateConfig(); + } + + public static com.google.container.v1alpha1.ClientCertificateConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientCertificateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientCertificateConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ClientCertificateConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClientCertificateConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClientCertificateConfigOrBuilder.java new file mode 100644 index 000000000000..eee9afea523a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClientCertificateConfigOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ClientCertificateConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ClientCertificateConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Issue a client certificate.
+   * 
+ * + * bool issue_client_certificate = 1; + */ + boolean getIssueClientCertificate(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/Cluster.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/Cluster.java new file mode 100644 index 000000000000..e3c352d8d7d3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/Cluster.java @@ -0,0 +1,8767 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * A Google Kubernetes Engine cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.Cluster} + */ +public final class Cluster extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.Cluster) + ClusterOrBuilder { +private static final long serialVersionUID = 0L; + // Use Cluster.newBuilder() to construct. + private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Cluster() { + name_ = ""; + description_ = ""; + initialNodeCount_ = 0; + loggingService_ = ""; + monitoringService_ = ""; + network_ = ""; + clusterIpv4Cidr_ = ""; + subnetwork_ = ""; + nodePools_ = java.util.Collections.emptyList(); + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + enableKubernetesAlpha_ = false; + nodeSchedulingStrategy_ = 0; + selfLink_ = ""; + zone_ = ""; + endpoint_ = ""; + initialClusterVersion_ = ""; + currentMasterVersion_ = ""; + currentNodeVersion_ = ""; + createTime_ = ""; + status_ = 0; + statusMessage_ = ""; + nodeIpv4CidrSize_ = 0; + servicesIpv4Cidr_ = ""; + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + currentNodeCount_ = 0; + expireTime_ = ""; + location_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Cluster( + 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; + int mutable_bitField1_ = 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: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 24: { + + initialNodeCount_ = input.readInt32(); + break; + } + case 34: { + com.google.container.v1alpha1.NodeConfig.Builder subBuilder = null; + if (nodeConfig_ != null) { + subBuilder = nodeConfig_.toBuilder(); + } + nodeConfig_ = input.readMessage(com.google.container.v1alpha1.NodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeConfig_); + nodeConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.container.v1alpha1.MasterAuth.Builder subBuilder = null; + if (masterAuth_ != null) { + subBuilder = masterAuth_.toBuilder(); + } + masterAuth_ = input.readMessage(com.google.container.v1alpha1.MasterAuth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(masterAuth_); + masterAuth_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + loggingService_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + monitoringService_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterIpv4Cidr_ = s; + break; + } + case 82: { + com.google.container.v1alpha1.AddonsConfig.Builder subBuilder = null; + if (addonsConfig_ != null) { + subBuilder = addonsConfig_.toBuilder(); + } + addonsConfig_ = input.readMessage(com.google.container.v1alpha1.AddonsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(addonsConfig_); + addonsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + subnetwork_ = s; + break; + } + case 98: { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + nodePools_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + nodePools_.add( + input.readMessage(com.google.container.v1alpha1.NodePool.parser(), extensionRegistry)); + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00001000; + } + locations_.add(s); + break; + } + case 112: { + + enableKubernetesAlpha_ = input.readBool(); + break; + } + case 154: { + com.google.container.v1alpha1.NetworkPolicy.Builder subBuilder = null; + if (networkPolicy_ != null) { + subBuilder = networkPolicy_.toBuilder(); + } + networkPolicy_ = input.readMessage(com.google.container.v1alpha1.NetworkPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkPolicy_); + networkPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 162: { + com.google.container.v1alpha1.IPAllocationPolicy.Builder subBuilder = null; + if (ipAllocationPolicy_ != null) { + subBuilder = ipAllocationPolicy_.toBuilder(); + } + ipAllocationPolicy_ = input.readMessage(com.google.container.v1alpha1.IPAllocationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ipAllocationPolicy_); + ipAllocationPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 178: { + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder subBuilder = null; + if (masterAuthorizedNetworksConfig_ != null) { + subBuilder = masterAuthorizedNetworksConfig_.toBuilder(); + } + masterAuthorizedNetworksConfig_ = input.readMessage(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(masterAuthorizedNetworksConfig_); + masterAuthorizedNetworksConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 186: { + com.google.container.v1alpha1.MaintenancePolicy.Builder subBuilder = null; + if (maintenancePolicy_ != null) { + subBuilder = maintenancePolicy_.toBuilder(); + } + maintenancePolicy_ = input.readMessage(com.google.container.v1alpha1.MaintenancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenancePolicy_); + maintenancePolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 194: { + com.google.container.v1alpha1.BinaryAuthorization.Builder subBuilder = null; + if (binaryAuthorization_ != null) { + subBuilder = binaryAuthorization_.toBuilder(); + } + binaryAuthorization_ = input.readMessage(com.google.container.v1alpha1.BinaryAuthorization.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binaryAuthorization_); + binaryAuthorization_ = subBuilder.buildPartial(); + } + + break; + } + case 202: { + com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder subBuilder = null; + if (podSecurityPolicyConfig_ != null) { + subBuilder = podSecurityPolicyConfig_.toBuilder(); + } + podSecurityPolicyConfig_ = input.readMessage(com.google.container.v1alpha1.PodSecurityPolicyConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(podSecurityPolicyConfig_); + podSecurityPolicyConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 210: { + com.google.container.v1alpha1.ClusterAutoscaling.Builder subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = input.readMessage(com.google.container.v1alpha1.ClusterAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 258: { + com.google.container.v1alpha1.ManagedPodIdentityConfig.Builder subBuilder = null; + if (managedPodIdentityConfig_ != null) { + subBuilder = managedPodIdentityConfig_.toBuilder(); + } + managedPodIdentityConfig_ = input.readMessage(com.google.container.v1alpha1.ManagedPodIdentityConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(managedPodIdentityConfig_); + managedPodIdentityConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 280: { + int rawValue = input.readEnum(); + + nodeSchedulingStrategy_ = rawValue; + break; + } + case 298: { + com.google.container.v1alpha1.PrivateClusterConfig.Builder subBuilder = null; + if (privateClusterConfig_ != null) { + subBuilder = privateClusterConfig_.toBuilder(); + } + privateClusterConfig_ = input.readMessage(com.google.container.v1alpha1.PrivateClusterConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(privateClusterConfig_); + privateClusterConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + + selfLink_ = s; + break; + } + case 810: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 818: { + java.lang.String s = input.readStringRequireUtf8(); + + endpoint_ = s; + break; + } + case 826: { + java.lang.String s = input.readStringRequireUtf8(); + + initialClusterVersion_ = s; + break; + } + case 834: { + java.lang.String s = input.readStringRequireUtf8(); + + currentMasterVersion_ = s; + break; + } + case 842: { + java.lang.String s = input.readStringRequireUtf8(); + + currentNodeVersion_ = s; + break; + } + case 850: { + java.lang.String s = input.readStringRequireUtf8(); + + createTime_ = s; + break; + } + case 856: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 866: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 872: { + + nodeIpv4CidrSize_ = input.readInt32(); + break; + } + case 882: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesIpv4Cidr_ = s; + break; + } + case 890: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField1_ & 0x00000008) == 0x00000008)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField1_ |= 0x00000008; + } + instanceGroupUrls_.add(s); + break; + } + case 896: { + + currentNodeCount_ = input.readInt32(); + break; + } + case 906: { + java.lang.String s = input.readStringRequireUtf8(); + + expireTime_ = s; + break; + } + case 914: { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } + case 946: { + if (!((mutable_bitField1_ & 0x00000080) == 0x00000080)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x00000080; + } + conditions_.add( + input.readMessage(com.google.container.v1alpha1.StatusCondition.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + locations_ = locations_.getUnmodifiableView(); + } + if (((mutable_bitField1_ & 0x00000008) == 0x00000008)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + } + if (((mutable_bitField1_ & 0x00000080) == 0x00000080)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_Cluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.Cluster.class, com.google.container.v1alpha1.Cluster.Builder.class); + } + + /** + *
+   * The current status of the cluster.
+   * 
+ * + * Protobuf enum {@code google.container.v1alpha1.Cluster.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + *
+     * The PROVISIONING state indicates the cluster is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + *
+     * The RUNNING state indicates the cluster has been created and is fully
+     * usable.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the cluster, such as upgrading the master or node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 3; + */ + RECONCILING(3), + /** + *
+     * The STOPPING state indicates the cluster is being deleted.
+     * 
+ * + * STOPPING = 4; + */ + STOPPING(4), + /** + *
+     * The ERROR state indicates the cluster may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 5; + */ + ERROR(5), + /** + *
+     * The DEGRADED state indicates the cluster requires user action to restore
+     * full functionality. Details can be found in the `statusMessage` field.
+     * 
+ * + * DEGRADED = 6; + */ + DEGRADED(6), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+     * The PROVISIONING state indicates the cluster is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + *
+     * The RUNNING state indicates the cluster has been created and is fully
+     * usable.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the cluster, such as upgrading the master or node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 3; + */ + public static final int RECONCILING_VALUE = 3; + /** + *
+     * The STOPPING state indicates the cluster is being deleted.
+     * 
+ * + * STOPPING = 4; + */ + public static final int STOPPING_VALUE = 4; + /** + *
+     * The ERROR state indicates the cluster may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 5; + */ + public static final int ERROR_VALUE = 5; + /** + *
+     * The DEGRADED state indicates the cluster requires user action to restore
+     * full functionality. Details can be found in the `statusMessage` field.
+     * 
+ * + * DEGRADED = 6; + */ + public static final int DEGRADED_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return RUNNING; + case 3: return RECONCILING; + case 4: return STOPPING; + case 5: return ERROR; + case 6: return DEGRADED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1alpha1.Cluster.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1alpha1.Cluster.Status) + } + + /** + *
+   * Defines possible options for node_scheduling_strategy field.
+   * 
+ * + * Protobuf enum {@code google.container.v1alpha1.Cluster.NodeSchedulingStrategy} + */ + public enum NodeSchedulingStrategy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Use default scheduling strategy.
+     * 
+ * + * STRATEGY_UNSPECIFIED = 0; + */ + STRATEGY_UNSPECIFIED(0), + /** + *
+     * Least utilized nodes will be prioritized by k8s scheduler.
+     * 
+ * + * PRIORITIZE_LEAST_UTILIZED = 1; + */ + PRIORITIZE_LEAST_UTILIZED(1), + /** + *
+     * Nodes with medium utilization will be prioritized by k8s scheduler.
+     * This option improves interoperability of scheduler with cluster
+     * autoscaler.
+     * 
+ * + * PRIORITIZE_MEDIUM_UTILIZED = 2; + */ + PRIORITIZE_MEDIUM_UTILIZED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Use default scheduling strategy.
+     * 
+ * + * STRATEGY_UNSPECIFIED = 0; + */ + public static final int STRATEGY_UNSPECIFIED_VALUE = 0; + /** + *
+     * Least utilized nodes will be prioritized by k8s scheduler.
+     * 
+ * + * PRIORITIZE_LEAST_UTILIZED = 1; + */ + public static final int PRIORITIZE_LEAST_UTILIZED_VALUE = 1; + /** + *
+     * Nodes with medium utilization will be prioritized by k8s scheduler.
+     * This option improves interoperability of scheduler with cluster
+     * autoscaler.
+     * 
+ * + * PRIORITIZE_MEDIUM_UTILIZED = 2; + */ + public static final int PRIORITIZE_MEDIUM_UTILIZED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NodeSchedulingStrategy valueOf(int value) { + return forNumber(value); + } + + public static NodeSchedulingStrategy forNumber(int value) { + switch (value) { + case 0: return STRATEGY_UNSPECIFIED; + case 1: return PRIORITIZE_LEAST_UTILIZED; + case 2: return PRIORITIZE_MEDIUM_UTILIZED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NodeSchedulingStrategy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodeSchedulingStrategy findValueByNumber(int number) { + return NodeSchedulingStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1alpha1.Cluster.getDescriptor().getEnumTypes().get(1); + } + + private static final NodeSchedulingStrategy[] VALUES = values(); + + public static NodeSchedulingStrategy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NodeSchedulingStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1alpha1.Cluster.NodeSchedulingStrategy) + } + + private int bitField0_; + private int bitField1_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of this cluster. The name must be unique within this project
+   * and zone, and can be up to 40 characters with the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of this cluster. The name must be unique within this project
+   * and zone, and can be up to 40 characters with the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_; + /** + *
+   * The number of nodes to create in this cluster. You must ensure that your
+   * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "node_config") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * 
+ * + * int32 initial_node_count = 3; + */ + public int getInitialNodeCount() { + return initialNodeCount_; + } + + public static final int NODE_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1alpha1.NodeConfig nodeConfig_; + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public boolean hasNodeConfig() { + return nodeConfig_ != null; + } + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public com.google.container.v1alpha1.NodeConfig getNodeConfig() { + return nodeConfig_ == null ? com.google.container.v1alpha1.NodeConfig.getDefaultInstance() : nodeConfig_; + } + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public com.google.container.v1alpha1.NodeConfigOrBuilder getNodeConfigOrBuilder() { + return getNodeConfig(); + } + + public static final int MASTER_AUTH_FIELD_NUMBER = 5; + private com.google.container.v1alpha1.MasterAuth masterAuth_; + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public boolean hasMasterAuth() { + return masterAuth_ != null; + } + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public com.google.container.v1alpha1.MasterAuth getMasterAuth() { + return masterAuth_ == null ? com.google.container.v1alpha1.MasterAuth.getDefaultInstance() : masterAuth_; + } + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public com.google.container.v1alpha1.MasterAuthOrBuilder getMasterAuthOrBuilder() { + return getMasterAuth(); + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; + private volatile java.lang.Object loggingService_; + /** + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `none` - no logs will be exported from the cluster.
+   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * 
+ * + * string logging_service = 6; + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } + } + /** + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `none` - no logs will be exported from the cluster.
+   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * 
+ * + * string logging_service = 6; + */ + public com.google.protobuf.ByteString + getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONITORING_SERVICE_FIELD_NUMBER = 7; + private volatile java.lang.Object monitoringService_; + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+   * * `none` - no metrics will be exported from the cluster.
+   * * if left as an empty string, `monitoring.googleapis.com` will be used.
+   * 
+ * + * string monitoring_service = 7; + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } + } + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+   * * `none` - no metrics will be exported from the cluster.
+   * * if left as an empty string, `monitoring.googleapis.com` will be used.
+   * 
+ * + * string monitoring_service = 7; + */ + public com.google.protobuf.ByteString + getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 8; + private volatile java.lang.Object network_; + /** + *
+   * The name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * cluster is connected. If left unspecified, the `default` network
+   * will be used.
+   * 
+ * + * string network = 8; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + *
+   * The name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * cluster is connected. If left unspecified, the `default` network
+   * will be used.
+   * 
+ * + * string network = 8; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 9; + private volatile java.lang.Object clusterIpv4Cidr_; + /** + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } + } + /** + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public com.google.protobuf.ByteString + getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDONS_CONFIG_FIELD_NUMBER = 10; + private com.google.container.v1alpha1.AddonsConfig addonsConfig_; + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public boolean hasAddonsConfig() { + return addonsConfig_ != null; + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1alpha1.AddonsConfig getAddonsConfig() { + return addonsConfig_ == null ? com.google.container.v1alpha1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1alpha1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + return getAddonsConfig(); + } + + public static final int SUBNETWORK_FIELD_NUMBER = 11; + private volatile java.lang.Object subnetwork_; + /** + *
+   * The name of the Google Compute Engine
+   * [subnetwork](/compute/docs/subnetworks) to which the
+   * cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + *
+   * The name of the Google Compute Engine
+   * [subnetwork](/compute/docs/subnetworks) to which the
+   * cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOLS_FIELD_NUMBER = 12; + private java.util.List nodePools_; + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public java.util.List getNodePoolsList() { + return nodePools_; + } + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsOrBuilderList() { + return nodePools_; + } + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public int getNodePoolsCount() { + return nodePools_.size(); + } + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public com.google.container.v1alpha1.NodePool getNodePools(int index) { + return nodePools_.get(index); + } + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public com.google.container.v1alpha1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index) { + return nodePools_.get(index); + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + public com.google.protobuf.ProtocolStringList + getLocationsList() { + return locations_; + } + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + public com.google.protobuf.ByteString + getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER = 14; + private boolean enableKubernetesAlpha_; + /** + *
+   * Kubernetes alpha features are enabled on this cluster. This includes alpha
+   * API groups (e.g. v1alpha1) and features that may not be production ready in
+   * the kubernetes version of the master and nodes.
+   * The cluster has no SLA for uptime and master/node upgrades are disabled.
+   * Alpha enabled clusters are automatically deleted thirty days after
+   * creation.
+   * 
+ * + * bool enable_kubernetes_alpha = 14; + */ + public boolean getEnableKubernetesAlpha() { + return enableKubernetesAlpha_; + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 19; + private com.google.container.v1alpha1.NetworkPolicy networkPolicy_; + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public boolean hasNetworkPolicy() { + return networkPolicy_ != null; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1alpha1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null ? com.google.container.v1alpha1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1alpha1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return getNetworkPolicy(); + } + + public static final int IP_ALLOCATION_POLICY_FIELD_NUMBER = 20; + private com.google.container.v1alpha1.IPAllocationPolicy ipAllocationPolicy_; + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public boolean hasIpAllocationPolicy() { + return ipAllocationPolicy_ != null; + } + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1alpha1.IPAllocationPolicy getIpAllocationPolicy() { + return ipAllocationPolicy_ == null ? com.google.container.v1alpha1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1alpha1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { + return getIpAllocationPolicy(); + } + + public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1alpha1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ != null; + } + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ == null ? com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder() { + return getMasterAuthorizedNetworksConfig(); + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 23; + private com.google.container.v1alpha1.MaintenancePolicy maintenancePolicy_; + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicy_ != null; + } + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1alpha1.MaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null ? com.google.container.v1alpha1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1alpha1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + return getMaintenancePolicy(); + } + + public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 24; + private com.google.container.v1alpha1.BinaryAuthorization binaryAuthorization_; + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public boolean hasBinaryAuthorization() { + return binaryAuthorization_ != null; + } + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1alpha1.BinaryAuthorization getBinaryAuthorization() { + return binaryAuthorization_ == null ? com.google.container.v1alpha1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1alpha1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { + return getBinaryAuthorization(); + } + + public static final int POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1alpha1.PodSecurityPolicyConfig podSecurityPolicyConfig_; + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public boolean hasPodSecurityPolicyConfig() { + return podSecurityPolicyConfig_ != null; + } + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1alpha1.PodSecurityPolicyConfig getPodSecurityPolicyConfig() { + return podSecurityPolicyConfig_ == null ? com.google.container.v1alpha1.PodSecurityPolicyConfig.getDefaultInstance() : podSecurityPolicyConfig_; + } + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder getPodSecurityPolicyConfigOrBuilder() { + return getPodSecurityPolicyConfig(); + } + + public static final int AUTOSCALING_FIELD_NUMBER = 26; + private com.google.container.v1alpha1.ClusterAutoscaling autoscaling_; + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1alpha1.ClusterAutoscaling getAutoscaling() { + return autoscaling_ == null ? com.google.container.v1alpha1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1alpha1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int MANAGED_POD_IDENTITY_CONFIG_FIELD_NUMBER = 32; + private com.google.container.v1alpha1.ManagedPodIdentityConfig managedPodIdentityConfig_; + /** + *
+   * Configuration for the use of GCP IAM Service Accounts in applications in
+   * this cluster.
+   * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public boolean hasManagedPodIdentityConfig() { + return managedPodIdentityConfig_ != null; + } + /** + *
+   * Configuration for the use of GCP IAM Service Accounts in applications in
+   * this cluster.
+   * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public com.google.container.v1alpha1.ManagedPodIdentityConfig getManagedPodIdentityConfig() { + return managedPodIdentityConfig_ == null ? com.google.container.v1alpha1.ManagedPodIdentityConfig.getDefaultInstance() : managedPodIdentityConfig_; + } + /** + *
+   * Configuration for the use of GCP IAM Service Accounts in applications in
+   * this cluster.
+   * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public com.google.container.v1alpha1.ManagedPodIdentityConfigOrBuilder getManagedPodIdentityConfigOrBuilder() { + return getManagedPodIdentityConfig(); + } + + public static final int NODE_SCHEDULING_STRATEGY_FIELD_NUMBER = 35; + private int nodeSchedulingStrategy_; + /** + *
+   * Defines behaviour of k8s scheduler.
+   * 
+ * + * .google.container.v1alpha1.Cluster.NodeSchedulingStrategy node_scheduling_strategy = 35; + */ + public int getNodeSchedulingStrategyValue() { + return nodeSchedulingStrategy_; + } + /** + *
+   * Defines behaviour of k8s scheduler.
+   * 
+ * + * .google.container.v1alpha1.Cluster.NodeSchedulingStrategy node_scheduling_strategy = 35; + */ + public com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy getNodeSchedulingStrategy() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy result = com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy.valueOf(nodeSchedulingStrategy_); + return result == null ? com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy.UNRECOGNIZED : result; + } + + public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 37; + private com.google.container.v1alpha1.PrivateClusterConfig privateClusterConfig_; + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public boolean hasPrivateClusterConfig() { + return privateClusterConfig_ != null; + } + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1alpha1.PrivateClusterConfig getPrivateClusterConfig() { + return privateClusterConfig_ == null ? com.google.container.v1alpha1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1alpha1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + return getPrivateClusterConfig(); + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + private volatile java.lang.Object selfLink_; + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 101; + private volatile java.lang.Object zone_; + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINT_FIELD_NUMBER = 102; + private volatile java.lang.Object endpoint_; + /** + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } + } + /** + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + */ + public com.google.protobuf.ByteString + getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_CLUSTER_VERSION_FIELD_NUMBER = 103; + private volatile java.lang.Object initialClusterVersion_; + /** + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + */ + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } + } + /** + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + */ + public com.google.protobuf.ByteString + getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_MASTER_VERSION_FIELD_NUMBER = 104; + private volatile java.lang.Object currentMasterVersion_; + /** + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + */ + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } + } + /** + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + */ + public com.google.protobuf.ByteString + getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_NODE_VERSION_FIELD_NUMBER = 105; + private volatile java.lang.Object currentNodeVersion_; + /** + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1alpha1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components.
+   * If they are currently at multiple versions because they're in the process
+   * of being upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getCurrentNodeVersion() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentNodeVersion_ = s; + return s; + } + } + /** + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1alpha1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components.
+   * If they are currently at multiple versions because they're in the process
+   * of being upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getCurrentNodeVersionBytes() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 106; + private volatile java.lang.Object createTime_; + /** + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + */ + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } + } + /** + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + */ + public com.google.protobuf.ByteString + getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 107; + private int status_; + /** + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1alpha1.Cluster.Status status = 107; + */ + public int getStatusValue() { + return status_; + } + /** + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1alpha1.Cluster.Status status = 107; + */ + public com.google.container.v1alpha1.Cluster.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.Cluster.Status result = com.google.container.v1alpha1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1alpha1.Cluster.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; + private volatile java.lang.Object statusMessage_; + /** + *
+   * [Output only] Additional information about the current status of this
+   * cluster, if available.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 108 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + *
+   * [Output only] Additional information about the current status of this
+   * cluster, if available.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 108 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_SIZE_FIELD_NUMBER = 109; + private int nodeIpv4CidrSize_; + /** + *
+   * [Output only] The size of the address space on each node for hosting
+   * containers. This is provisioned from within the `container_ipv4_cidr`
+   * range.
+   * 
+ * + * int32 node_ipv4_cidr_size = 109; + */ + public int getNodeIpv4CidrSize() { + return nodeIpv4CidrSize_; + } + + public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 110; + private volatile java.lang.Object servicesIpv4Cidr_; + /** + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + */ + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } + } + /** + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + */ + public com.google.protobuf.ByteString + getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 111; + private com.google.protobuf.LazyStringList instanceGroupUrls_; + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + return instanceGroupUrls_; + } + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + + public static final int CURRENT_NODE_COUNT_FIELD_NUMBER = 112; + private int currentNodeCount_; + /** + *
+   * [Output only] The number of nodes currently in the cluster.
+   * 
+ * + * int32 current_node_count = 112; + */ + public int getCurrentNodeCount() { + return currentNodeCount_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 113; + private volatile java.lang.Object expireTime_; + /** + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + */ + public java.lang.String getExpireTime() { + java.lang.Object ref = expireTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireTime_ = s; + return s; + } + } + /** + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + */ + public com.google.protobuf.ByteString + getExpireTimeBytes() { + java.lang.Object ref = expireTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expireTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 114; + private volatile java.lang.Object location_; + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONDITIONS_FIELD_NUMBER = 118; + private java.util.List conditions_; + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public com.google.container.v1alpha1.StatusCondition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public com.google.container.v1alpha1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (nodeConfig_ != null) { + output.writeMessage(4, getNodeConfig()); + } + if (masterAuth_ != null) { + output.writeMessage(5, getMasterAuth()); + } + if (!getLoggingServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); + } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); + } + if (addonsConfig_ != null) { + output.writeMessage(10, getAddonsConfig()); + } + if (!getSubnetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(12, nodePools_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (enableKubernetesAlpha_ != false) { + output.writeBool(14, enableKubernetesAlpha_); + } + if (networkPolicy_ != null) { + output.writeMessage(19, getNetworkPolicy()); + } + if (ipAllocationPolicy_ != null) { + output.writeMessage(20, getIpAllocationPolicy()); + } + if (masterAuthorizedNetworksConfig_ != null) { + output.writeMessage(22, getMasterAuthorizedNetworksConfig()); + } + if (maintenancePolicy_ != null) { + output.writeMessage(23, getMaintenancePolicy()); + } + if (binaryAuthorization_ != null) { + output.writeMessage(24, getBinaryAuthorization()); + } + if (podSecurityPolicyConfig_ != null) { + output.writeMessage(25, getPodSecurityPolicyConfig()); + } + if (autoscaling_ != null) { + output.writeMessage(26, getAutoscaling()); + } + if (managedPodIdentityConfig_ != null) { + output.writeMessage(32, getManagedPodIdentityConfig()); + } + if (nodeSchedulingStrategy_ != com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy.STRATEGY_UNSPECIFIED.getNumber()) { + output.writeEnum(35, nodeSchedulingStrategy_); + } + if (privateClusterConfig_ != null) { + output.writeMessage(37, getPrivateClusterConfig()); + } + if (!getSelfLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, zone_); + } + if (!getEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, endpoint_); + } + if (!getInitialClusterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 103, initialClusterVersion_); + } + if (!getCurrentMasterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 104, currentMasterVersion_); + } + if (!getCurrentNodeVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 105, currentNodeVersion_); + } + if (!getCreateTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 106, createTime_); + } + if (status_ != com.google.container.v1alpha1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(107, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 108, statusMessage_); + } + if (nodeIpv4CidrSize_ != 0) { + output.writeInt32(109, nodeIpv4CidrSize_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 110, servicesIpv4Cidr_); + } + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 111, instanceGroupUrls_.getRaw(i)); + } + if (currentNodeCount_ != 0) { + output.writeInt32(112, currentNodeCount_); + } + if (!getExpireTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 113, expireTime_); + } + if (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 114, location_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(118, conditions_.get(i)); + } + 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 (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, initialNodeCount_); + } + if (nodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNodeConfig()); + } + if (masterAuth_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMasterAuth()); + } + if (!getLoggingServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, loggingService_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, monitoringService_); + } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4Cidr_); + } + if (addonsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getAddonsConfig()); + } + if (!getSubnetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, nodePools_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (enableKubernetesAlpha_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, enableKubernetesAlpha_); + } + if (networkPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getNetworkPolicy()); + } + if (ipAllocationPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getIpAllocationPolicy()); + } + if (masterAuthorizedNetworksConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getMasterAuthorizedNetworksConfig()); + } + if (maintenancePolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getMaintenancePolicy()); + } + if (binaryAuthorization_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getBinaryAuthorization()); + } + if (podSecurityPolicyConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getPodSecurityPolicyConfig()); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getAutoscaling()); + } + if (managedPodIdentityConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, getManagedPodIdentityConfig()); + } + if (nodeSchedulingStrategy_ != com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy.STRATEGY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(35, nodeSchedulingStrategy_); + } + if (privateClusterConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(37, getPrivateClusterConfig()); + } + if (!getSelfLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, zone_); + } + if (!getEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, endpoint_); + } + if (!getInitialClusterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, initialClusterVersion_); + } + if (!getCurrentMasterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, currentMasterVersion_); + } + if (!getCurrentNodeVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(105, currentNodeVersion_); + } + if (!getCreateTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(106, createTime_); + } + if (status_ != com.google.container.v1alpha1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(107, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(108, statusMessage_); + } + if (nodeIpv4CidrSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(109, nodeIpv4CidrSize_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(110, servicesIpv4Cidr_); + } + { + int dataSize = 0; + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(instanceGroupUrls_.getRaw(i)); + } + size += dataSize; + size += 2 * getInstanceGroupUrlsList().size(); + } + if (currentNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(112, currentNodeCount_); + } + if (!getExpireTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(113, expireTime_); + } + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114, location_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(118, conditions_.get(i)); + } + 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.container.v1alpha1.Cluster)) { + return super.equals(obj); + } + com.google.container.v1alpha1.Cluster other = (com.google.container.v1alpha1.Cluster) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getDescription() + .equals(other.getDescription()); + result = result && (getInitialNodeCount() + == other.getInitialNodeCount()); + result = result && (hasNodeConfig() == other.hasNodeConfig()); + if (hasNodeConfig()) { + result = result && getNodeConfig() + .equals(other.getNodeConfig()); + } + result = result && (hasMasterAuth() == other.hasMasterAuth()); + if (hasMasterAuth()) { + result = result && getMasterAuth() + .equals(other.getMasterAuth()); + } + result = result && getLoggingService() + .equals(other.getLoggingService()); + result = result && getMonitoringService() + .equals(other.getMonitoringService()); + result = result && getNetwork() + .equals(other.getNetwork()); + result = result && getClusterIpv4Cidr() + .equals(other.getClusterIpv4Cidr()); + result = result && (hasAddonsConfig() == other.hasAddonsConfig()); + if (hasAddonsConfig()) { + result = result && getAddonsConfig() + .equals(other.getAddonsConfig()); + } + result = result && getSubnetwork() + .equals(other.getSubnetwork()); + result = result && getNodePoolsList() + .equals(other.getNodePoolsList()); + result = result && getLocationsList() + .equals(other.getLocationsList()); + result = result && (getEnableKubernetesAlpha() + == other.getEnableKubernetesAlpha()); + result = result && (hasNetworkPolicy() == other.hasNetworkPolicy()); + if (hasNetworkPolicy()) { + result = result && getNetworkPolicy() + .equals(other.getNetworkPolicy()); + } + result = result && (hasIpAllocationPolicy() == other.hasIpAllocationPolicy()); + if (hasIpAllocationPolicy()) { + result = result && getIpAllocationPolicy() + .equals(other.getIpAllocationPolicy()); + } + result = result && (hasMasterAuthorizedNetworksConfig() == other.hasMasterAuthorizedNetworksConfig()); + if (hasMasterAuthorizedNetworksConfig()) { + result = result && getMasterAuthorizedNetworksConfig() + .equals(other.getMasterAuthorizedNetworksConfig()); + } + result = result && (hasMaintenancePolicy() == other.hasMaintenancePolicy()); + if (hasMaintenancePolicy()) { + result = result && getMaintenancePolicy() + .equals(other.getMaintenancePolicy()); + } + result = result && (hasBinaryAuthorization() == other.hasBinaryAuthorization()); + if (hasBinaryAuthorization()) { + result = result && getBinaryAuthorization() + .equals(other.getBinaryAuthorization()); + } + result = result && (hasPodSecurityPolicyConfig() == other.hasPodSecurityPolicyConfig()); + if (hasPodSecurityPolicyConfig()) { + result = result && getPodSecurityPolicyConfig() + .equals(other.getPodSecurityPolicyConfig()); + } + result = result && (hasAutoscaling() == other.hasAutoscaling()); + if (hasAutoscaling()) { + result = result && getAutoscaling() + .equals(other.getAutoscaling()); + } + result = result && (hasManagedPodIdentityConfig() == other.hasManagedPodIdentityConfig()); + if (hasManagedPodIdentityConfig()) { + result = result && getManagedPodIdentityConfig() + .equals(other.getManagedPodIdentityConfig()); + } + result = result && nodeSchedulingStrategy_ == other.nodeSchedulingStrategy_; + result = result && (hasPrivateClusterConfig() == other.hasPrivateClusterConfig()); + if (hasPrivateClusterConfig()) { + result = result && getPrivateClusterConfig() + .equals(other.getPrivateClusterConfig()); + } + result = result && getSelfLink() + .equals(other.getSelfLink()); + result = result && getZone() + .equals(other.getZone()); + result = result && getEndpoint() + .equals(other.getEndpoint()); + result = result && getInitialClusterVersion() + .equals(other.getInitialClusterVersion()); + result = result && getCurrentMasterVersion() + .equals(other.getCurrentMasterVersion()); + result = result && getCurrentNodeVersion() + .equals(other.getCurrentNodeVersion()); + result = result && getCreateTime() + .equals(other.getCreateTime()); + result = result && status_ == other.status_; + result = result && getStatusMessage() + .equals(other.getStatusMessage()); + result = result && (getNodeIpv4CidrSize() + == other.getNodeIpv4CidrSize()); + result = result && getServicesIpv4Cidr() + .equals(other.getServicesIpv4Cidr()); + result = result && getInstanceGroupUrlsList() + .equals(other.getInstanceGroupUrlsList()); + result = result && (getCurrentNodeCount() + == other.getCurrentNodeCount()); + result = result && getExpireTime() + .equals(other.getExpireTime()); + result = result && getLocation() + .equals(other.getLocation()); + result = result && getConditionsList() + .equals(other.getConditionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInitialNodeCount(); + if (hasNodeConfig()) { + hash = (37 * hash) + NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodeConfig().hashCode(); + } + if (hasMasterAuth()) { + hash = (37 * hash) + MASTER_AUTH_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuth().hashCode(); + } + hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getLoggingService().hashCode(); + hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringService().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); + if (hasAddonsConfig()) { + hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAddonsConfig().hashCode(); + } + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + if (getNodePoolsCount() > 0) { + hash = (37 * hash) + NODE_POOLS_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolsList().hashCode(); + } + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (37 * hash) + ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableKubernetesAlpha()); + if (hasNetworkPolicy()) { + hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicy().hashCode(); + } + if (hasIpAllocationPolicy()) { + hash = (37 * hash) + IP_ALLOCATION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getIpAllocationPolicy().hashCode(); + } + if (hasMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuthorizedNetworksConfig().hashCode(); + } + if (hasMaintenancePolicy()) { + hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMaintenancePolicy().hashCode(); + } + if (hasBinaryAuthorization()) { + hash = (37 * hash) + BINARY_AUTHORIZATION_FIELD_NUMBER; + hash = (53 * hash) + getBinaryAuthorization().hashCode(); + } + if (hasPodSecurityPolicyConfig()) { + hash = (37 * hash) + POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPodSecurityPolicyConfig().hashCode(); + } + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().hashCode(); + } + if (hasManagedPodIdentityConfig()) { + hash = (37 * hash) + MANAGED_POD_IDENTITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getManagedPodIdentityConfig().hashCode(); + } + hash = (37 * hash) + NODE_SCHEDULING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + nodeSchedulingStrategy_; + if (hasPrivateClusterConfig()) { + hash = (37 * hash) + PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivateClusterConfig().hashCode(); + } + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + hash = (37 * hash) + INITIAL_CLUSTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getInitialClusterVersion().hashCode(); + hash = (37 * hash) + CURRENT_MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCurrentMasterVersion().hashCode(); + hash = (37 * hash) + CURRENT_NODE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCurrentNodeVersion().hashCode(); + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + NODE_IPV4_CIDR_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getNodeIpv4CidrSize(); + hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); + if (getInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); + } + hash = (37 * hash) + CURRENT_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCurrentNodeCount(); + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.Cluster parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.Cluster parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.Cluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.Cluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.Cluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.Cluster parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.Cluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.Cluster parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.Cluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.Cluster parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.Cluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A Google Kubernetes Engine cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.Cluster} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.Cluster) + com.google.container.v1alpha1.ClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_Cluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.Cluster.class, com.google.container.v1alpha1.Cluster.Builder.class); + } + + // Construct using com.google.container.v1alpha1.Cluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodePoolsFieldBuilder(); + getConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + initialNodeCount_ = 0; + + if (nodeConfigBuilder_ == null) { + nodeConfig_ = null; + } else { + nodeConfig_ = null; + nodeConfigBuilder_ = null; + } + if (masterAuthBuilder_ == null) { + masterAuth_ = null; + } else { + masterAuth_ = null; + masterAuthBuilder_ = null; + } + loggingService_ = ""; + + monitoringService_ = ""; + + network_ = ""; + + clusterIpv4Cidr_ = ""; + + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + subnetwork_ = ""; + + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + nodePoolsBuilder_.clear(); + } + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + enableKubernetesAlpha_ = false; + + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = null; + } else { + ipAllocationPolicy_ = null; + ipAllocationPolicyBuilder_ = null; + } + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = null; + } else { + masterAuthorizedNetworksConfig_ = null; + masterAuthorizedNetworksConfigBuilder_ = null; + } + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = null; + } else { + podSecurityPolicyConfig_ = null; + podSecurityPolicyConfigBuilder_ = null; + } + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + if (managedPodIdentityConfigBuilder_ == null) { + managedPodIdentityConfig_ = null; + } else { + managedPodIdentityConfig_ = null; + managedPodIdentityConfigBuilder_ = null; + } + nodeSchedulingStrategy_ = 0; + + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = null; + } else { + privateClusterConfig_ = null; + privateClusterConfigBuilder_ = null; + } + selfLink_ = ""; + + zone_ = ""; + + endpoint_ = ""; + + initialClusterVersion_ = ""; + + currentMasterVersion_ = ""; + + currentNodeVersion_ = ""; + + createTime_ = ""; + + status_ = 0; + + statusMessage_ = ""; + + nodeIpv4CidrSize_ = 0; + + servicesIpv4Cidr_ = ""; + + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField1_ = (bitField1_ & ~0x00000008); + currentNodeCount_ = 0; + + expireTime_ = ""; + + location_ = ""; + + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000080); + } else { + conditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_Cluster_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.Cluster getDefaultInstanceForType() { + return com.google.container.v1alpha1.Cluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.Cluster build() { + com.google.container.v1alpha1.Cluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.Cluster buildPartial() { + com.google.container.v1alpha1.Cluster result = new com.google.container.v1alpha1.Cluster(this); + int from_bitField0_ = bitField0_; + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + int to_bitField1_ = 0; + result.name_ = name_; + result.description_ = description_; + result.initialNodeCount_ = initialNodeCount_; + if (nodeConfigBuilder_ == null) { + result.nodeConfig_ = nodeConfig_; + } else { + result.nodeConfig_ = nodeConfigBuilder_.build(); + } + if (masterAuthBuilder_ == null) { + result.masterAuth_ = masterAuth_; + } else { + result.masterAuth_ = masterAuthBuilder_.build(); + } + result.loggingService_ = loggingService_; + result.monitoringService_ = monitoringService_; + result.network_ = network_; + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + if (addonsConfigBuilder_ == null) { + result.addonsConfig_ = addonsConfig_; + } else { + result.addonsConfig_ = addonsConfigBuilder_.build(); + } + result.subnetwork_ = subnetwork_; + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.locations_ = locations_; + result.enableKubernetesAlpha_ = enableKubernetesAlpha_; + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + if (ipAllocationPolicyBuilder_ == null) { + result.ipAllocationPolicy_ = ipAllocationPolicy_; + } else { + result.ipAllocationPolicy_ = ipAllocationPolicyBuilder_.build(); + } + if (masterAuthorizedNetworksConfigBuilder_ == null) { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfig_; + } else { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfigBuilder_.build(); + } + if (maintenancePolicyBuilder_ == null) { + result.maintenancePolicy_ = maintenancePolicy_; + } else { + result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); + } + if (binaryAuthorizationBuilder_ == null) { + result.binaryAuthorization_ = binaryAuthorization_; + } else { + result.binaryAuthorization_ = binaryAuthorizationBuilder_.build(); + } + if (podSecurityPolicyConfigBuilder_ == null) { + result.podSecurityPolicyConfig_ = podSecurityPolicyConfig_; + } else { + result.podSecurityPolicyConfig_ = podSecurityPolicyConfigBuilder_.build(); + } + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + if (managedPodIdentityConfigBuilder_ == null) { + result.managedPodIdentityConfig_ = managedPodIdentityConfig_; + } else { + result.managedPodIdentityConfig_ = managedPodIdentityConfigBuilder_.build(); + } + result.nodeSchedulingStrategy_ = nodeSchedulingStrategy_; + if (privateClusterConfigBuilder_ == null) { + result.privateClusterConfig_ = privateClusterConfig_; + } else { + result.privateClusterConfig_ = privateClusterConfigBuilder_.build(); + } + result.selfLink_ = selfLink_; + result.zone_ = zone_; + result.endpoint_ = endpoint_; + result.initialClusterVersion_ = initialClusterVersion_; + result.currentMasterVersion_ = currentMasterVersion_; + result.currentNodeVersion_ = currentNodeVersion_; + result.createTime_ = createTime_; + result.status_ = status_; + result.statusMessage_ = statusMessage_; + result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + if (((bitField1_ & 0x00000008) == 0x00000008)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + bitField1_ = (bitField1_ & ~0x00000008); + } + result.instanceGroupUrls_ = instanceGroupUrls_; + result.currentNodeCount_ = currentNodeCount_; + result.expireTime_ = expireTime_; + result.location_ = location_; + if (conditionsBuilder_ == null) { + if (((bitField1_ & 0x00000080) == 0x00000080)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField1_ = (bitField1_ & ~0x00000080); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.bitField1_ = to_bitField1_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.Cluster) { + return mergeFrom((com.google.container.v1alpha1.Cluster)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.Cluster other) { + if (other == com.google.container.v1alpha1.Cluster.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getInitialNodeCount() != 0) { + setInitialNodeCount(other.getInitialNodeCount()); + } + if (other.hasNodeConfig()) { + mergeNodeConfig(other.getNodeConfig()); + } + if (other.hasMasterAuth()) { + mergeMasterAuth(other.getMasterAuth()); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000800); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodePoolsFieldBuilder() : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.getEnableKubernetesAlpha() != false) { + setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (other.hasIpAllocationPolicy()) { + mergeIpAllocationPolicy(other.getIpAllocationPolicy()); + } + if (other.hasMasterAuthorizedNetworksConfig()) { + mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (other.hasBinaryAuthorization()) { + mergeBinaryAuthorization(other.getBinaryAuthorization()); + } + if (other.hasPodSecurityPolicyConfig()) { + mergePodSecurityPolicyConfig(other.getPodSecurityPolicyConfig()); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (other.hasManagedPodIdentityConfig()) { + mergeManagedPodIdentityConfig(other.getManagedPodIdentityConfig()); + } + if (other.nodeSchedulingStrategy_ != 0) { + setNodeSchedulingStrategyValue(other.getNodeSchedulingStrategyValue()); + } + if (other.hasPrivateClusterConfig()) { + mergePrivateClusterConfig(other.getPrivateClusterConfig()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + onChanged(); + } + if (!other.getInitialClusterVersion().isEmpty()) { + initialClusterVersion_ = other.initialClusterVersion_; + onChanged(); + } + if (!other.getCurrentMasterVersion().isEmpty()) { + currentMasterVersion_ = other.currentMasterVersion_; + onChanged(); + } + if (!other.getCurrentNodeVersion().isEmpty()) { + currentNodeVersion_ = other.currentNodeVersion_; + onChanged(); + } + if (!other.getCreateTime().isEmpty()) { + createTime_ = other.createTime_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.getNodeIpv4CidrSize() != 0) { + setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField1_ = (bitField1_ & ~0x00000008); + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.getCurrentNodeCount() != 0) { + setCurrentNodeCount(other.getCurrentNodeCount()); + } + if (!other.getExpireTime().isEmpty()) { + expireTime_ = other.expireTime_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField1_ = (bitField1_ & ~0x00000080); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField1_ = (bitField1_ & ~0x00000080); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.Cluster parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.Cluster) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private int bitField1_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of this cluster. The name must be unique within this project
+     * and zone, and can be up to 40 characters with the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of this cluster. The name must be unique within this project
+     * and zone, and can be up to 40 characters with the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of this cluster. The name must be unique within this project
+     * and zone, and can be up to 40 characters with the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of this cluster. The name must be unique within this project
+     * and zone, and can be up to 40 characters with the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of this cluster. The name must be unique within this project
+     * and zone, and can be up to 40 characters with the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int initialNodeCount_ ; + /** + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public int getInitialNodeCount() { + return initialNodeCount_; + } + /** + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public Builder clearInitialNodeCount() { + + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.NodeConfig nodeConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeConfig, com.google.container.v1alpha1.NodeConfig.Builder, com.google.container.v1alpha1.NodeConfigOrBuilder> nodeConfigBuilder_; + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public boolean hasNodeConfig() { + return nodeConfigBuilder_ != null || nodeConfig_ != null; + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public com.google.container.v1alpha1.NodeConfig getNodeConfig() { + if (nodeConfigBuilder_ == null) { + return nodeConfig_ == null ? com.google.container.v1alpha1.NodeConfig.getDefaultInstance() : nodeConfig_; + } else { + return nodeConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public Builder setNodeConfig(com.google.container.v1alpha1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeConfig_ = value; + onChanged(); + } else { + nodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public Builder setNodeConfig( + com.google.container.v1alpha1.NodeConfig.Builder builderForValue) { + if (nodeConfigBuilder_ == null) { + nodeConfig_ = builderForValue.build(); + onChanged(); + } else { + nodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public Builder mergeNodeConfig(com.google.container.v1alpha1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (nodeConfig_ != null) { + nodeConfig_ = + com.google.container.v1alpha1.NodeConfig.newBuilder(nodeConfig_).mergeFrom(value).buildPartial(); + } else { + nodeConfig_ = value; + } + onChanged(); + } else { + nodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public Builder clearNodeConfig() { + if (nodeConfigBuilder_ == null) { + nodeConfig_ = null; + onChanged(); + } else { + nodeConfig_ = null; + nodeConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public com.google.container.v1alpha1.NodeConfig.Builder getNodeConfigBuilder() { + + onChanged(); + return getNodeConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + public com.google.container.v1alpha1.NodeConfigOrBuilder getNodeConfigOrBuilder() { + if (nodeConfigBuilder_ != null) { + return nodeConfigBuilder_.getMessageOrBuilder(); + } else { + return nodeConfig_ == null ? + com.google.container.v1alpha1.NodeConfig.getDefaultInstance() : nodeConfig_; + } + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeConfig, com.google.container.v1alpha1.NodeConfig.Builder, com.google.container.v1alpha1.NodeConfigOrBuilder> + getNodeConfigFieldBuilder() { + if (nodeConfigBuilder_ == null) { + nodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeConfig, com.google.container.v1alpha1.NodeConfig.Builder, com.google.container.v1alpha1.NodeConfigOrBuilder>( + getNodeConfig(), + getParentForChildren(), + isClean()); + nodeConfig_ = null; + } + return nodeConfigBuilder_; + } + + private com.google.container.v1alpha1.MasterAuth masterAuth_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuth, com.google.container.v1alpha1.MasterAuth.Builder, com.google.container.v1alpha1.MasterAuthOrBuilder> masterAuthBuilder_; + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public boolean hasMasterAuth() { + return masterAuthBuilder_ != null || masterAuth_ != null; + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public com.google.container.v1alpha1.MasterAuth getMasterAuth() { + if (masterAuthBuilder_ == null) { + return masterAuth_ == null ? com.google.container.v1alpha1.MasterAuth.getDefaultInstance() : masterAuth_; + } else { + return masterAuthBuilder_.getMessage(); + } + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth(com.google.container.v1alpha1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuth_ = value; + onChanged(); + } else { + masterAuthBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth( + com.google.container.v1alpha1.MasterAuth.Builder builderForValue) { + if (masterAuthBuilder_ == null) { + masterAuth_ = builderForValue.build(); + onChanged(); + } else { + masterAuthBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public Builder mergeMasterAuth(com.google.container.v1alpha1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (masterAuth_ != null) { + masterAuth_ = + com.google.container.v1alpha1.MasterAuth.newBuilder(masterAuth_).mergeFrom(value).buildPartial(); + } else { + masterAuth_ = value; + } + onChanged(); + } else { + masterAuthBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public Builder clearMasterAuth() { + if (masterAuthBuilder_ == null) { + masterAuth_ = null; + onChanged(); + } else { + masterAuth_ = null; + masterAuthBuilder_ = null; + } + + return this; + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public com.google.container.v1alpha1.MasterAuth.Builder getMasterAuthBuilder() { + + onChanged(); + return getMasterAuthFieldBuilder().getBuilder(); + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + public com.google.container.v1alpha1.MasterAuthOrBuilder getMasterAuthOrBuilder() { + if (masterAuthBuilder_ != null) { + return masterAuthBuilder_.getMessageOrBuilder(); + } else { + return masterAuth_ == null ? + com.google.container.v1alpha1.MasterAuth.getDefaultInstance() : masterAuth_; + } + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuth, com.google.container.v1alpha1.MasterAuth.Builder, com.google.container.v1alpha1.MasterAuthOrBuilder> + getMasterAuthFieldBuilder() { + if (masterAuthBuilder_ == null) { + masterAuthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuth, com.google.container.v1alpha1.MasterAuth.Builder, com.google.container.v1alpha1.MasterAuthOrBuilder>( + getMasterAuth(), + getParentForChildren(), + isClean()); + masterAuth_ = null; + } + return masterAuthBuilder_; + } + + private java.lang.Object loggingService_ = ""; + /** + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `none` - no logs will be exported from the cluster.
+     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * 
+ * + * string logging_service = 6; + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `none` - no logs will be exported from the cluster.
+     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * 
+ * + * string logging_service = 6; + */ + public com.google.protobuf.ByteString + getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `none` - no logs will be exported from the cluster.
+     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * 
+ * + * string logging_service = 6; + */ + public Builder setLoggingService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + loggingService_ = value; + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `none` - no logs will be exported from the cluster.
+     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * 
+ * + * string logging_service = 6; + */ + public Builder clearLoggingService() { + + loggingService_ = getDefaultInstance().getLoggingService(); + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `none` - no logs will be exported from the cluster.
+     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * 
+ * + * string logging_service = 6; + */ + public Builder setLoggingServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + loggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object monitoringService_ = ""; + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+     * * `none` - no metrics will be exported from the cluster.
+     * * if left as an empty string, `monitoring.googleapis.com` will be used.
+     * 
+ * + * string monitoring_service = 7; + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+     * * `none` - no metrics will be exported from the cluster.
+     * * if left as an empty string, `monitoring.googleapis.com` will be used.
+     * 
+ * + * string monitoring_service = 7; + */ + public com.google.protobuf.ByteString + getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+     * * `none` - no metrics will be exported from the cluster.
+     * * if left as an empty string, `monitoring.googleapis.com` will be used.
+     * 
+ * + * string monitoring_service = 7; + */ + public Builder setMonitoringService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + monitoringService_ = value; + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+     * * `none` - no metrics will be exported from the cluster.
+     * * if left as an empty string, `monitoring.googleapis.com` will be used.
+     * 
+ * + * string monitoring_service = 7; + */ + public Builder clearMonitoringService() { + + monitoringService_ = getDefaultInstance().getMonitoringService(); + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+     * * `none` - no metrics will be exported from the cluster.
+     * * if left as an empty string, `monitoring.googleapis.com` will be used.
+     * 
+ * + * string monitoring_service = 7; + */ + public Builder setMonitoringServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + monitoringService_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+     * The name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * cluster is connected. If left unspecified, the `default` network
+     * will be used.
+     * 
+ * + * string network = 8; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * cluster is connected. If left unspecified, the `default` network
+     * will be used.
+     * 
+ * + * string network = 8; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * cluster is connected. If left unspecified, the `default` network
+     * will be used.
+     * 
+ * + * string network = 8; + */ + public Builder setNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * cluster is connected. If left unspecified, the `default` network
+     * will be used.
+     * 
+ * + * string network = 8; + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * cluster is connected. If left unspecified, the `default` network
+     * will be used.
+     * 
+ * + * string network = 8; + */ + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public com.google.protobuf.ByteString + getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public Builder setClusterIpv4Cidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public Builder clearClusterIpv4Cidr() { + + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + onChanged(); + return this; + } + /** + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public Builder setClusterIpv4CidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.AddonsConfig addonsConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AddonsConfig, com.google.container.v1alpha1.AddonsConfig.Builder, com.google.container.v1alpha1.AddonsConfigOrBuilder> addonsConfigBuilder_; + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public boolean hasAddonsConfig() { + return addonsConfigBuilder_ != null || addonsConfig_ != null; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1alpha1.AddonsConfig getAddonsConfig() { + if (addonsConfigBuilder_ == null) { + return addonsConfig_ == null ? com.google.container.v1alpha1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } else { + return addonsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public Builder setAddonsConfig(com.google.container.v1alpha1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addonsConfig_ = value; + onChanged(); + } else { + addonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public Builder setAddonsConfig( + com.google.container.v1alpha1.AddonsConfig.Builder builderForValue) { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = builderForValue.build(); + onChanged(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public Builder mergeAddonsConfig(com.google.container.v1alpha1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (addonsConfig_ != null) { + addonsConfig_ = + com.google.container.v1alpha1.AddonsConfig.newBuilder(addonsConfig_).mergeFrom(value).buildPartial(); + } else { + addonsConfig_ = value; + } + onChanged(); + } else { + addonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public Builder clearAddonsConfig() { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + onChanged(); + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1alpha1.AddonsConfig.Builder getAddonsConfigBuilder() { + + onChanged(); + return getAddonsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1alpha1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + if (addonsConfigBuilder_ != null) { + return addonsConfigBuilder_.getMessageOrBuilder(); + } else { + return addonsConfig_ == null ? + com.google.container.v1alpha1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AddonsConfig, com.google.container.v1alpha1.AddonsConfig.Builder, com.google.container.v1alpha1.AddonsConfigOrBuilder> + getAddonsConfigFieldBuilder() { + if (addonsConfigBuilder_ == null) { + addonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AddonsConfig, com.google.container.v1alpha1.AddonsConfig.Builder, com.google.container.v1alpha1.AddonsConfigOrBuilder>( + getAddonsConfig(), + getParentForChildren(), + isClean()); + addonsConfig_ = null; + } + return addonsConfigBuilder_; + } + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](/compute/docs/subnetworks) to which the
+     * cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](/compute/docs/subnetworks) to which the
+     * cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](/compute/docs/subnetworks) to which the
+     * cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + */ + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](/compute/docs/subnetworks) to which the
+     * cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](/compute/docs/subnetworks) to which the
+     * cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + */ + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private java.util.List nodePools_ = + java.util.Collections.emptyList(); + private void ensureNodePoolsIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + nodePools_ = new java.util.ArrayList(nodePools_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.NodePool, com.google.container.v1alpha1.NodePool.Builder, com.google.container.v1alpha1.NodePoolOrBuilder> nodePoolsBuilder_; + + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public java.util.List getNodePoolsList() { + if (nodePoolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodePools_); + } else { + return nodePoolsBuilder_.getMessageList(); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public int getNodePoolsCount() { + if (nodePoolsBuilder_ == null) { + return nodePools_.size(); + } else { + return nodePoolsBuilder_.getCount(); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public com.google.container.v1alpha1.NodePool getNodePools(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessage(index); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public Builder setNodePools( + int index, com.google.container.v1alpha1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.set(index, value); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public Builder setNodePools( + int index, com.google.container.v1alpha1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.set(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public Builder addNodePools(com.google.container.v1alpha1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public Builder addNodePools( + int index, com.google.container.v1alpha1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(index, value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public Builder addNodePools( + com.google.container.v1alpha1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public Builder addNodePools( + int index, com.google.container.v1alpha1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public Builder addAllNodePools( + java.lang.Iterable values) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodePools_); + onChanged(); + } else { + nodePoolsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public Builder clearNodePools() { + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public Builder removeNodePools(int index) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.remove(index); + onChanged(); + } else { + nodePoolsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public com.google.container.v1alpha1.NodePool.Builder getNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().getBuilder(index); + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public com.google.container.v1alpha1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); } else { + return nodePoolsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsOrBuilderList() { + if (nodePoolsBuilder_ != null) { + return nodePoolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodePools_); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public com.google.container.v1alpha1.NodePool.Builder addNodePoolsBuilder() { + return getNodePoolsFieldBuilder().addBuilder( + com.google.container.v1alpha1.NodePool.getDefaultInstance()); + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public com.google.container.v1alpha1.NodePool.Builder addNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.NodePool.getDefaultInstance()); + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsBuilderList() { + return getNodePoolsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.NodePool, com.google.container.v1alpha1.NodePool.Builder, com.google.container.v1alpha1.NodePoolOrBuilder> + getNodePoolsFieldBuilder() { + if (nodePoolsBuilder_ == null) { + nodePoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.NodePool, com.google.container.v1alpha1.NodePool.Builder, com.google.container.v1alpha1.NodePoolOrBuilder>( + nodePools_, + ((bitField0_ & 0x00000800) == 0x00000800), + getParentForChildren(), + isClean()); + nodePools_ = null; + } + return nodePoolsBuilder_; + } + + private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00001000; + } + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public com.google.protobuf.ProtocolStringList + getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public com.google.protobuf.ByteString + getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public Builder setLocations( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public Builder addLocations( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public Builder addAllLocations( + java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, locations_); + onChanged(); + return this; + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public Builder addLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private boolean enableKubernetesAlpha_ ; + /** + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1alpha1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + */ + public boolean getEnableKubernetesAlpha() { + return enableKubernetesAlpha_; + } + /** + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1alpha1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + */ + public Builder setEnableKubernetesAlpha(boolean value) { + + enableKubernetesAlpha_ = value; + onChanged(); + return this; + } + /** + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1alpha1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + */ + public Builder clearEnableKubernetesAlpha() { + + enableKubernetesAlpha_ = false; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.NetworkPolicy networkPolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NetworkPolicy, com.google.container.v1alpha1.NetworkPolicy.Builder, com.google.container.v1alpha1.NetworkPolicyOrBuilder> networkPolicyBuilder_; + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public boolean hasNetworkPolicy() { + return networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1alpha1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null ? com.google.container.v1alpha1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public Builder setNetworkPolicy(com.google.container.v1alpha1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public Builder setNetworkPolicy( + com.google.container.v1alpha1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public Builder mergeNetworkPolicy(com.google.container.v1alpha1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (networkPolicy_ != null) { + networkPolicy_ = + com.google.container.v1alpha1.NetworkPolicy.newBuilder(networkPolicy_).mergeFrom(value).buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1alpha1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1alpha1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null ? + com.google.container.v1alpha1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NetworkPolicy, com.google.container.v1alpha1.NetworkPolicy.Builder, com.google.container.v1alpha1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NetworkPolicy, com.google.container.v1alpha1.NetworkPolicy.Builder, com.google.container.v1alpha1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), + getParentForChildren(), + isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private com.google.container.v1alpha1.IPAllocationPolicy ipAllocationPolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.IPAllocationPolicy, com.google.container.v1alpha1.IPAllocationPolicy.Builder, com.google.container.v1alpha1.IPAllocationPolicyOrBuilder> ipAllocationPolicyBuilder_; + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public boolean hasIpAllocationPolicy() { + return ipAllocationPolicyBuilder_ != null || ipAllocationPolicy_ != null; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1alpha1.IPAllocationPolicy getIpAllocationPolicy() { + if (ipAllocationPolicyBuilder_ == null) { + return ipAllocationPolicy_ == null ? com.google.container.v1alpha1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } else { + return ipAllocationPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder setIpAllocationPolicy(com.google.container.v1alpha1.IPAllocationPolicy value) { + if (ipAllocationPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ipAllocationPolicy_ = value; + onChanged(); + } else { + ipAllocationPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder setIpAllocationPolicy( + com.google.container.v1alpha1.IPAllocationPolicy.Builder builderForValue) { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = builderForValue.build(); + onChanged(); + } else { + ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder mergeIpAllocationPolicy(com.google.container.v1alpha1.IPAllocationPolicy value) { + if (ipAllocationPolicyBuilder_ == null) { + if (ipAllocationPolicy_ != null) { + ipAllocationPolicy_ = + com.google.container.v1alpha1.IPAllocationPolicy.newBuilder(ipAllocationPolicy_).mergeFrom(value).buildPartial(); + } else { + ipAllocationPolicy_ = value; + } + onChanged(); + } else { + ipAllocationPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder clearIpAllocationPolicy() { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = null; + onChanged(); + } else { + ipAllocationPolicy_ = null; + ipAllocationPolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1alpha1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { + + onChanged(); + return getIpAllocationPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1alpha1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { + if (ipAllocationPolicyBuilder_ != null) { + return ipAllocationPolicyBuilder_.getMessageOrBuilder(); + } else { + return ipAllocationPolicy_ == null ? + com.google.container.v1alpha1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.IPAllocationPolicy, com.google.container.v1alpha1.IPAllocationPolicy.Builder, com.google.container.v1alpha1.IPAllocationPolicyOrBuilder> + getIpAllocationPolicyFieldBuilder() { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.IPAllocationPolicy, com.google.container.v1alpha1.IPAllocationPolicy.Builder, com.google.container.v1alpha1.IPAllocationPolicyOrBuilder>( + getIpAllocationPolicy(), + getParentForChildren(), + isClean()); + ipAllocationPolicy_ = null; + } + return ipAllocationPolicyBuilder_; + } + + private com.google.container.v1alpha1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder> masterAuthorizedNetworksConfigBuilder_; + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfigBuilder_ != null || masterAuthorizedNetworksConfig_ != null; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + return masterAuthorizedNetworksConfig_ == null ? com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } else { + return masterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder setMasterAuthorizedNetworksConfig(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuthorizedNetworksConfig_ = value; + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = builderForValue.build(); + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder mergeMasterAuthorizedNetworksConfig(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (masterAuthorizedNetworksConfig_ != null) { + masterAuthorizedNetworksConfig_ = + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.newBuilder(masterAuthorizedNetworksConfig_).mergeFrom(value).buildPartial(); + } else { + masterAuthorizedNetworksConfig_ = value; + } + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder clearMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = null; + onChanged(); + } else { + masterAuthorizedNetworksConfig_ = null; + masterAuthorizedNetworksConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder getMasterAuthorizedNetworksConfigBuilder() { + + onChanged(); + return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ != null) { + return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return masterAuthorizedNetworksConfig_ == null ? + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder> + getMasterAuthorizedNetworksConfigFieldBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder>( + getMasterAuthorizedNetworksConfig(), + getParentForChildren(), + isClean()); + masterAuthorizedNetworksConfig_ = null; + } + return masterAuthorizedNetworksConfigBuilder_; + } + + private com.google.container.v1alpha1.MaintenancePolicy maintenancePolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MaintenancePolicy, com.google.container.v1alpha1.MaintenancePolicy.Builder, com.google.container.v1alpha1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1alpha1.MaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null ? com.google.container.v1alpha1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } else { + return maintenancePolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder setMaintenancePolicy(com.google.container.v1alpha1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder setMaintenancePolicy( + com.google.container.v1alpha1.MaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder mergeMaintenancePolicy(com.google.container.v1alpha1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (maintenancePolicy_ != null) { + maintenancePolicy_ = + com.google.container.v1alpha1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); + } else { + maintenancePolicy_ = value; + } + onChanged(); + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder clearMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + onChanged(); + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1alpha1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1alpha1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null ? + com.google.container.v1alpha1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MaintenancePolicy, com.google.container.v1alpha1.MaintenancePolicy.Builder, com.google.container.v1alpha1.MaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MaintenancePolicy, com.google.container.v1alpha1.MaintenancePolicy.Builder, com.google.container.v1alpha1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), + getParentForChildren(), + isClean()); + maintenancePolicy_ = null; + } + return maintenancePolicyBuilder_; + } + + private com.google.container.v1alpha1.BinaryAuthorization binaryAuthorization_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.BinaryAuthorization, com.google.container.v1alpha1.BinaryAuthorization.Builder, com.google.container.v1alpha1.BinaryAuthorizationOrBuilder> binaryAuthorizationBuilder_; + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public boolean hasBinaryAuthorization() { + return binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1alpha1.BinaryAuthorization getBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + return binaryAuthorization_ == null ? com.google.container.v1alpha1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } else { + return binaryAuthorizationBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public Builder setBinaryAuthorization(com.google.container.v1alpha1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binaryAuthorization_ = value; + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public Builder setBinaryAuthorization( + com.google.container.v1alpha1.BinaryAuthorization.Builder builderForValue) { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = builderForValue.build(); + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public Builder mergeBinaryAuthorization(com.google.container.v1alpha1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (binaryAuthorization_ != null) { + binaryAuthorization_ = + com.google.container.v1alpha1.BinaryAuthorization.newBuilder(binaryAuthorization_).mergeFrom(value).buildPartial(); + } else { + binaryAuthorization_ = value; + } + onChanged(); + } else { + binaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public Builder clearBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + onChanged(); + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1alpha1.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { + + onChanged(); + return getBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1alpha1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { + if (binaryAuthorizationBuilder_ != null) { + return binaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return binaryAuthorization_ == null ? + com.google.container.v1alpha1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.BinaryAuthorization, com.google.container.v1alpha1.BinaryAuthorization.Builder, com.google.container.v1alpha1.BinaryAuthorizationOrBuilder> + getBinaryAuthorizationFieldBuilder() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.BinaryAuthorization, com.google.container.v1alpha1.BinaryAuthorization.Builder, com.google.container.v1alpha1.BinaryAuthorizationOrBuilder>( + getBinaryAuthorization(), + getParentForChildren(), + isClean()); + binaryAuthorization_ = null; + } + return binaryAuthorizationBuilder_; + } + + private com.google.container.v1alpha1.PodSecurityPolicyConfig podSecurityPolicyConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.PodSecurityPolicyConfig, com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder, com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder> podSecurityPolicyConfigBuilder_; + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public boolean hasPodSecurityPolicyConfig() { + return podSecurityPolicyConfigBuilder_ != null || podSecurityPolicyConfig_ != null; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1alpha1.PodSecurityPolicyConfig getPodSecurityPolicyConfig() { + if (podSecurityPolicyConfigBuilder_ == null) { + return podSecurityPolicyConfig_ == null ? com.google.container.v1alpha1.PodSecurityPolicyConfig.getDefaultInstance() : podSecurityPolicyConfig_; + } else { + return podSecurityPolicyConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public Builder setPodSecurityPolicyConfig(com.google.container.v1alpha1.PodSecurityPolicyConfig value) { + if (podSecurityPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podSecurityPolicyConfig_ = value; + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public Builder setPodSecurityPolicyConfig( + com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder builderForValue) { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public Builder mergePodSecurityPolicyConfig(com.google.container.v1alpha1.PodSecurityPolicyConfig value) { + if (podSecurityPolicyConfigBuilder_ == null) { + if (podSecurityPolicyConfig_ != null) { + podSecurityPolicyConfig_ = + com.google.container.v1alpha1.PodSecurityPolicyConfig.newBuilder(podSecurityPolicyConfig_).mergeFrom(value).buildPartial(); + } else { + podSecurityPolicyConfig_ = value; + } + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public Builder clearPodSecurityPolicyConfig() { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = null; + onChanged(); + } else { + podSecurityPolicyConfig_ = null; + podSecurityPolicyConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder getPodSecurityPolicyConfigBuilder() { + + onChanged(); + return getPodSecurityPolicyConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder getPodSecurityPolicyConfigOrBuilder() { + if (podSecurityPolicyConfigBuilder_ != null) { + return podSecurityPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return podSecurityPolicyConfig_ == null ? + com.google.container.v1alpha1.PodSecurityPolicyConfig.getDefaultInstance() : podSecurityPolicyConfig_; + } + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.PodSecurityPolicyConfig, com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder, com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder> + getPodSecurityPolicyConfigFieldBuilder() { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.PodSecurityPolicyConfig, com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder, com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder>( + getPodSecurityPolicyConfig(), + getParentForChildren(), + isClean()); + podSecurityPolicyConfig_ = null; + } + return podSecurityPolicyConfigBuilder_; + } + + private com.google.container.v1alpha1.ClusterAutoscaling autoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClusterAutoscaling, com.google.container.v1alpha1.ClusterAutoscaling.Builder, com.google.container.v1alpha1.ClusterAutoscalingOrBuilder> autoscalingBuilder_; + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1alpha1.ClusterAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null ? com.google.container.v1alpha1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public Builder setAutoscaling(com.google.container.v1alpha1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public Builder setAutoscaling( + com.google.container.v1alpha1.ClusterAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public Builder mergeAutoscaling(com.google.container.v1alpha1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1alpha1.ClusterAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1alpha1.ClusterAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1alpha1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null ? + com.google.container.v1alpha1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClusterAutoscaling, com.google.container.v1alpha1.ClusterAutoscaling.Builder, com.google.container.v1alpha1.ClusterAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClusterAutoscaling, com.google.container.v1alpha1.ClusterAutoscaling.Builder, com.google.container.v1alpha1.ClusterAutoscalingOrBuilder>( + getAutoscaling(), + getParentForChildren(), + isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private com.google.container.v1alpha1.ManagedPodIdentityConfig managedPodIdentityConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ManagedPodIdentityConfig, com.google.container.v1alpha1.ManagedPodIdentityConfig.Builder, com.google.container.v1alpha1.ManagedPodIdentityConfigOrBuilder> managedPodIdentityConfigBuilder_; + /** + *
+     * Configuration for the use of GCP IAM Service Accounts in applications in
+     * this cluster.
+     * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public boolean hasManagedPodIdentityConfig() { + return managedPodIdentityConfigBuilder_ != null || managedPodIdentityConfig_ != null; + } + /** + *
+     * Configuration for the use of GCP IAM Service Accounts in applications in
+     * this cluster.
+     * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public com.google.container.v1alpha1.ManagedPodIdentityConfig getManagedPodIdentityConfig() { + if (managedPodIdentityConfigBuilder_ == null) { + return managedPodIdentityConfig_ == null ? com.google.container.v1alpha1.ManagedPodIdentityConfig.getDefaultInstance() : managedPodIdentityConfig_; + } else { + return managedPodIdentityConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the use of GCP IAM Service Accounts in applications in
+     * this cluster.
+     * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public Builder setManagedPodIdentityConfig(com.google.container.v1alpha1.ManagedPodIdentityConfig value) { + if (managedPodIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managedPodIdentityConfig_ = value; + onChanged(); + } else { + managedPodIdentityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for the use of GCP IAM Service Accounts in applications in
+     * this cluster.
+     * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public Builder setManagedPodIdentityConfig( + com.google.container.v1alpha1.ManagedPodIdentityConfig.Builder builderForValue) { + if (managedPodIdentityConfigBuilder_ == null) { + managedPodIdentityConfig_ = builderForValue.build(); + onChanged(); + } else { + managedPodIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for the use of GCP IAM Service Accounts in applications in
+     * this cluster.
+     * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public Builder mergeManagedPodIdentityConfig(com.google.container.v1alpha1.ManagedPodIdentityConfig value) { + if (managedPodIdentityConfigBuilder_ == null) { + if (managedPodIdentityConfig_ != null) { + managedPodIdentityConfig_ = + com.google.container.v1alpha1.ManagedPodIdentityConfig.newBuilder(managedPodIdentityConfig_).mergeFrom(value).buildPartial(); + } else { + managedPodIdentityConfig_ = value; + } + onChanged(); + } else { + managedPodIdentityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for the use of GCP IAM Service Accounts in applications in
+     * this cluster.
+     * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public Builder clearManagedPodIdentityConfig() { + if (managedPodIdentityConfigBuilder_ == null) { + managedPodIdentityConfig_ = null; + onChanged(); + } else { + managedPodIdentityConfig_ = null; + managedPodIdentityConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for the use of GCP IAM Service Accounts in applications in
+     * this cluster.
+     * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public com.google.container.v1alpha1.ManagedPodIdentityConfig.Builder getManagedPodIdentityConfigBuilder() { + + onChanged(); + return getManagedPodIdentityConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the use of GCP IAM Service Accounts in applications in
+     * this cluster.
+     * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + public com.google.container.v1alpha1.ManagedPodIdentityConfigOrBuilder getManagedPodIdentityConfigOrBuilder() { + if (managedPodIdentityConfigBuilder_ != null) { + return managedPodIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return managedPodIdentityConfig_ == null ? + com.google.container.v1alpha1.ManagedPodIdentityConfig.getDefaultInstance() : managedPodIdentityConfig_; + } + } + /** + *
+     * Configuration for the use of GCP IAM Service Accounts in applications in
+     * this cluster.
+     * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ManagedPodIdentityConfig, com.google.container.v1alpha1.ManagedPodIdentityConfig.Builder, com.google.container.v1alpha1.ManagedPodIdentityConfigOrBuilder> + getManagedPodIdentityConfigFieldBuilder() { + if (managedPodIdentityConfigBuilder_ == null) { + managedPodIdentityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ManagedPodIdentityConfig, com.google.container.v1alpha1.ManagedPodIdentityConfig.Builder, com.google.container.v1alpha1.ManagedPodIdentityConfigOrBuilder>( + getManagedPodIdentityConfig(), + getParentForChildren(), + isClean()); + managedPodIdentityConfig_ = null; + } + return managedPodIdentityConfigBuilder_; + } + + private int nodeSchedulingStrategy_ = 0; + /** + *
+     * Defines behaviour of k8s scheduler.
+     * 
+ * + * .google.container.v1alpha1.Cluster.NodeSchedulingStrategy node_scheduling_strategy = 35; + */ + public int getNodeSchedulingStrategyValue() { + return nodeSchedulingStrategy_; + } + /** + *
+     * Defines behaviour of k8s scheduler.
+     * 
+ * + * .google.container.v1alpha1.Cluster.NodeSchedulingStrategy node_scheduling_strategy = 35; + */ + public Builder setNodeSchedulingStrategyValue(int value) { + nodeSchedulingStrategy_ = value; + onChanged(); + return this; + } + /** + *
+     * Defines behaviour of k8s scheduler.
+     * 
+ * + * .google.container.v1alpha1.Cluster.NodeSchedulingStrategy node_scheduling_strategy = 35; + */ + public com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy getNodeSchedulingStrategy() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy result = com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy.valueOf(nodeSchedulingStrategy_); + return result == null ? com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy.UNRECOGNIZED : result; + } + /** + *
+     * Defines behaviour of k8s scheduler.
+     * 
+ * + * .google.container.v1alpha1.Cluster.NodeSchedulingStrategy node_scheduling_strategy = 35; + */ + public Builder setNodeSchedulingStrategy(com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeSchedulingStrategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Defines behaviour of k8s scheduler.
+     * 
+ * + * .google.container.v1alpha1.Cluster.NodeSchedulingStrategy node_scheduling_strategy = 35; + */ + public Builder clearNodeSchedulingStrategy() { + + nodeSchedulingStrategy_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.PrivateClusterConfig privateClusterConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.PrivateClusterConfig, com.google.container.v1alpha1.PrivateClusterConfig.Builder, com.google.container.v1alpha1.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public boolean hasPrivateClusterConfig() { + return privateClusterConfigBuilder_ != null || privateClusterConfig_ != null; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1alpha1.PrivateClusterConfig getPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + return privateClusterConfig_ == null ? com.google.container.v1alpha1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } else { + return privateClusterConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder setPrivateClusterConfig(com.google.container.v1alpha1.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateClusterConfig_ = value; + onChanged(); + } else { + privateClusterConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder setPrivateClusterConfig( + com.google.container.v1alpha1.PrivateClusterConfig.Builder builderForValue) { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = builderForValue.build(); + onChanged(); + } else { + privateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder mergePrivateClusterConfig(com.google.container.v1alpha1.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (privateClusterConfig_ != null) { + privateClusterConfig_ = + com.google.container.v1alpha1.PrivateClusterConfig.newBuilder(privateClusterConfig_).mergeFrom(value).buildPartial(); + } else { + privateClusterConfig_ = value; + } + onChanged(); + } else { + privateClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder clearPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = null; + onChanged(); + } else { + privateClusterConfig_ = null; + privateClusterConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1alpha1.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + + onChanged(); + return getPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1alpha1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + if (privateClusterConfigBuilder_ != null) { + return privateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return privateClusterConfig_ == null ? + com.google.container.v1alpha1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.PrivateClusterConfig, com.google.container.v1alpha1.PrivateClusterConfig.Builder, com.google.container.v1alpha1.PrivateClusterConfigOrBuilder> + getPrivateClusterConfigFieldBuilder() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.PrivateClusterConfig, com.google.container.v1alpha1.PrivateClusterConfig.Builder, com.google.container.v1alpha1.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), + getParentForChildren(), + isClean()); + privateClusterConfig_ = null; + } + return privateClusterConfigBuilder_; + } + + private java.lang.Object selfLink_ = ""; + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder setSelfLink( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder setSelfLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object endpoint_ = ""; + /** + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + */ + public com.google.protobuf.ByteString + getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + */ + public Builder setEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endpoint_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + */ + public Builder clearEndpoint() { + + endpoint_ = getDefaultInstance().getEndpoint(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + */ + public Builder setEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object initialClusterVersion_ = ""; + /** + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + */ + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + */ + public com.google.protobuf.ByteString + getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + */ + public Builder setInitialClusterVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + initialClusterVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + */ + public Builder clearInitialClusterVersion() { + + initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); + onChanged(); + return this; + } + /** + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + */ + public Builder setInitialClusterVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initialClusterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentMasterVersion_ = ""; + /** + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + */ + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + */ + public com.google.protobuf.ByteString + getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + */ + public Builder setCurrentMasterVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentMasterVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + */ + public Builder clearCurrentMasterVersion() { + + currentMasterVersion_ = getDefaultInstance().getCurrentMasterVersion(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + */ + public Builder setCurrentMasterVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentMasterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentNodeVersion_ = ""; + /** + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1alpha1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getCurrentNodeVersion() { + java.lang.Object ref = currentNodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentNodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1alpha1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getCurrentNodeVersionBytes() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1alpha1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setCurrentNodeVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentNodeVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1alpha1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearCurrentNodeVersion() { + + currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1alpha1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setCurrentNodeVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentNodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object createTime_ = ""; + /** + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + */ + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + */ + public com.google.protobuf.ByteString + getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + */ + public Builder setCreateTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + createTime_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + */ + public Builder clearCreateTime() { + + createTime_ = getDefaultInstance().getCreateTime(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + */ + public Builder setCreateTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + createTime_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1alpha1.Cluster.Status status = 107; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1alpha1.Cluster.Status status = 107; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1alpha1.Cluster.Status status = 107; + */ + public com.google.container.v1alpha1.Cluster.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.Cluster.Status result = com.google.container.v1alpha1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1alpha1.Cluster.Status.UNRECOGNIZED : result; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1alpha1.Cluster.Status status = 107; + */ + public Builder setStatus(com.google.container.v1alpha1.Cluster.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1alpha1.Cluster.Status status = 107; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private int nodeIpv4CidrSize_ ; + /** + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + */ + public int getNodeIpv4CidrSize() { + return nodeIpv4CidrSize_; + } + /** + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + */ + public Builder setNodeIpv4CidrSize(int value) { + + nodeIpv4CidrSize_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + */ + public Builder clearNodeIpv4CidrSize() { + + nodeIpv4CidrSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + */ + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + */ + public com.google.protobuf.ByteString + getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + */ + public Builder setServicesIpv4Cidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + */ + public Builder clearServicesIpv4Cidr() { + + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + */ + public Builder setServicesIpv4CidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInstanceGroupUrlsIsMutable() { + if (!((bitField1_ & 0x00000008) == 0x00000008)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + bitField1_ |= 0x00000008; + } + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + return instanceGroupUrls_.getUnmodifiableView(); + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInstanceGroupUrls( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addInstanceGroupUrls( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addAllInstanceGroupUrls( + java.lang.Iterable values) { + ensureInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instanceGroupUrls_); + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField1_ = (bitField1_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addInstanceGroupUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + + private int currentNodeCount_ ; + /** + *
+     * [Output only] The number of nodes currently in the cluster.
+     * 
+ * + * int32 current_node_count = 112; + */ + public int getCurrentNodeCount() { + return currentNodeCount_; + } + /** + *
+     * [Output only] The number of nodes currently in the cluster.
+     * 
+ * + * int32 current_node_count = 112; + */ + public Builder setCurrentNodeCount(int value) { + + currentNodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The number of nodes currently in the cluster.
+     * 
+ * + * int32 current_node_count = 112; + */ + public Builder clearCurrentNodeCount() { + + currentNodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object expireTime_ = ""; + /** + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + */ + public java.lang.String getExpireTime() { + java.lang.Object ref = expireTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + */ + public com.google.protobuf.ByteString + getExpireTimeBytes() { + java.lang.Object ref = expireTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expireTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + */ + public Builder setExpireTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expireTime_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + */ + public Builder clearExpireTime() { + + expireTime_ = getDefaultInstance().getExpireTime(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + */ + public Builder setExpireTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expireTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public Builder setLocation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField1_ & 0x00000080) == 0x00000080)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField1_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder> conditionsBuilder_; + + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public com.google.container.v1alpha1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1alpha1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public Builder addConditions(com.google.container.v1alpha1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1alpha1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public Builder addConditions( + com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000080); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public com.google.container.v1alpha1.StatusCondition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public com.google.container.v1alpha1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public com.google.container.v1alpha1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + com.google.container.v1alpha1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public com.google.container.v1alpha1.StatusCondition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder>( + conditions_, + ((bitField1_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.Cluster) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.Cluster) + private static final com.google.container.v1alpha1.Cluster DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.Cluster(); + } + + public static com.google.container.v1alpha1.Cluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Cluster(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.Cluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterAutoscaling.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterAutoscaling.java new file mode 100644 index 000000000000..064012aa2736 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterAutoscaling.java @@ -0,0 +1,966 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * ClusterAutoscaling contains global, per-cluster information
+ * required by Cluster Autoscaler to automatically adjust
+ * the size of the cluster and create/delete
+ * node pools based on the current needs.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ClusterAutoscaling} + */ +public final class ClusterAutoscaling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ClusterAutoscaling) + ClusterAutoscalingOrBuilder { +private static final long serialVersionUID = 0L; + // Use ClusterAutoscaling.newBuilder() to construct. + private ClusterAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterAutoscaling() { + enableNodeAutoprovisioning_ = false; + resourceLimits_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClusterAutoscaling( + 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 8: { + + enableNodeAutoprovisioning_ = input.readBool(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resourceLimits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + resourceLimits_.add( + input.readMessage(com.google.container.v1alpha1.ResourceLimit.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClusterAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ClusterAutoscaling.class, com.google.container.v1alpha1.ClusterAutoscaling.Builder.class); + } + + private int bitField0_; + public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; + private boolean enableNodeAutoprovisioning_; + /** + *
+   * Enables automatic node pool creation and deletion.
+   * 
+ * + * bool enable_node_autoprovisioning = 1; + */ + public boolean getEnableNodeAutoprovisioning() { + return enableNodeAutoprovisioning_; + } + + public static final int RESOURCE_LIMITS_FIELD_NUMBER = 2; + private java.util.List resourceLimits_; + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public java.util.List getResourceLimitsList() { + return resourceLimits_; + } + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsOrBuilderList() { + return resourceLimits_; + } + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public int getResourceLimitsCount() { + return resourceLimits_.size(); + } + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1alpha1.ResourceLimit getResourceLimits(int index) { + return resourceLimits_.get(index); + } + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1alpha1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index) { + return resourceLimits_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enableNodeAutoprovisioning_ != false) { + output.writeBool(1, enableNodeAutoprovisioning_); + } + for (int i = 0; i < resourceLimits_.size(); i++) { + output.writeMessage(2, resourceLimits_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableNodeAutoprovisioning_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableNodeAutoprovisioning_); + } + for (int i = 0; i < resourceLimits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, resourceLimits_.get(i)); + } + 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.container.v1alpha1.ClusterAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ClusterAutoscaling other = (com.google.container.v1alpha1.ClusterAutoscaling) obj; + + boolean result = true; + result = result && (getEnableNodeAutoprovisioning() + == other.getEnableNodeAutoprovisioning()); + result = result && getResourceLimitsList() + .equals(other.getResourceLimitsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableNodeAutoprovisioning()); + if (getResourceLimitsCount() > 0) { + hash = (37 * hash) + RESOURCE_LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getResourceLimitsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ClusterAutoscaling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ClusterAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ClusterAutoscaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ClusterAutoscaling contains global, per-cluster information
+   * required by Cluster Autoscaler to automatically adjust
+   * the size of the cluster and create/delete
+   * node pools based on the current needs.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ClusterAutoscaling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ClusterAutoscaling) + com.google.container.v1alpha1.ClusterAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClusterAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ClusterAutoscaling.class, com.google.container.v1alpha1.ClusterAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ClusterAutoscaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResourceLimitsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enableNodeAutoprovisioning_ = false; + + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + resourceLimitsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ClusterAutoscaling getDefaultInstanceForType() { + return com.google.container.v1alpha1.ClusterAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ClusterAutoscaling build() { + com.google.container.v1alpha1.ClusterAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ClusterAutoscaling buildPartial() { + com.google.container.v1alpha1.ClusterAutoscaling result = new com.google.container.v1alpha1.ClusterAutoscaling(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; + if (resourceLimitsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.resourceLimits_ = resourceLimits_; + } else { + result.resourceLimits_ = resourceLimitsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ClusterAutoscaling) { + return mergeFrom((com.google.container.v1alpha1.ClusterAutoscaling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ClusterAutoscaling other) { + if (other == com.google.container.v1alpha1.ClusterAutoscaling.getDefaultInstance()) return this; + if (other.getEnableNodeAutoprovisioning() != false) { + setEnableNodeAutoprovisioning(other.getEnableNodeAutoprovisioning()); + } + if (resourceLimitsBuilder_ == null) { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimits_.isEmpty()) { + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResourceLimitsIsMutable(); + resourceLimits_.addAll(other.resourceLimits_); + } + onChanged(); + } + } else { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimitsBuilder_.isEmpty()) { + resourceLimitsBuilder_.dispose(); + resourceLimitsBuilder_ = null; + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000002); + resourceLimitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourceLimitsFieldBuilder() : null; + } else { + resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ClusterAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ClusterAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private boolean enableNodeAutoprovisioning_ ; + /** + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + */ + public boolean getEnableNodeAutoprovisioning() { + return enableNodeAutoprovisioning_; + } + /** + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + */ + public Builder setEnableNodeAutoprovisioning(boolean value) { + + enableNodeAutoprovisioning_ = value; + onChanged(); + return this; + } + /** + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + */ + public Builder clearEnableNodeAutoprovisioning() { + + enableNodeAutoprovisioning_ = false; + onChanged(); + return this; + } + + private java.util.List resourceLimits_ = + java.util.Collections.emptyList(); + private void ensureResourceLimitsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + resourceLimits_ = new java.util.ArrayList(resourceLimits_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.ResourceLimit, com.google.container.v1alpha1.ResourceLimit.Builder, com.google.container.v1alpha1.ResourceLimitOrBuilder> resourceLimitsBuilder_; + + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public java.util.List getResourceLimitsList() { + if (resourceLimitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceLimits_); + } else { + return resourceLimitsBuilder_.getMessageList(); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public int getResourceLimitsCount() { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.size(); + } else { + return resourceLimitsBuilder_.getCount(); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1alpha1.ResourceLimit getResourceLimits(int index) { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.get(index); + } else { + return resourceLimitsBuilder_.getMessage(index); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits( + int index, com.google.container.v1alpha1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.set(index, value); + onChanged(); + } else { + resourceLimitsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits( + int index, com.google.container.v1alpha1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits(com.google.container.v1alpha1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.add(value); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + int index, com.google.container.v1alpha1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.add(index, value); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + com.google.container.v1alpha1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + int index, com.google.container.v1alpha1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public Builder addAllResourceLimits( + java.lang.Iterable values) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceLimits_); + onChanged(); + } else { + resourceLimitsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public Builder clearResourceLimits() { + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resourceLimitsBuilder_.clear(); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public Builder removeResourceLimits(int index) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.remove(index); + onChanged(); + } else { + resourceLimitsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1alpha1.ResourceLimit.Builder getResourceLimitsBuilder( + int index) { + return getResourceLimitsFieldBuilder().getBuilder(index); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1alpha1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index) { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.get(index); } else { + return resourceLimitsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsOrBuilderList() { + if (resourceLimitsBuilder_ != null) { + return resourceLimitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceLimits_); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1alpha1.ResourceLimit.Builder addResourceLimitsBuilder() { + return getResourceLimitsFieldBuilder().addBuilder( + com.google.container.v1alpha1.ResourceLimit.getDefaultInstance()); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1alpha1.ResourceLimit.Builder addResourceLimitsBuilder( + int index) { + return getResourceLimitsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.ResourceLimit.getDefaultInstance()); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsBuilderList() { + return getResourceLimitsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.ResourceLimit, com.google.container.v1alpha1.ResourceLimit.Builder, com.google.container.v1alpha1.ResourceLimitOrBuilder> + getResourceLimitsFieldBuilder() { + if (resourceLimitsBuilder_ == null) { + resourceLimitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.ResourceLimit, com.google.container.v1alpha1.ResourceLimit.Builder, com.google.container.v1alpha1.ResourceLimitOrBuilder>( + resourceLimits_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + resourceLimits_ = null; + } + return resourceLimitsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ClusterAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ClusterAutoscaling) + private static final com.google.container.v1alpha1.ClusterAutoscaling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ClusterAutoscaling(); + } + + public static com.google.container.v1alpha1.ClusterAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ClusterAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterAutoscalingOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterAutoscalingOrBuilder.java new file mode 100644 index 000000000000..829909626e6b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterAutoscalingOrBuilder.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ClusterAutoscalingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ClusterAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enables automatic node pool creation and deletion.
+   * 
+ * + * bool enable_node_autoprovisioning = 1; + */ + boolean getEnableNodeAutoprovisioning(); + + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + java.util.List + getResourceLimitsList(); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + com.google.container.v1alpha1.ResourceLimit getResourceLimits(int index); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + int getResourceLimitsCount(); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + java.util.List + getResourceLimitsOrBuilderList(); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.ResourceLimit resource_limits = 2; + */ + com.google.container.v1alpha1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterName.java new file mode 100644 index 000000000000..b31ceba45c5b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterName.java @@ -0,0 +1,212 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1alpha1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ClusterName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/clusters/{cluster}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + private final String cluster; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + } + + public static ClusterName of(String project, String location, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .build(); + } + + public static String format(String project, String location, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .build() + .toString(); + } + + public static ClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ClusterName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldMapBuilder.put("cluster", cluster); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location, "cluster", cluster); + } + + /** Builder for ClusterName. */ + public static class Builder { + + private String project; + private String location; + private String cluster; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + private Builder() { + } + + private Builder(ClusterName clusterName) { + project = clusterName.project; + location = clusterName.location; + cluster = clusterName.cluster; + } + + public ClusterName build() { + return new ClusterName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ClusterName) { + ClusterName that = (ClusterName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)) + && (this.cluster.equals(that.cluster)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + h *= 1000003; + h ^= cluster.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterOrBuilder.java new file mode 100644 index 000000000000..0c8aa1278578 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterOrBuilder.java @@ -0,0 +1,1026 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ClusterOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.Cluster) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of this cluster. The name must be unique within this project
+   * and zone, and can be up to 40 characters with the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * The name of this cluster. The name must be unique within this project
+   * and zone, and can be up to 40 characters with the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * The number of nodes to create in this cluster. You must ensure that your
+   * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "node_config") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * 
+ * + * int32 initial_node_count = 3; + */ + int getInitialNodeCount(); + + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + boolean hasNodeConfig(); + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + com.google.container.v1alpha1.NodeConfig getNodeConfig(); + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig node_config = 4; + */ + com.google.container.v1alpha1.NodeConfigOrBuilder getNodeConfigOrBuilder(); + + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + boolean hasMasterAuth(); + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + com.google.container.v1alpha1.MasterAuth getMasterAuth(); + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth master_auth = 5; + */ + com.google.container.v1alpha1.MasterAuthOrBuilder getMasterAuthOrBuilder(); + + /** + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `none` - no logs will be exported from the cluster.
+   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * 
+ * + * string logging_service = 6; + */ + java.lang.String getLoggingService(); + /** + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `none` - no logs will be exported from the cluster.
+   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * 
+ * + * string logging_service = 6; + */ + com.google.protobuf.ByteString + getLoggingServiceBytes(); + + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+   * * `none` - no metrics will be exported from the cluster.
+   * * if left as an empty string, `monitoring.googleapis.com` will be used.
+   * 
+ * + * string monitoring_service = 7; + */ + java.lang.String getMonitoringService(); + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+   * * `none` - no metrics will be exported from the cluster.
+   * * if left as an empty string, `monitoring.googleapis.com` will be used.
+   * 
+ * + * string monitoring_service = 7; + */ + com.google.protobuf.ByteString + getMonitoringServiceBytes(); + + /** + *
+   * The name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * cluster is connected. If left unspecified, the `default` network
+   * will be used.
+   * 
+ * + * string network = 8; + */ + java.lang.String getNetwork(); + /** + *
+   * The name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * cluster is connected. If left unspecified, the `default` network
+   * will be used.
+   * 
+ * + * string network = 8; + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + */ + java.lang.String getClusterIpv4Cidr(); + /** + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + */ + com.google.protobuf.ByteString + getClusterIpv4CidrBytes(); + + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + boolean hasAddonsConfig(); + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + com.google.container.v1alpha1.AddonsConfig getAddonsConfig(); + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 10; + */ + com.google.container.v1alpha1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); + + /** + *
+   * The name of the Google Compute Engine
+   * [subnetwork](/compute/docs/subnetworks) to which the
+   * cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + */ + java.lang.String getSubnetwork(); + /** + *
+   * The name of the Google Compute Engine
+   * [subnetwork](/compute/docs/subnetworks) to which the
+   * cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); + + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + java.util.List + getNodePoolsList(); + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + com.google.container.v1alpha1.NodePool getNodePools(int index); + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + int getNodePoolsCount(); + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + java.util.List + getNodePoolsOrBuilderList(); + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 12; + */ + com.google.container.v1alpha1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index); + + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + java.util.List + getLocationsList(); + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + int getLocationsCount(); + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + java.lang.String getLocations(int index); + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + com.google.protobuf.ByteString + getLocationsBytes(int index); + + /** + *
+   * Kubernetes alpha features are enabled on this cluster. This includes alpha
+   * API groups (e.g. v1alpha1) and features that may not be production ready in
+   * the kubernetes version of the master and nodes.
+   * The cluster has no SLA for uptime and master/node upgrades are disabled.
+   * Alpha enabled clusters are automatically deleted thirty days after
+   * creation.
+   * 
+ * + * bool enable_kubernetes_alpha = 14; + */ + boolean getEnableKubernetesAlpha(); + + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + boolean hasNetworkPolicy(); + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + com.google.container.v1alpha1.NetworkPolicy getNetworkPolicy(); + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 19; + */ + com.google.container.v1alpha1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + boolean hasIpAllocationPolicy(); + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + com.google.container.v1alpha1.IPAllocationPolicy getIpAllocationPolicy(); + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1alpha1.IPAllocationPolicy ip_allocation_policy = 20; + */ + com.google.container.v1alpha1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder(); + + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + boolean hasMasterAuthorizedNetworksConfig(); + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig(); + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder(); + + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + boolean hasMaintenancePolicy(); + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + com.google.container.v1alpha1.MaintenancePolicy getMaintenancePolicy(); + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 23; + */ + com.google.container.v1alpha1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); + + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + boolean hasBinaryAuthorization(); + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + com.google.container.v1alpha1.BinaryAuthorization getBinaryAuthorization(); + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization binary_authorization = 24; + */ + com.google.container.v1alpha1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); + + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + boolean hasPodSecurityPolicyConfig(); + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + com.google.container.v1alpha1.PodSecurityPolicyConfig getPodSecurityPolicyConfig(); + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder getPodSecurityPolicyConfigOrBuilder(); + + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + boolean hasAutoscaling(); + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + com.google.container.v1alpha1.ClusterAutoscaling getAutoscaling(); + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling autoscaling = 26; + */ + com.google.container.v1alpha1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + *
+   * Configuration for the use of GCP IAM Service Accounts in applications in
+   * this cluster.
+   * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + boolean hasManagedPodIdentityConfig(); + /** + *
+   * Configuration for the use of GCP IAM Service Accounts in applications in
+   * this cluster.
+   * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + com.google.container.v1alpha1.ManagedPodIdentityConfig getManagedPodIdentityConfig(); + /** + *
+   * Configuration for the use of GCP IAM Service Accounts in applications in
+   * this cluster.
+   * 
+ * + * .google.container.v1alpha1.ManagedPodIdentityConfig managed_pod_identity_config = 32; + */ + com.google.container.v1alpha1.ManagedPodIdentityConfigOrBuilder getManagedPodIdentityConfigOrBuilder(); + + /** + *
+   * Defines behaviour of k8s scheduler.
+   * 
+ * + * .google.container.v1alpha1.Cluster.NodeSchedulingStrategy node_scheduling_strategy = 35; + */ + int getNodeSchedulingStrategyValue(); + /** + *
+   * Defines behaviour of k8s scheduler.
+   * 
+ * + * .google.container.v1alpha1.Cluster.NodeSchedulingStrategy node_scheduling_strategy = 35; + */ + com.google.container.v1alpha1.Cluster.NodeSchedulingStrategy getNodeSchedulingStrategy(); + + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + boolean hasPrivateClusterConfig(); + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + com.google.container.v1alpha1.PrivateClusterConfig getPrivateClusterConfig(); + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1alpha1.PrivateClusterConfig private_cluster_config = 37; + */ + com.google.container.v1alpha1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); + + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + java.lang.String getSelfLink(); + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + com.google.protobuf.ByteString + getSelfLinkBytes(); + + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + */ + java.lang.String getEndpoint(); + /** + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + */ + com.google.protobuf.ByteString + getEndpointBytes(); + + /** + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + */ + java.lang.String getInitialClusterVersion(); + /** + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + */ + com.google.protobuf.ByteString + getInitialClusterVersionBytes(); + + /** + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + */ + java.lang.String getCurrentMasterVersion(); + /** + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + */ + com.google.protobuf.ByteString + getCurrentMasterVersionBytes(); + + /** + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1alpha1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components.
+   * If they are currently at multiple versions because they're in the process
+   * of being upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getCurrentNodeVersion(); + /** + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1alpha1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components.
+   * If they are currently at multiple versions because they're in the process
+   * of being upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getCurrentNodeVersionBytes(); + + /** + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + */ + java.lang.String getCreateTime(); + /** + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + */ + com.google.protobuf.ByteString + getCreateTimeBytes(); + + /** + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1alpha1.Cluster.Status status = 107; + */ + int getStatusValue(); + /** + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1alpha1.Cluster.Status status = 107; + */ + com.google.container.v1alpha1.Cluster.Status getStatus(); + + /** + *
+   * [Output only] Additional information about the current status of this
+   * cluster, if available.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 108 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getStatusMessage(); + /** + *
+   * [Output only] Additional information about the current status of this
+   * cluster, if available.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 108 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getStatusMessageBytes(); + + /** + *
+   * [Output only] The size of the address space on each node for hosting
+   * containers. This is provisioned from within the `container_ipv4_cidr`
+   * range.
+   * 
+ * + * int32 node_ipv4_cidr_size = 109; + */ + int getNodeIpv4CidrSize(); + + /** + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + */ + java.lang.String getServicesIpv4Cidr(); + /** + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + */ + com.google.protobuf.ByteString + getServicesIpv4CidrBytes(); + + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getInstanceGroupUrlsList(); + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated int getInstanceGroupUrlsCount(); + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getInstanceGroupUrls(int index); + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index); + + /** + *
+   * [Output only] The number of nodes currently in the cluster.
+   * 
+ * + * int32 current_node_count = 112; + */ + int getCurrentNodeCount(); + + /** + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + */ + java.lang.String getExpireTime(); + /** + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + */ + com.google.protobuf.ByteString + getExpireTimeBytes(); + + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + java.lang.String getLocation(); + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + com.google.protobuf.ByteString + getLocationBytes(); + + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + java.util.List + getConditionsList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + com.google.container.v1alpha1.StatusCondition getConditions(int index); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + int getConditionsCount(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 118; + */ + com.google.container.v1alpha1.StatusConditionOrBuilder getConditionsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterServiceProto.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterServiceProto.java new file mode 100644 index 000000000000..7d46bc2dca1d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterServiceProto.java @@ -0,0 +1,1445 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public final class ClusterServiceProto { + private ClusterServiceProto() {} + 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_container_v1alpha1_NodeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_NodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_NodeConfig_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_NodeConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_NodeConfig_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_NodeConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_NodeTaint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_NodeTaint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_MasterAuth_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_MasterAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ClientCertificateConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ClientCertificateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_AddonsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_AddonsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_HttpLoadBalancing_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_HttpLoadBalancing_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_HorizontalPodAutoscaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_HorizontalPodAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_KubernetesDashboard_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_KubernetesDashboard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_NetworkPolicyConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_NetworkPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_PrivateClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_NetworkPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_NetworkPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_IPAllocationPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_IPAllocationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_BinaryAuthorization_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_BinaryAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_PodSecurityPolicyConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_PodSecurityPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ManagedPodIdentityConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ManagedPodIdentityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_StatusCondition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_StatusCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_Cluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_Cluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ClusterUpdate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ClusterUpdate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_Operation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_Operation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_OperationProgress_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_OperationProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_OperationProgress_Metric_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_OperationProgress_Metric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_CreateClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_CreateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_GetClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_GetClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_UpdateClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_UpdateNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_UpdateNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetNodePoolAutoscalingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetNodePoolAutoscalingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetLoggingServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetLoggingServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetMonitoringServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetMonitoringServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetAddonsConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetAddonsConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetLocationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetLocationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_UpdateMasterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_UpdateMasterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetMasterAuthRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetMasterAuthRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_DeleteClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ListClustersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ListClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ListClustersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ListClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_GetOperationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_GetOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ListOperationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ListOperationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_CancelOperationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_CancelOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ListOperationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ListOperationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_GetServerConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_GetServerConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ServerConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_CreateNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_CreateNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_DeleteNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_DeleteNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ListNodePoolsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ListNodePoolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_GetNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_GetNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_NodePool_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_NodePool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_NodeManagement_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_NodeManagement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_AutoUpgradeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_AutoUpgradeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_MaintenancePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_MaintenancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_MaintenanceWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_MaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_DailyMaintenanceWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_DailyMaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetNodePoolManagementRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetNodePoolManagementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetNodePoolSizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetNodePoolSizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_RollbackNodePoolUpgradeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_RollbackNodePoolUpgradeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ListNodePoolsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ListNodePoolsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ClusterAutoscaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ClusterAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ResourceLimit_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ResourceLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_NodePoolAutoscaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_NodePoolAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetLabelsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetLabelsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetLabelsRequest_ResourceLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetLabelsRequest_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetLegacyAbacRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetLegacyAbacRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_StartIPRotationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_StartIPRotationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_CompleteIPRotationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_CompleteIPRotationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_AcceleratorConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_AcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetNetworkPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetNetworkPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_SetMaintenancePolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_SetMaintenancePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ListUsableSubnetworksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ListUsableSubnetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_ListUsableSubnetworksResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_ListUsableSubnetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_UsableSubnetworkSecondaryRange_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_UsableSubnetworkSecondaryRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1alpha1_UsableSubnetwork_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1alpha1_UsableSubnetwork_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/container/v1alpha1/cluster_serv" + + "ice.proto\022\031google.container.v1alpha1\032\034go" + + "ogle/api/annotations.proto\032\036google/iam/v" + + "1/iam_policy.proto\032\032google/iam/v1/policy" + + ".proto\032\033google/protobuf/empty.proto\"\310\004\n\n" + + "NodeConfig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014disk" + + "_size_gb\030\002 \001(\005\022\024\n\014oauth_scopes\030\003 \003(\t\022\027\n\017" + + "service_account\030\t \001(\t\022E\n\010metadata\030\004 \003(\0132" + + "3.google.container.v1alpha1.NodeConfig.M" + + "etadataEntry\022\022\n\nimage_type\030\005 \001(\t\022A\n\006labe" + + "ls\030\006 \003(\01321.google.container.v1alpha1.Nod" + + "eConfig.LabelsEntry\022\027\n\017local_ssd_count\030\007" + + " \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible\030\n \001(\010\022" + + "B\n\014accelerators\030\013 \003(\0132,.google.container" + + ".v1alpha1.AcceleratorConfig\022\021\n\tdisk_type" + + "\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(\t\0224\n\006tain" + + "ts\030\017 \003(\0132$.google.container.v1alpha1.Nod" + + "eTaint\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\277\001\n\tNodeTaint\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022;\n\006effect\030\003 \001(\016" + + "2+.google.container.v1alpha1.NodeTaint.E" + + "ffect\"Y\n\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022" + + "\017\n\013NO_SCHEDULE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002" + + "\022\016\n\nNO_EXECUTE\020\003\"\327\001\n\nMasterAuth\022\020\n\010usern" + + "ame\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022U\n\031client_ce" + + "rtificate_config\030\003 \001(\01322.google.containe" + + "r.v1alpha1.ClientCertificateConfig\022\036\n\026cl" + + "uster_ca_certificate\030d \001(\t\022\032\n\022client_cer" + + "tificate\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027Cl" + + "ientCertificateConfig\022 \n\030issue_client_ce" + + "rtificate\030\001 \001(\010\"\317\002\n\014AddonsConfig\022I\n\023http" + + "_load_balancing\030\001 \001(\0132,.google.container" + + ".v1alpha1.HttpLoadBalancing\022W\n\032horizonta" + + "l_pod_autoscaling\030\002 \001(\01323.google.contain" + + "er.v1alpha1.HorizontalPodAutoscaling\022L\n\024" + + "kubernetes_dashboard\030\003 \001(\0132..google.cont" + + "ainer.v1alpha1.KubernetesDashboard\022M\n\025ne" + + "twork_policy_config\030\004 \001(\0132..google.conta" + + "iner.v1alpha1.NetworkPolicyConfig\"%\n\021Htt" + + "pLoadBalancing\022\020\n\010disabled\030\001 \001(\010\",\n\030Hori" + + "zontalPodAutoscaling\022\020\n\010disabled\030\001 \001(\010\"\'" + + "\n\023KubernetesDashboard\022\020\n\010disabled\030\001 \001(\010\"" + + "\'\n\023NetworkPolicyConfig\022\020\n\010disabled\030\001 \001(\010" + + "\"\250\001\n\024PrivateClusterConfig\022\034\n\024enable_priv" + + "ate_nodes\030\001 \001(\010\022\037\n\027enable_private_endpoi" + + "nt\030\002 \001(\010\022\036\n\026master_ipv4_cidr_block\030\003 \001(\t" + + "\022\030\n\020private_endpoint\030\004 \001(\t\022\027\n\017public_end" + + "point\030\005 \001(\t\"\302\001\n\036MasterAuthorizedNetworks" + + "Config\022\017\n\007enabled\030\001 \001(\010\022X\n\013cidr_blocks\030\002" + + " \003(\0132C.google.container.v1alpha1.MasterA" + + "uthorizedNetworksConfig.CidrBlock\0325\n\tCid" + + "rBlock\022\024\n\014display_name\030\001 \001(\t\022\022\n\ncidr_blo" + + "ck\030\002 \001(\t\"\227\001\n\rNetworkPolicy\022C\n\010provider\030\001" + + " \001(\01621.google.container.v1alpha1.Network" + + "Policy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Prov" + + "ider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO" + + "\020\001\"\206\003\n\022IPAllocationPolicy\022\026\n\016use_ip_alia" + + "ses\030\001 \001(\010\022\031\n\021create_subnetwork\030\002 \001(\010\022\027\n\017" + + "subnetwork_name\030\003 \001(\t\022\035\n\021cluster_ipv4_ci" + + "dr\030\004 \001(\tB\002\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(\tB\002\030\001" + + "\022\036\n\022services_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034clus" + + "ter_secondary_range_name\030\007 \001(\t\022%\n\035servic" + + "es_secondary_range_name\030\010 \001(\t\022\037\n\027cluster" + + "_ipv4_cidr_block\030\t \001(\t\022\034\n\024node_ipv4_cidr" + + "_block\030\n \001(\t\022 \n\030services_ipv4_cidr_block" + + "\030\013 \001(\t\022\033\n\023allow_route_overlap\030\014 \001(\010\"&\n\023B" + + "inaryAuthorization\022\017\n\007enabled\030\001 \001(\010\"*\n\027P" + + "odSecurityPolicyConfig\022\017\n\007enabled\030\001 \001(\010\"" + + "+\n\030ManagedPodIdentityConfig\022\017\n\007enabled\030\001" + + " \001(\010\"\251\001\n\017StatusCondition\022=\n\004code\030\001 \001(\0162/" + + ".google.container.v1alpha1.StatusConditi" + + "on.Code\022\017\n\007message\030\002 \001(\t\"F\n\004Code\022\013\n\007UNKN" + + "OWN\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_A" + + "CCOUNT_DELETED\020\002\"\342\017\n\007Cluster\022\014\n\004name\030\001 \001" + + "(\t\022\023\n\013description\030\002 \001(\t\022\032\n\022initial_node_" + + "count\030\003 \001(\005\022:\n\013node_config\030\004 \001(\0132%.googl" + + "e.container.v1alpha1.NodeConfig\022:\n\013maste" + + "r_auth\030\005 \001(\0132%.google.container.v1alpha1" + + ".MasterAuth\022\027\n\017logging_service\030\006 \001(\t\022\032\n\022" + + "monitoring_service\030\007 \001(\t\022\017\n\007network\030\010 \001(" + + "\t\022\031\n\021cluster_ipv4_cidr\030\t \001(\t\022>\n\raddons_c" + + "onfig\030\n \001(\0132\'.google.container.v1alpha1." + + "AddonsConfig\022\022\n\nsubnetwork\030\013 \001(\t\0227\n\nnode" + + "_pools\030\014 \003(\0132#.google.container.v1alpha1" + + ".NodePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027enable_k" + + "ubernetes_alpha\030\016 \001(\010\022@\n\016network_policy\030" + + "\023 \001(\0132(.google.container.v1alpha1.Networ" + + "kPolicy\022K\n\024ip_allocation_policy\030\024 \001(\0132-." + + "google.container.v1alpha1.IPAllocationPo" + + "licy\022d\n!master_authorized_networks_confi" + + "g\030\026 \001(\01329.google.container.v1alpha1.Mast" + + "erAuthorizedNetworksConfig\022H\n\022maintenanc" + + "e_policy\030\027 \001(\0132,.google.container.v1alph" + + "a1.MaintenancePolicy\022L\n\024binary_authoriza" + + "tion\030\030 \001(\0132..google.container.v1alpha1.B" + + "inaryAuthorization\022V\n\032pod_security_polic" + + "y_config\030\031 \001(\01322.google.container.v1alph" + + "a1.PodSecurityPolicyConfig\022B\n\013autoscalin" + + "g\030\032 \001(\0132-.google.container.v1alpha1.Clus" + + "terAutoscaling\022X\n\033managed_pod_identity_c" + + "onfig\030 \001(\01323.google.container.v1alpha1." + + "ManagedPodIdentityConfig\022[\n\030node_schedul" + + "ing_strategy\030# \001(\01629.google.container.v1" + + "alpha1.Cluster.NodeSchedulingStrategy\022O\n" + + "\026private_cluster_config\030% \001(\0132/.google.c" + + "ontainer.v1alpha1.PrivateClusterConfig\022\021" + + "\n\tself_link\030d \001(\t\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010e" + + "ndpoint\030f \001(\t\022\037\n\027initial_cluster_version" + + "\030g \001(\t\022\036\n\026current_master_version\030h \001(\t\022 " + + "\n\024current_node_version\030i \001(\tB\002\030\001\022\023\n\013crea" + + "te_time\030j \001(\t\0229\n\006status\030k \001(\0162).google.c" + + "ontainer.v1alpha1.Cluster.Status\022\032\n\016stat" + + "us_message\030l \001(\tB\002\030\001\022\033\n\023node_ipv4_cidr_s" + + "ize\030m \001(\005\022\032\n\022services_ipv4_cidr\030n \001(\t\022\037\n" + + "\023instance_group_urls\030o \003(\tB\002\030\001\022\032\n\022curren" + + "t_node_count\030p \001(\005\022\023\n\013expire_time\030q \001(\t\022" + + "\020\n\010location\030r \001(\t\022>\n\nconditions\030v \003(\0132*." + + "google.container.v1alpha1.StatusConditio" + + "n\"w\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014P" + + "ROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILIN" + + "G\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED" + + "\020\006\"q\n\026NodeSchedulingStrategy\022\030\n\024STRATEGY" + + "_UNSPECIFIED\020\000\022\035\n\031PRIORITIZE_LEAST_UTILI" + + "ZED\020\001\022\036\n\032PRIORITIZE_MEDIUM_UTILIZED\020\002\"\376\005" + + "\n\rClusterUpdate\022\034\n\024desired_node_version\030" + + "\004 \001(\t\022\"\n\032desired_monitoring_service\030\005 \001(" + + "\t\022F\n\025desired_addons_config\030\006 \001(\0132\'.googl" + + "e.container.v1alpha1.AddonsConfig\022\034\n\024des" + + "ired_node_pool_id\030\007 \001(\t\022\032\n\022desired_image" + + "_type\030\010 \001(\t\022U\n\035desired_node_pool_autosca" + + "ling\030\t \001(\0132..google.container.v1alpha1.N" + + "odePoolAutoscaling\022\031\n\021desired_locations\030" + + "\n \003(\t\022l\n)desired_master_authorized_netwo" + + "rks_config\030\014 \001(\01329.google.container.v1al" + + "pha1.MasterAuthorizedNetworksConfig\022^\n\"d" + + "esired_pod_security_policy_config\030\016 \001(\0132" + + "2.google.container.v1alpha1.PodSecurityP" + + "olicyConfig\022R\n\033desired_cluster_autoscali" + + "ng\030\017 \001(\0132-.google.container.v1alpha1.Clu" + + "sterAutoscaling\022T\n\034desired_binary_author" + + "ization\030\020 \001(\0132..google.container.v1alpha" + + "1.BinaryAuthorization\022\037\n\027desired_logging" + + "_service\030\023 \001(\t\022\036\n\026desired_master_version" + + "\030d \001(\t\"\375\007\n\tOperation\022\014\n\004name\030\001 \001(\t\022\020\n\004zo" + + "ne\030\002 \001(\tB\002\030\001\022A\n\016operation_type\030\003 \001(\0162).g" + + "oogle.container.v1alpha1.Operation.Type\022" + + ";\n\006status\030\004 \001(\0162+.google.container.v1alp" + + "ha1.Operation.Status\022\016\n\006detail\030\010 \001(\t\022\032\n\016" + + "status_message\030\005 \001(\tB\002\030\001\022\021\n\tself_link\030\006 " + + "\001(\t\022\023\n\013target_link\030\007 \001(\t\022\020\n\010location\030\t \001" + + "(\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t" + + "\022>\n\010progress\030\014 \001(\0132,.google.container.v1" + + "alpha1.OperationProgress\022F\n\022cluster_cond" + + "itions\030\r \003(\0132*.google.container.v1alpha1" + + ".StatusCondition\022G\n\023nodepool_conditions\030" + + "\016 \003(\0132*.google.container.v1alpha1.Status" + + "Condition\"R\n\006Status\022\026\n\022STATUS_UNSPECIFIE" + + "D\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022" + + "\014\n\010ABORTING\020\004\"\236\003\n\004Type\022\024\n\020TYPE_UNSPECIFI" + + "ED\020\000\022\022\n\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_CLUST" + + "ER\020\002\022\022\n\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_NODE" + + "S\020\004\022\022\n\016REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTE" + + "R\020\006\022\024\n\020CREATE_NODE_POOL\020\007\022\024\n\020DELETE_NODE" + + "_POOL\020\010\022\034\n\030SET_NODE_POOL_MANAGEMENT\020\t\022\025\n" + + "\021AUTO_REPAIR_NODES\020\n\022\026\n\022AUTO_UPGRADE_NOD" + + "ES\020\013\022\016\n\nSET_LABELS\020\014\022\023\n\017SET_MASTER_AUTH\020" + + "\r\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\026\n\022SET_NETWORK" + + "_POLICY\020\017\022\032\n\026SET_MAINTENANCE_POLICY\020\020\022\037\n" + + "\033UPDATE_IP_ALLOCATION_POLICY\020\021\"\310\002\n\021Opera" + + "tionProgress\022\014\n\004name\030\001 \001(\t\022;\n\006status\030\002 \001" + + "(\0162+.google.container.v1alpha1.Operation" + + ".Status\022D\n\007metrics\030\003 \003(\01323.google.contai" + + "ner.v1alpha1.OperationProgress.Metric\022<\n" + + "\006stages\030\004 \003(\0132,.google.container.v1alpha" + + "1.OperationProgress\032d\n\006Metric\022\014\n\004name\030\001 " + + "\001(\t\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014double_value" + + "\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001(\tH\000B\007\n\005valu" + + "e\"\205\001\n\024CreateClusterRequest\022\026\n\nproject_id" + + "\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\0223\n\007cluster\030" + + "\003 \001(\0132\".google.container.v1alpha1.Cluste" + + "r\022\016\n\006parent\030\005 \001(\t\"c\n\021GetClusterRequest\022\026" + + "\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001" + + "\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001(\t\"\240" + + "\001\n\024UpdateClusterRequest\022\026\n\nproject_id\030\001 " + + "\001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030" + + "\003 \001(\tB\002\030\001\0228\n\006update\030\004 \001(\0132(.google.conta" + + "iner.v1alpha1.ClusterUpdate\022\014\n\004name\030\005 \001(" + + "\t\"\253\001\n\025UpdateNodePoolRequest\022\026\n\nproject_i" + + "d\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster" + + "_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022" + + "\024\n\014node_version\030\005 \001(\t\022\022\n\nimage_type\030\006 \001(" + + "\t\022\014\n\004name\030\010 \001(\t\"\316\001\n\035SetNodePoolAutoscali" + + "ngRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" + + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014n" + + "ode_pool_id\030\004 \001(\tB\002\030\001\022C\n\013autoscaling\030\005 \001" + + "(\0132..google.container.v1alpha1.NodePoolA" + + "utoscaling\022\014\n\004name\030\006 \001(\t\"\177\n\030SetLoggingSe" + + "rviceRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\014\n\004" + + "zone\030\002 \001(\t\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\027\n\017lo" + + "gging_service\030\004 \001(\t\022\014\n\004name\030\005 \001(\t\"\211\001\n\033Se" + + "tMonitoringServiceRequest\022\026\n\nproject_id\030" + + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_i" + + "d\030\003 \001(\tB\002\030\001\022\032\n\022monitoring_service\030\004 \001(\t\022" + + "\014\n\004name\030\006 \001(\t\"\250\001\n\026SetAddonsConfigRequest" + + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" + + "\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022>\n\raddons_con" + + "fig\030\004 \001(\0132\'.google.container.v1alpha1.Ad" + + "donsConfig\022\014\n\004name\030\006 \001(\t\"x\n\023SetLocations" + + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" + + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\021\n\tloc" + + "ations\030\004 \003(\t\022\014\n\004name\030\006 \001(\t\"}\n\023UpdateMast" + + "erRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" + + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\026\n\016m" + + "aster_version\030\004 \001(\t\022\014\n\004name\030\007 \001(\t\"\267\002\n\024Se" + + "tMasterAuthRequest\022\026\n\nproject_id\030\001 \001(\tB\002" + + "\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\t" + + "B\002\030\001\022F\n\006action\030\004 \001(\01626.google.container." + + "v1alpha1.SetMasterAuthRequest.Action\0225\n\006" + + "update\030\005 \001(\0132%.google.container.v1alpha1" + + ".MasterAuth\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007U" + + "NKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_P" + + "ASSWORD\020\002\022\020\n\014SET_USERNAME\020\003\"f\n\024DeleteClu" + + "sterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004z" + + "one\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n" + + "\004name\030\004 \001(\t\"O\n\023ListClustersRequest\022\026\n\npr" + + "oject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006" + + "parent\030\004 \001(\t\"c\n\024ListClustersResponse\0224\n\010" + + "clusters\030\001 \003(\0132\".google.container.v1alph" + + "a1.Cluster\022\025\n\rmissing_zones\030\002 \003(\t\"g\n\023Get" + + "OperationRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" + + "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014operation_id\030\003 \001(\t" + + "B\002\030\001\022\014\n\004name\030\005 \001(\t\"Q\n\025ListOperationsRequ" + + "est\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(" + + "\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"j\n\026CancelOperation" + + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" + + "\002 \001(\tB\002\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004n" + + "ame\030\004 \001(\t\"i\n\026ListOperationsResponse\0228\n\no" + + "perations\030\001 \003(\0132$.google.container.v1alp" + + "ha1.Operation\022\025\n\rmissing_zones\030\002 \003(\t\"P\n\026" + + "GetServerConfigRequest\022\026\n\nproject_id\030\001 \001" + + "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"\242" + + "\001\n\014ServerConfig\022\037\n\027default_cluster_versi" + + "on\030\001 \001(\t\022\033\n\023valid_node_versions\030\003 \003(\t\022\032\n" + + "\022default_image_type\030\004 \001(\t\022\031\n\021valid_image" + + "_types\030\005 \003(\t\022\035\n\025valid_master_versions\030\006 " + + "\003(\t\"\241\001\n\025CreateNodePoolRequest\022\026\n\nproject" + + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclust" + + "er_id\030\003 \001(\tB\002\030\001\0226\n\tnode_pool\030\004 \001(\0132#.goo" + + "gle.container.v1alpha1.NodePool\022\016\n\006paren" + + "t\030\006 \001(\t\"\201\001\n\025DeleteNodePoolRequest\022\026\n\npro" + + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" + + "luster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(" + + "\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"h\n\024ListNodePoolsRequ" + + "est\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(" + + "\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\016\n\006parent\030" + + "\005 \001(\t\"~\n\022GetNodePoolRequest\022\026\n\nproject_i" + + "d\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster" + + "_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022" + + "\014\n\004name\030\006 \001(\t\"\314\004\n\010NodePool\022\014\n\004name\030\001 \001(\t" + + "\0225\n\006config\030\002 \001(\0132%.google.container.v1al" + + "pha1.NodeConfig\022\032\n\022initial_node_count\030\003 " + + "\001(\005\022C\n\013autoscaling\030\004 \001(\0132..google.contai" + + "ner.v1alpha1.NodePoolAutoscaling\022=\n\nmana" + + "gement\030\005 \001(\0132).google.container.v1alpha1" + + ".NodeManagement\022\021\n\tself_link\030d \001(\t\022\017\n\007ve" + + "rsion\030e \001(\t\022\033\n\023instance_group_urls\030f \003(\t" + + "\022:\n\006status\030g \001(\0162*.google.container.v1al" + + "pha1.NodePool.Status\022\032\n\016status_message\030h" + + " \001(\tB\002\030\001\022>\n\nconditions\030i \003(\0132*.google.co" + + "ntainer.v1alpha1.StatusCondition\"\201\001\n\006Sta" + + "tus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISION" + + "ING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ERROR" + + "\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERR" + + "OR\020\006\"\203\001\n\016NodeManagement\022\024\n\014auto_upgrade\030" + + "\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022F\n\017upgrade_op" + + "tions\030\n \001(\0132-.google.container.v1alpha1." + + "AutoUpgradeOptions\"J\n\022AutoUpgradeOptions" + + "\022\037\n\027auto_upgrade_start_time\030\001 \001(\t\022\023\n\013des" + + "cription\030\002 \001(\t\"Q\n\021MaintenancePolicy\022<\n\006w" + + "indow\030\001 \001(\0132,.google.container.v1alpha1." + + "MaintenanceWindow\"t\n\021MaintenanceWindow\022U" + + "\n\030daily_maintenance_window\030\002 \001(\01321.googl" + + "e.container.v1alpha1.DailyMaintenanceWin" + + "dowH\000B\010\n\006policy\">\n\026DailyMaintenanceWindo" + + "w\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"" + + "\307\001\n\034SetNodePoolManagementRequest\022\026\n\nproj" + + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" + + "uster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\t" + + "B\002\030\001\022=\n\nmanagement\030\005 \001(\0132).google.contai" + + "ner.v1alpha1.NodeManagement\022\014\n\004name\030\007 \001(" + + "\t\"\226\001\n\026SetNodePoolSizeRequest\022\026\n\nproject_" + + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluste" + + "r_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001" + + "\022\022\n\nnode_count\030\005 \001(\005\022\014\n\004name\030\007 \001(\t\"\212\001\n\036R" + + "ollbackNodePoolUpgradeRequest\022\026\n\nproject" + + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclust" + + "er_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030" + + "\001\022\014\n\004name\030\006 \001(\t\"P\n\025ListNodePoolsResponse" + + "\0227\n\nnode_pools\030\001 \003(\0132#.google.container." + + "v1alpha1.NodePool\"}\n\022ClusterAutoscaling\022" + + "$\n\034enable_node_autoprovisioning\030\001 \001(\010\022A\n" + + "\017resource_limits\030\002 \003(\0132(.google.containe" + + "r.v1alpha1.ResourceLimit\"H\n\rResourceLimi" + + "t\022\025\n\rresource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(" + + "\003\022\017\n\007maximum\030\003 \001(\003\"o\n\023NodePoolAutoscalin" + + "g\022\017\n\007enabled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001" + + "(\005\022\026\n\016max_node_count\030\003 \001(\005\022\027\n\017autoprovis" + + "ioned\030\004 \001(\010\"\216\002\n\020SetLabelsRequest\022\026\n\nproj" + + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" + + "uster_id\030\003 \001(\tB\002\030\001\022X\n\017resource_labels\030\004 " + + "\003(\0132?.google.container.v1alpha1.SetLabel" + + "sRequest.ResourceLabelsEntry\022\031\n\021label_fi" + + "ngerprint\030\005 \001(\t\022\014\n\004name\030\007 \001(\t\0325\n\023Resourc" + + "eLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"w\n\024SetLegacyAbacRequest\022\026\n\nproject_" + + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluste" + + "r_id\030\003 \001(\tB\002\030\001\022\017\n\007enabled\030\004 \001(\010\022\014\n\004name\030" + + "\006 \001(\t\"\204\001\n\026StartIPRotationRequest\022\026\n\nproj" + + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" + + "uster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\032\n\022rota" + + "te_credentials\030\007 \001(\010\"k\n\031CompleteIPRotati" + + "onRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" + + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004n" + + "ame\030\007 \001(\t\"H\n\021AcceleratorConfig\022\031\n\021accele" + + "rator_count\030\001 \001(\003\022\030\n\020accelerator_type\030\002 " + + "\001(\t\"\253\001\n\027SetNetworkPolicyRequest\022\026\n\nproje" + + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclu" + + "ster_id\030\003 \001(\tB\002\030\001\022@\n\016network_policy\030\004 \001(" + + "\0132(.google.container.v1alpha1.NetworkPol" + + "icy\022\014\n\004name\030\006 \001(\t\"\253\001\n\033SetMaintenancePoli" + + "cyRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004zone\030\002 " + + "\001(\t\022\022\n\ncluster_id\030\003 \001(\t\022H\n\022maintenance_p" + + "olicy\030\004 \001(\0132,.google.container.v1alpha1." + + "MaintenancePolicy\022\014\n\004name\030\005 \001(\t\"e\n\034ListU" + + "sableSubnetworksRequest\022\016\n\006parent\030\001 \001(\t\022" + + "\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npa" + + "ge_token\030\004 \001(\t\"z\n\035ListUsableSubnetworksR" + + "esponse\022@\n\013subnetworks\030\001 \003(\0132+.google.co" + + "ntainer.v1alpha1.UsableSubnetwork\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\206\002\n\036UsableSubnetworkS" + + "econdaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_" + + "cidr_range\030\002 \001(\t\022P\n\006status\030\003 \001(\0162@.googl" + + "e.container.v1alpha1.UsableSubnetworkSec" + + "ondaryRange.Status\"g\n\006Status\022\013\n\007UNKNOWN\020" + + "\000\022\n\n\006UNUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_" + + "USE_SHAREABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_PO" + + "D\020\004\"\276\001\n\020UsableSubnetwork\022\022\n\nsubnetwork\030\001" + + " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + + " \001(\t\022V\n\023secondary_ip_ranges\030\004 \003(\01329.goog" + + "le.container.v1alpha1.UsableSubnetworkSe" + + "condaryRange\022\026\n\016status_message\030\005 \001(\t2\244D\n" + + "\016ClusterManager\022\344\001\n\014ListClusters\022..googl" + + "e.container.v1alpha1.ListClustersRequest" + + "\032/.google.container.v1alpha1.ListCluster" + + "sResponse\"s\202\323\344\223\002m\0222/v1alpha1/{parent=pro" + + "jects/*/locations/*}/clustersZ7\0225/v1alph" + + "a1/projects/{project_id}/zones/{zone}/cl" + + "usters\022\341\001\n\nGetCluster\022,.google.container" + + ".v1alpha1.GetClusterRequest\032\".google.con" + + "tainer.v1alpha1.Cluster\"\200\001\202\323\344\223\002z\0222/v1alp" + + "ha1/{name=projects/*/locations/*/cluster" + + "s/*}ZD\022B/v1alpha1/projects/{project_id}/" + + "zones/{zone}/clusters/{cluster_id}\022\341\001\n\rC" + + "reateCluster\022/.google.container.v1alpha1" + + ".CreateClusterRequest\032$.google.container" + + ".v1alpha1.Operation\"y\202\323\344\223\002s\"2/v1alpha1/{" + + "parent=projects/*/locations/*}/clusters:" + + "\001*Z:\"5/v1alpha1/projects/{project_id}/zo" + + "nes/{zone}/clusters:\001*\022\360\001\n\rUpdateCluster" + + "\022/.google.container.v1alpha1.UpdateClust" + + "erRequest\032$.google.container.v1alpha1.Op" + + "eration\"\207\001\202\323\344\223\002\200\001\0322/v1alpha1/{name=proje" + + "cts/*/locations/*/clusters/*}:\001*ZG\032B/v1a" + + "lpha1/projects/{project_id}/zones/{zone}" + + "/clusters/{cluster_id}:\001*\022\236\002\n\016UpdateNode" + + "Pool\0220.google.container.v1alpha1.UpdateN" + + "odePoolRequest\032$.google.container.v1alph" + + "a1.Operation\"\263\001\202\323\344\223\002\254\001\032>/v1alpha1/{name=" + + "projects/*/locations/*/clusters/*/nodePo" + + "ols/*}:\001*Zg\"b/v1alpha1/projects/{project" + + "_id}/zones/{zone}/clusters/{cluster_id}/" + + "nodePools/{node_pool_id}/update:\001*\022\302\002\n\026S" + + "etNodePoolAutoscaling\0228.google.container" + + ".v1alpha1.SetNodePoolAutoscalingRequest\032" + + "$.google.container.v1alpha1.Operation\"\307\001" + + "\202\323\344\223\002\300\001\"M/v1alpha1/{name=projects/*/loca" + + "tions/*/clusters/*/nodePools/*}:setAutos" + + "caling:\001*Zl\"g/v1alpha1/projects/{project" + + "_id}/zones/{zone}/clusters/{cluster_id}/" + + "nodePools/{node_pool_id}/autoscaling:\001*\022" + + "\213\002\n\021SetLoggingService\0223.google.container" + + ".v1alpha1.SetLoggingServiceRequest\032$.goo" + + "gle.container.v1alpha1.Operation\"\232\001\202\323\344\223\002" + + "\223\001\"=/v1alpha1/{name=projects/*/locations" + + "/*/clusters/*}:setLogging:\001*ZO\"J/v1alpha" + + "1/projects/{project_id}/zones/{zone}/clu" + + "sters/{cluster_id}/logging:\001*\022\227\002\n\024SetMon" + + "itoringService\0226.google.container.v1alph" + + "a1.SetMonitoringServiceRequest\032$.google.", + "container.v1alpha1.Operation\"\240\001\202\323\344\223\002\231\001\"@" + + "/v1alpha1/{name=projects/*/locations/*/c" + + "lusters/*}:setMonitoring:\001*ZR\"M/v1alpha1" + + "/projects/{project_id}/zones/{zone}/clus" + + "ters/{cluster_id}/monitoring:\001*\022\205\002\n\017SetA" + + "ddonsConfig\0221.google.container.v1alpha1." + + "SetAddonsConfigRequest\032$.google.containe" + + "r.v1alpha1.Operation\"\230\001\202\323\344\223\002\221\001\"/v1alpha1/{par" + + "ent=projects/*/locations/*/clusters/*}/n" + + "odePoolsZN\022L/v1alpha1/projects/{project_" + + "id}/zones/{zone}/clusters/{cluster_id}/n" + + "odePools\022\212\002\n\013GetNodePool\022-.google.contai" + + "ner.v1alpha1.GetNodePoolRequest\032#.google" + + ".container.v1alpha1.NodePool\"\246\001\202\323\344\223\002\237\001\022>" + + "/v1alpha1/{name=projects/*/locations/*/c" + + "lusters/*/nodePools/*}Z]\022[/v1alpha1/proj" + + "ects/{project_id}/zones/{zone}/clusters/" + + "{cluster_id}/nodePools/{node_pool_id}\022\210\002" + + "\n\016CreateNodePool\0220.google.container.v1al" + + "pha1.CreateNodePoolRequest\032$.google.cont" + + "ainer.v1alpha1.Operation\"\235\001\202\323\344\223\002\226\001\">/v1a" + + "lpha1/{parent=projects/*/locations/*/clu" + + "sters/*}/nodePools:\001*ZQ\"L/v1alpha1/proje" + + "cts/{project_id}/zones/{zone}/clusters/{" + + "cluster_id}/nodePools:\001*\022\221\002\n\016DeleteNodeP" + + "ool\0220.google.container.v1alpha1.DeleteNo" + + "dePoolRequest\032$.google.container.v1alpha" + + "1.Operation\"\246\001\202\323\344\223\002\237\001*>/v1alpha1/{name=p" + + "rojects/*/locations/*/clusters/*/nodePoo" + + "ls/*}Z]*[/v1alpha1/projects/{project_id}" + + "/zones/{zone}/clusters/{cluster_id}/node" + + "Pools/{node_pool_id}\022\273\002\n\027RollbackNodePoo" + + "lUpgrade\0229.google.container.v1alpha1.Rol" + + "lbackNodePoolUpgradeRequest\032$.google.con" + + "tainer.v1alpha1.Operation\"\276\001\202\323\344\223\002\267\001\"G/v1" + + "alpha1/{name=projects/*/locations/*/clus" + + "ters/*/nodePools/*}:rollback:\001*Zi\"d/v1al" + + "pha1/projects/{project_id}/zones/{zone}/" + + "clusters/{cluster_id}/nodePools/{node_po" + + "ol_id}:rollback:\001*\022\301\002\n\025SetNodePoolManage" + + "ment\0227.google.container.v1alpha1.SetNode" + + "PoolManagementRequest\032$.google.container" + + ".v1alpha1.Operation\"\310\001\202\323\344\223\002\301\001\"L/v1alpha1" + + "/{name=projects/*/locations/*/clusters/*" + + "/nodePools/*}:setManagement:\001*Zn\"i/v1alp" + + "ha1/projects/{project_id}/zones/{zone}/c" + + "lusters/{cluster_id}/nodePools/{node_poo" + + "l_id}/setManagement:\001*\022\211\002\n\tSetLabels\022+.g" + + "oogle.container.v1alpha1.SetLabelsReques" + + "t\032$.google.container.v1alpha1.Operation\"" + + "\250\001\202\323\344\223\002\241\001\"D/v1alpha1/{name=projects/*/lo" + + "cations/*/clusters/*}:setResourceLabels:" + + "\001*ZV\"Q/v1alpha1/projects/{project_id}/zo" + + "nes/{zone}/clusters/{cluster_id}/resourc" + + "eLabels:\001*\022\211\002\n\rSetLegacyAbac\022/.google.co" + + "ntainer.v1alpha1.SetLegacyAbacRequest\032$." + + "google.container.v1alpha1.Operation\"\240\001\202\323" + + "\344\223\002\231\001\"@/v1alpha1/{name=projects/*/locati" + + "ons/*/clusters/*}:setLegacyAbac:\001*ZR\"M/v" + + "1alpha1/projects/{project_id}/zones/{zon" + + "e}/clusters/{cluster_id}/legacyAbac:\001*\022\224" + + "\002\n\017StartIPRotation\0221.google.container.v1" + + "alpha1.StartIPRotationRequest\032$.google.c" + + "ontainer.v1alpha1.Operation\"\247\001\202\323\344\223\002\240\001\"B/" + + "v1alpha1/{name=projects/*/locations/*/cl" + + "usters/*}:startIpRotation:\001*ZW\"R/v1alpha" + + "1/projects/{project_id}/zones/{zone}/clu" + + "sters/{cluster_id}:startIpRotation:\001*\022\240\002" + + "\n\022CompleteIPRotation\0224.google.container." + + "v1alpha1.CompleteIPRotationRequest\032$.goo" + + "gle.container.v1alpha1.Operation\"\255\001\202\323\344\223\002" + + "\246\001\"E/v1alpha1/{name=projects/*/locations" + + "/*/clusters/*}:completeIpRotation:\001*ZZ\"U" + + "/v1alpha1/projects/{project_id}/zones/{z" + + "one}/clusters/{cluster_id}:completeIpRot" + + "ation:\001*\022\251\002\n\017SetNodePoolSize\0221.google.co" + + "ntainer.v1alpha1.SetNodePoolSizeRequest\032" + + "$.google.container.v1alpha1.Operation\"\274\001" + + "\202\323\344\223\002\265\001\"F/v1alpha1/{name=projects/*/loca" + + "tions/*/clusters/*/nodePools/*}:setSize:" + + "\001*Zh\"c/v1alpha1/projects/{project_id}/zo" + + "nes/{zone}/clusters/{cluster_id}/nodePoo" + + "ls/{node_pool_id}/setSize:\001*\022\230\002\n\020SetNetw" + + "orkPolicy\0222.google.container.v1alpha1.Se" + + "tNetworkPolicyRequest\032$.google.container" + + ".v1alpha1.Operation\"\251\001\202\323\344\223\002\242\001\"C/v1alpha1" + + "/{name=projects/*/locations/*/clusters/*" + + "}:setNetworkPolicy:\001*ZX\"S/v1alpha1/proje" + + "cts/{project_id}/zones/{zone}/clusters/{" + + "cluster_id}:setNetworkPolicy:\001*\022\250\002\n\024SetM" + + "aintenancePolicy\0226.google.container.v1al" + + "pha1.SetMaintenancePolicyRequest\032$.googl" + + "e.container.v1alpha1.Operation\"\261\001\202\323\344\223\002\252\001" + + "\"G/v1alpha1/{name=projects/*/locations/*" + + "/clusters/*}:setMaintenancePolicy:\001*Z\\\"W" + + "/v1alpha1/projects/{project_id}/zones/{z" + + "one}/clusters/{cluster_id}:setMaintenanc" + + "ePolicy:\001*\022\203\001\n\014SetIamPolicy\022\".google.iam" + + ".v1.SetIamPolicyRequest\032\025.google.iam.v1." + + "Policy\"8\202\323\344\223\0022\"-/v1alpha1/{resource=proj" + + "ects/**}:setIamPolicy:\001*\022\203\001\n\014GetIamPolic" + + "y\022\".google.iam.v1.GetIamPolicyRequest\032\025." + + "google.iam.v1.Policy\"8\202\323\344\223\0022\"-/v1alpha1/" + + "{resource=projects/**}:getIamPolicy:\001*\022\251" + + "\001\n\022TestIamPermissions\022(.google.iam.v1.Te" + + "stIamPermissionsRequest\032).google.iam.v1." + + "TestIamPermissionsResponse\">\202\323\344\223\0028\"3/v1a" + + "lpha1/{resource=projects/**}:testIamPerm" + + "issions:\001*\022\316\001\n\025ListUsableSubnetworks\0227.g" + + "oogle.container.v1alpha1.ListUsableSubne" + + "tworksRequest\0328.google.container.v1alpha" + + "1.ListUsableSubnetworksResponse\"B\202\323\344\223\002<\022" + + ":/v1alpha1/{parent=projects/*}/aggregate" + + "d/usableSubnetworksB\276\001\n\035com.google.conta" + + "iner.v1alpha1B\023ClusterServiceProtoP\001ZBgo" + + "ogle.golang.org/genproto/googleapis/cont" + + "ainer/v1alpha1;container\252\002\037Google.Cloud." + + "Container.V1Alpha1\312\002\037Google\\Cloud\\Contai" + + "ner\\V1alpha1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }, assigner); + internal_static_google_container_v1alpha1_NodeConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_container_v1alpha1_NodeConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_NodeConfig_descriptor, + new java.lang.String[] { "MachineType", "DiskSizeGb", "OauthScopes", "ServiceAccount", "Metadata", "ImageType", "Labels", "LocalSsdCount", "Tags", "Preemptible", "Accelerators", "DiskType", "MinCpuPlatform", "Taints", }); + internal_static_google_container_v1alpha1_NodeConfig_MetadataEntry_descriptor = + internal_static_google_container_v1alpha1_NodeConfig_descriptor.getNestedTypes().get(0); + internal_static_google_container_v1alpha1_NodeConfig_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_NodeConfig_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_container_v1alpha1_NodeConfig_LabelsEntry_descriptor = + internal_static_google_container_v1alpha1_NodeConfig_descriptor.getNestedTypes().get(1); + internal_static_google_container_v1alpha1_NodeConfig_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_NodeConfig_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_container_v1alpha1_NodeTaint_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_container_v1alpha1_NodeTaint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_NodeTaint_descriptor, + new java.lang.String[] { "Key", "Value", "Effect", }); + internal_static_google_container_v1alpha1_MasterAuth_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_container_v1alpha1_MasterAuth_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_MasterAuth_descriptor, + new java.lang.String[] { "Username", "Password", "ClientCertificateConfig", "ClusterCaCertificate", "ClientCertificate", "ClientKey", }); + internal_static_google_container_v1alpha1_ClientCertificateConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_container_v1alpha1_ClientCertificateConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ClientCertificateConfig_descriptor, + new java.lang.String[] { "IssueClientCertificate", }); + internal_static_google_container_v1alpha1_AddonsConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_container_v1alpha1_AddonsConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_AddonsConfig_descriptor, + new java.lang.String[] { "HttpLoadBalancing", "HorizontalPodAutoscaling", "KubernetesDashboard", "NetworkPolicyConfig", }); + internal_static_google_container_v1alpha1_HttpLoadBalancing_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_container_v1alpha1_HttpLoadBalancing_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_HttpLoadBalancing_descriptor, + new java.lang.String[] { "Disabled", }); + internal_static_google_container_v1alpha1_HorizontalPodAutoscaling_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_container_v1alpha1_HorizontalPodAutoscaling_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_HorizontalPodAutoscaling_descriptor, + new java.lang.String[] { "Disabled", }); + internal_static_google_container_v1alpha1_KubernetesDashboard_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_container_v1alpha1_KubernetesDashboard_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_KubernetesDashboard_descriptor, + new java.lang.String[] { "Disabled", }); + internal_static_google_container_v1alpha1_NetworkPolicyConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_container_v1alpha1_NetworkPolicyConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_NetworkPolicyConfig_descriptor, + new java.lang.String[] { "Disabled", }); + internal_static_google_container_v1alpha1_PrivateClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_container_v1alpha1_PrivateClusterConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_PrivateClusterConfig_descriptor, + new java.lang.String[] { "EnablePrivateNodes", "EnablePrivateEndpoint", "MasterIpv4CidrBlock", "PrivateEndpoint", "PublicEndpoint", }); + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_descriptor, + new java.lang.String[] { "Enabled", "CidrBlocks", }); + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor = + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_descriptor.getNestedTypes().get(0); + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor, + new java.lang.String[] { "DisplayName", "CidrBlock", }); + internal_static_google_container_v1alpha1_NetworkPolicy_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_container_v1alpha1_NetworkPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_NetworkPolicy_descriptor, + new java.lang.String[] { "Provider", "Enabled", }); + internal_static_google_container_v1alpha1_IPAllocationPolicy_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_container_v1alpha1_IPAllocationPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_IPAllocationPolicy_descriptor, + new java.lang.String[] { "UseIpAliases", "CreateSubnetwork", "SubnetworkName", "ClusterIpv4Cidr", "NodeIpv4Cidr", "ServicesIpv4Cidr", "ClusterSecondaryRangeName", "ServicesSecondaryRangeName", "ClusterIpv4CidrBlock", "NodeIpv4CidrBlock", "ServicesIpv4CidrBlock", "AllowRouteOverlap", }); + internal_static_google_container_v1alpha1_BinaryAuthorization_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_container_v1alpha1_BinaryAuthorization_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_BinaryAuthorization_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_container_v1alpha1_PodSecurityPolicyConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_container_v1alpha1_PodSecurityPolicyConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_PodSecurityPolicyConfig_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_container_v1alpha1_ManagedPodIdentityConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_container_v1alpha1_ManagedPodIdentityConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ManagedPodIdentityConfig_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_container_v1alpha1_StatusCondition_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_container_v1alpha1_StatusCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_StatusCondition_descriptor, + new java.lang.String[] { "Code", "Message", }); + internal_static_google_container_v1alpha1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_container_v1alpha1_Cluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_Cluster_descriptor, + new java.lang.String[] { "Name", "Description", "InitialNodeCount", "NodeConfig", "MasterAuth", "LoggingService", "MonitoringService", "Network", "ClusterIpv4Cidr", "AddonsConfig", "Subnetwork", "NodePools", "Locations", "EnableKubernetesAlpha", "NetworkPolicy", "IpAllocationPolicy", "MasterAuthorizedNetworksConfig", "MaintenancePolicy", "BinaryAuthorization", "PodSecurityPolicyConfig", "Autoscaling", "ManagedPodIdentityConfig", "NodeSchedulingStrategy", "PrivateClusterConfig", "SelfLink", "Zone", "Endpoint", "InitialClusterVersion", "CurrentMasterVersion", "CurrentNodeVersion", "CreateTime", "Status", "StatusMessage", "NodeIpv4CidrSize", "ServicesIpv4Cidr", "InstanceGroupUrls", "CurrentNodeCount", "ExpireTime", "Location", "Conditions", }); + internal_static_google_container_v1alpha1_ClusterUpdate_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_container_v1alpha1_ClusterUpdate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ClusterUpdate_descriptor, + new java.lang.String[] { "DesiredNodeVersion", "DesiredMonitoringService", "DesiredAddonsConfig", "DesiredNodePoolId", "DesiredImageType", "DesiredNodePoolAutoscaling", "DesiredLocations", "DesiredMasterAuthorizedNetworksConfig", "DesiredPodSecurityPolicyConfig", "DesiredClusterAutoscaling", "DesiredBinaryAuthorization", "DesiredLoggingService", "DesiredMasterVersion", }); + internal_static_google_container_v1alpha1_Operation_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_container_v1alpha1_Operation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_Operation_descriptor, + new java.lang.String[] { "Name", "Zone", "OperationType", "Status", "Detail", "StatusMessage", "SelfLink", "TargetLink", "Location", "StartTime", "EndTime", "Progress", "ClusterConditions", "NodepoolConditions", }); + internal_static_google_container_v1alpha1_OperationProgress_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_container_v1alpha1_OperationProgress_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_OperationProgress_descriptor, + new java.lang.String[] { "Name", "Status", "Metrics", "Stages", }); + internal_static_google_container_v1alpha1_OperationProgress_Metric_descriptor = + internal_static_google_container_v1alpha1_OperationProgress_descriptor.getNestedTypes().get(0); + internal_static_google_container_v1alpha1_OperationProgress_Metric_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_OperationProgress_Metric_descriptor, + new java.lang.String[] { "Name", "IntValue", "DoubleValue", "StringValue", "Value", }); + internal_static_google_container_v1alpha1_CreateClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_container_v1alpha1_CreateClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_CreateClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "Cluster", "Parent", }); + internal_static_google_container_v1alpha1_GetClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_container_v1alpha1_GetClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_GetClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Name", }); + internal_static_google_container_v1alpha1_UpdateClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_container_v1alpha1_UpdateClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_UpdateClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Update", "Name", }); + internal_static_google_container_v1alpha1_UpdateNodePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_container_v1alpha1_UpdateNodePoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_UpdateNodePoolRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "NodeVersion", "ImageType", "Name", }); + internal_static_google_container_v1alpha1_SetNodePoolAutoscalingRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_container_v1alpha1_SetNodePoolAutoscalingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetNodePoolAutoscalingRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Autoscaling", "Name", }); + internal_static_google_container_v1alpha1_SetLoggingServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_container_v1alpha1_SetLoggingServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetLoggingServiceRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "LoggingService", "Name", }); + internal_static_google_container_v1alpha1_SetMonitoringServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_container_v1alpha1_SetMonitoringServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetMonitoringServiceRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "MonitoringService", "Name", }); + internal_static_google_container_v1alpha1_SetAddonsConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_container_v1alpha1_SetAddonsConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetAddonsConfigRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "AddonsConfig", "Name", }); + internal_static_google_container_v1alpha1_SetLocationsRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_container_v1alpha1_SetLocationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetLocationsRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Locations", "Name", }); + internal_static_google_container_v1alpha1_UpdateMasterRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_container_v1alpha1_UpdateMasterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_UpdateMasterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "MasterVersion", "Name", }); + internal_static_google_container_v1alpha1_SetMasterAuthRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_container_v1alpha1_SetMasterAuthRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetMasterAuthRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Action", "Update", "Name", }); + internal_static_google_container_v1alpha1_DeleteClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_container_v1alpha1_DeleteClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_DeleteClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Name", }); + internal_static_google_container_v1alpha1_ListClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_container_v1alpha1_ListClustersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ListClustersRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "Parent", }); + internal_static_google_container_v1alpha1_ListClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_container_v1alpha1_ListClustersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ListClustersResponse_descriptor, + new java.lang.String[] { "Clusters", "MissingZones", }); + internal_static_google_container_v1alpha1_GetOperationRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_container_v1alpha1_GetOperationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_GetOperationRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "OperationId", "Name", }); + internal_static_google_container_v1alpha1_ListOperationsRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_container_v1alpha1_ListOperationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ListOperationsRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "Parent", }); + internal_static_google_container_v1alpha1_CancelOperationRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_container_v1alpha1_CancelOperationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_CancelOperationRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "OperationId", "Name", }); + internal_static_google_container_v1alpha1_ListOperationsResponse_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_container_v1alpha1_ListOperationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ListOperationsResponse_descriptor, + new java.lang.String[] { "Operations", "MissingZones", }); + internal_static_google_container_v1alpha1_GetServerConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_container_v1alpha1_GetServerConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_GetServerConfigRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "Name", }); + internal_static_google_container_v1alpha1_ServerConfig_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_container_v1alpha1_ServerConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ServerConfig_descriptor, + new java.lang.String[] { "DefaultClusterVersion", "ValidNodeVersions", "DefaultImageType", "ValidImageTypes", "ValidMasterVersions", }); + internal_static_google_container_v1alpha1_CreateNodePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_container_v1alpha1_CreateNodePoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_CreateNodePoolRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePool", "Parent", }); + internal_static_google_container_v1alpha1_DeleteNodePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_container_v1alpha1_DeleteNodePoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_DeleteNodePoolRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Name", }); + internal_static_google_container_v1alpha1_ListNodePoolsRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_container_v1alpha1_ListNodePoolsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ListNodePoolsRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Parent", }); + internal_static_google_container_v1alpha1_GetNodePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_container_v1alpha1_GetNodePoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_GetNodePoolRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Name", }); + internal_static_google_container_v1alpha1_NodePool_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_container_v1alpha1_NodePool_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_NodePool_descriptor, + new java.lang.String[] { "Name", "Config", "InitialNodeCount", "Autoscaling", "Management", "SelfLink", "Version", "InstanceGroupUrls", "Status", "StatusMessage", "Conditions", }); + internal_static_google_container_v1alpha1_NodeManagement_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_container_v1alpha1_NodeManagement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_NodeManagement_descriptor, + new java.lang.String[] { "AutoUpgrade", "AutoRepair", "UpgradeOptions", }); + internal_static_google_container_v1alpha1_AutoUpgradeOptions_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_container_v1alpha1_AutoUpgradeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_AutoUpgradeOptions_descriptor, + new java.lang.String[] { "AutoUpgradeStartTime", "Description", }); + internal_static_google_container_v1alpha1_MaintenancePolicy_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_container_v1alpha1_MaintenancePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_MaintenancePolicy_descriptor, + new java.lang.String[] { "Window", }); + internal_static_google_container_v1alpha1_MaintenanceWindow_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_container_v1alpha1_MaintenanceWindow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_MaintenanceWindow_descriptor, + new java.lang.String[] { "DailyMaintenanceWindow", "Policy", }); + internal_static_google_container_v1alpha1_DailyMaintenanceWindow_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_container_v1alpha1_DailyMaintenanceWindow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_DailyMaintenanceWindow_descriptor, + new java.lang.String[] { "StartTime", "Duration", }); + internal_static_google_container_v1alpha1_SetNodePoolManagementRequest_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_container_v1alpha1_SetNodePoolManagementRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetNodePoolManagementRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Management", "Name", }); + internal_static_google_container_v1alpha1_SetNodePoolSizeRequest_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_container_v1alpha1_SetNodePoolSizeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetNodePoolSizeRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "NodeCount", "Name", }); + internal_static_google_container_v1alpha1_RollbackNodePoolUpgradeRequest_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_container_v1alpha1_RollbackNodePoolUpgradeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_RollbackNodePoolUpgradeRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Name", }); + internal_static_google_container_v1alpha1_ListNodePoolsResponse_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_container_v1alpha1_ListNodePoolsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ListNodePoolsResponse_descriptor, + new java.lang.String[] { "NodePools", }); + internal_static_google_container_v1alpha1_ClusterAutoscaling_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_container_v1alpha1_ClusterAutoscaling_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ClusterAutoscaling_descriptor, + new java.lang.String[] { "EnableNodeAutoprovisioning", "ResourceLimits", }); + internal_static_google_container_v1alpha1_ResourceLimit_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_container_v1alpha1_ResourceLimit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ResourceLimit_descriptor, + new java.lang.String[] { "ResourceType", "Minimum", "Maximum", }); + internal_static_google_container_v1alpha1_NodePoolAutoscaling_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_container_v1alpha1_NodePoolAutoscaling_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_NodePoolAutoscaling_descriptor, + new java.lang.String[] { "Enabled", "MinNodeCount", "MaxNodeCount", "Autoprovisioned", }); + internal_static_google_container_v1alpha1_SetLabelsRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_container_v1alpha1_SetLabelsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetLabelsRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "ResourceLabels", "LabelFingerprint", "Name", }); + internal_static_google_container_v1alpha1_SetLabelsRequest_ResourceLabelsEntry_descriptor = + internal_static_google_container_v1alpha1_SetLabelsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_container_v1alpha1_SetLabelsRequest_ResourceLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetLabelsRequest_ResourceLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_container_v1alpha1_SetLegacyAbacRequest_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_container_v1alpha1_SetLegacyAbacRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetLegacyAbacRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Enabled", "Name", }); + internal_static_google_container_v1alpha1_StartIPRotationRequest_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_container_v1alpha1_StartIPRotationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_StartIPRotationRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Name", "RotateCredentials", }); + internal_static_google_container_v1alpha1_CompleteIPRotationRequest_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_container_v1alpha1_CompleteIPRotationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_CompleteIPRotationRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Name", }); + internal_static_google_container_v1alpha1_AcceleratorConfig_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_google_container_v1alpha1_AcceleratorConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_AcceleratorConfig_descriptor, + new java.lang.String[] { "AcceleratorCount", "AcceleratorType", }); + internal_static_google_container_v1alpha1_SetNetworkPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_google_container_v1alpha1_SetNetworkPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetNetworkPolicyRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NetworkPolicy", "Name", }); + internal_static_google_container_v1alpha1_SetMaintenancePolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_google_container_v1alpha1_SetMaintenancePolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_SetMaintenancePolicyRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "MaintenancePolicy", "Name", }); + internal_static_google_container_v1alpha1_ListUsableSubnetworksRequest_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_google_container_v1alpha1_ListUsableSubnetworksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ListUsableSubnetworksRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_container_v1alpha1_ListUsableSubnetworksResponse_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_google_container_v1alpha1_ListUsableSubnetworksResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_ListUsableSubnetworksResponse_descriptor, + new java.lang.String[] { "Subnetworks", "NextPageToken", }); + internal_static_google_container_v1alpha1_UsableSubnetworkSecondaryRange_descriptor = + getDescriptor().getMessageTypes().get(67); + internal_static_google_container_v1alpha1_UsableSubnetworkSecondaryRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_UsableSubnetworkSecondaryRange_descriptor, + new java.lang.String[] { "RangeName", "IpCidrRange", "Status", }); + internal_static_google_container_v1alpha1_UsableSubnetwork_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_google_container_v1alpha1_UsableSubnetwork_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1alpha1_UsableSubnetwork_descriptor, + new java.lang.String[] { "Subnetwork", "Network", "IpCidrRange", "SecondaryIpRanges", "StatusMessage", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterUpdate.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterUpdate.java new file mode 100644 index 000000000000..1a58ce9bd4a1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterUpdate.java @@ -0,0 +1,3261 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * ClusterUpdate describes an update to the cluster. Exactly one update can
+ * be applied to a cluster with each request, so at most one field can be
+ * provided.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ClusterUpdate} + */ +public final class ClusterUpdate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ClusterUpdate) + ClusterUpdateOrBuilder { +private static final long serialVersionUID = 0L; + // Use ClusterUpdate.newBuilder() to construct. + private ClusterUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterUpdate() { + desiredNodeVersion_ = ""; + desiredMonitoringService_ = ""; + desiredNodePoolId_ = ""; + desiredImageType_ = ""; + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + desiredLoggingService_ = ""; + desiredMasterVersion_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClusterUpdate( + 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 34: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredNodeVersion_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredMonitoringService_ = s; + break; + } + case 50: { + com.google.container.v1alpha1.AddonsConfig.Builder subBuilder = null; + if (desiredAddonsConfig_ != null) { + subBuilder = desiredAddonsConfig_.toBuilder(); + } + desiredAddonsConfig_ = input.readMessage(com.google.container.v1alpha1.AddonsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredAddonsConfig_); + desiredAddonsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredNodePoolId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredImageType_ = s; + break; + } + case 74: { + com.google.container.v1alpha1.NodePoolAutoscaling.Builder subBuilder = null; + if (desiredNodePoolAutoscaling_ != null) { + subBuilder = desiredNodePoolAutoscaling_.toBuilder(); + } + desiredNodePoolAutoscaling_ = input.readMessage(com.google.container.v1alpha1.NodePoolAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredNodePoolAutoscaling_); + desiredNodePoolAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + desiredLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000040; + } + desiredLocations_.add(s); + break; + } + case 98: { + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder subBuilder = null; + if (desiredMasterAuthorizedNetworksConfig_ != null) { + subBuilder = desiredMasterAuthorizedNetworksConfig_.toBuilder(); + } + desiredMasterAuthorizedNetworksConfig_ = input.readMessage(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredMasterAuthorizedNetworksConfig_); + desiredMasterAuthorizedNetworksConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 114: { + com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder subBuilder = null; + if (desiredPodSecurityPolicyConfig_ != null) { + subBuilder = desiredPodSecurityPolicyConfig_.toBuilder(); + } + desiredPodSecurityPolicyConfig_ = input.readMessage(com.google.container.v1alpha1.PodSecurityPolicyConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredPodSecurityPolicyConfig_); + desiredPodSecurityPolicyConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 122: { + com.google.container.v1alpha1.ClusterAutoscaling.Builder subBuilder = null; + if (desiredClusterAutoscaling_ != null) { + subBuilder = desiredClusterAutoscaling_.toBuilder(); + } + desiredClusterAutoscaling_ = input.readMessage(com.google.container.v1alpha1.ClusterAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredClusterAutoscaling_); + desiredClusterAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + com.google.container.v1alpha1.BinaryAuthorization.Builder subBuilder = null; + if (desiredBinaryAuthorization_ != null) { + subBuilder = desiredBinaryAuthorization_.toBuilder(); + } + desiredBinaryAuthorization_ = input.readMessage(com.google.container.v1alpha1.BinaryAuthorization.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredBinaryAuthorization_); + desiredBinaryAuthorization_ = subBuilder.buildPartial(); + } + + break; + } + case 154: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredLoggingService_ = s; + break; + } + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredMasterVersion_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + desiredLocations_ = desiredLocations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClusterUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClusterUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ClusterUpdate.class, com.google.container.v1alpha1.ClusterUpdate.Builder.class); + } + + private int bitField0_; + public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object desiredNodeVersion_; + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + */ + public java.lang.String getDesiredNodeVersion() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodeVersion_ = s; + return s; + } + } + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + */ + public com.google.protobuf.ByteString + getDesiredNodeVersionBytes() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_MONITORING_SERVICE_FIELD_NUMBER = 5; + private volatile java.lang.Object desiredMonitoringService_; + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string desired_monitoring_service = 5; + */ + public java.lang.String getDesiredMonitoringService() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMonitoringService_ = s; + return s; + } + } + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string desired_monitoring_service = 5; + */ + public com.google.protobuf.ByteString + getDesiredMonitoringServiceBytes() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredMonitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_ADDONS_CONFIG_FIELD_NUMBER = 6; + private com.google.container.v1alpha1.AddonsConfig desiredAddonsConfig_; + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public boolean hasDesiredAddonsConfig() { + return desiredAddonsConfig_ != null; + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1alpha1.AddonsConfig getDesiredAddonsConfig() { + return desiredAddonsConfig_ == null ? com.google.container.v1alpha1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1alpha1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { + return getDesiredAddonsConfig(); + } + + public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object desiredNodePoolId_; + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + */ + public java.lang.String getDesiredNodePoolId() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodePoolId_ = s; + return s; + } + } + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + */ + public com.google.protobuf.ByteString + getDesiredNodePoolIdBytes() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredNodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_IMAGE_TYPE_FIELD_NUMBER = 8; + private volatile java.lang.Object desiredImageType_; + /** + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + */ + public java.lang.String getDesiredImageType() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredImageType_ = s; + return s; + } + } + /** + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + */ + public com.google.protobuf.ByteString + getDesiredImageTypeBytes() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; + private com.google.container.v1alpha1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public boolean hasDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscaling_ != null; + } + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1alpha1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscaling_ == null ? com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; + } + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder() { + return getDesiredNodePoolAutoscaling(); + } + + public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList desiredLocations_; + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + public com.google.protobuf.ProtocolStringList + getDesiredLocationsList() { + return desiredLocations_; + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + public int getDesiredLocationsCount() { + return desiredLocations_.size(); + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + public java.lang.String getDesiredLocations(int index) { + return desiredLocations_.get(index); + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + public com.google.protobuf.ByteString + getDesiredLocationsBytes(int index) { + return desiredLocations_.getByteString(index); + } + + public static final int DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 12; + private com.google.container.v1alpha1.MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig_; + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public boolean hasDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfig_ != null; + } + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfig_ == null ? com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder() { + return getDesiredMasterAuthorizedNetworksConfig(); + } + + public static final int DESIRED_POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1alpha1.PodSecurityPolicyConfig desiredPodSecurityPolicyConfig_; + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public boolean hasDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfig_ != null; + } + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public com.google.container.v1alpha1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfig_ == null ? com.google.container.v1alpha1.PodSecurityPolicyConfig.getDefaultInstance() : desiredPodSecurityPolicyConfig_; + } + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder getDesiredPodSecurityPolicyConfigOrBuilder() { + return getDesiredPodSecurityPolicyConfig(); + } + + public static final int DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER = 15; + private com.google.container.v1alpha1.ClusterAutoscaling desiredClusterAutoscaling_; + /** + *
+   * The desired cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public boolean hasDesiredClusterAutoscaling() { + return desiredClusterAutoscaling_ != null; + } + /** + *
+   * The desired cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1alpha1.ClusterAutoscaling getDesiredClusterAutoscaling() { + return desiredClusterAutoscaling_ == null ? com.google.container.v1alpha1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } + /** + *
+   * The desired cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1alpha1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder() { + return getDesiredClusterAutoscaling(); + } + + public static final int DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER = 16; + private com.google.container.v1alpha1.BinaryAuthorization desiredBinaryAuthorization_; + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public boolean hasDesiredBinaryAuthorization() { + return desiredBinaryAuthorization_ != null; + } + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1alpha1.BinaryAuthorization getDesiredBinaryAuthorization() { + return desiredBinaryAuthorization_ == null ? com.google.container.v1alpha1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1alpha1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder() { + return getDesiredBinaryAuthorization(); + } + + public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; + private volatile java.lang.Object desiredLoggingService_; + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * string desired_logging_service = 19; + */ + public java.lang.String getDesiredLoggingService() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredLoggingService_ = s; + return s; + } + } + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * string desired_logging_service = 19; + */ + public com.google.protobuf.ByteString + getDesiredLoggingServiceBytes() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredLoggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; + private volatile java.lang.Object desiredMasterVersion_; + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + */ + public java.lang.String getDesiredMasterVersion() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMasterVersion_ = s; + return s; + } + } + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + */ + public com.google.protobuf.ByteString + getDesiredMasterVersionBytes() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredMasterVersion_ = 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 (!getDesiredNodeVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desiredNodeVersion_); + } + if (!getDesiredMonitoringServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, desiredMonitoringService_); + } + if (desiredAddonsConfig_ != null) { + output.writeMessage(6, getDesiredAddonsConfig()); + } + if (!getDesiredNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, desiredNodePoolId_); + } + if (!getDesiredImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, desiredImageType_); + } + if (desiredNodePoolAutoscaling_ != null) { + output.writeMessage(9, getDesiredNodePoolAutoscaling()); + } + for (int i = 0; i < desiredLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredPodSecurityPolicyConfig_ != null) { + output.writeMessage(14, getDesiredPodSecurityPolicyConfig()); + } + if (desiredClusterAutoscaling_ != null) { + output.writeMessage(15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + output.writeMessage(16, getDesiredBinaryAuthorization()); + } + if (!getDesiredLoggingServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); + } + if (!getDesiredMasterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDesiredNodeVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desiredNodeVersion_); + } + if (!getDesiredMonitoringServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, desiredMonitoringService_); + } + if (desiredAddonsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDesiredAddonsConfig()); + } + if (!getDesiredNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, desiredNodePoolId_); + } + if (!getDesiredImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, desiredImageType_); + } + if (desiredNodePoolAutoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDesiredNodePoolAutoscaling()); + } + { + int dataSize = 0; + for (int i = 0; i < desiredLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(desiredLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getDesiredLocationsList().size(); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredPodSecurityPolicyConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getDesiredPodSecurityPolicyConfig()); + } + if (desiredClusterAutoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getDesiredBinaryAuthorization()); + } + if (!getDesiredLoggingServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); + } + if (!getDesiredMasterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); + } + 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.container.v1alpha1.ClusterUpdate)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ClusterUpdate other = (com.google.container.v1alpha1.ClusterUpdate) obj; + + boolean result = true; + result = result && getDesiredNodeVersion() + .equals(other.getDesiredNodeVersion()); + result = result && getDesiredMonitoringService() + .equals(other.getDesiredMonitoringService()); + result = result && (hasDesiredAddonsConfig() == other.hasDesiredAddonsConfig()); + if (hasDesiredAddonsConfig()) { + result = result && getDesiredAddonsConfig() + .equals(other.getDesiredAddonsConfig()); + } + result = result && getDesiredNodePoolId() + .equals(other.getDesiredNodePoolId()); + result = result && getDesiredImageType() + .equals(other.getDesiredImageType()); + result = result && (hasDesiredNodePoolAutoscaling() == other.hasDesiredNodePoolAutoscaling()); + if (hasDesiredNodePoolAutoscaling()) { + result = result && getDesiredNodePoolAutoscaling() + .equals(other.getDesiredNodePoolAutoscaling()); + } + result = result && getDesiredLocationsList() + .equals(other.getDesiredLocationsList()); + result = result && (hasDesiredMasterAuthorizedNetworksConfig() == other.hasDesiredMasterAuthorizedNetworksConfig()); + if (hasDesiredMasterAuthorizedNetworksConfig()) { + result = result && getDesiredMasterAuthorizedNetworksConfig() + .equals(other.getDesiredMasterAuthorizedNetworksConfig()); + } + result = result && (hasDesiredPodSecurityPolicyConfig() == other.hasDesiredPodSecurityPolicyConfig()); + if (hasDesiredPodSecurityPolicyConfig()) { + result = result && getDesiredPodSecurityPolicyConfig() + .equals(other.getDesiredPodSecurityPolicyConfig()); + } + result = result && (hasDesiredClusterAutoscaling() == other.hasDesiredClusterAutoscaling()); + if (hasDesiredClusterAutoscaling()) { + result = result && getDesiredClusterAutoscaling() + .equals(other.getDesiredClusterAutoscaling()); + } + result = result && (hasDesiredBinaryAuthorization() == other.hasDesiredBinaryAuthorization()); + if (hasDesiredBinaryAuthorization()) { + result = result && getDesiredBinaryAuthorization() + .equals(other.getDesiredBinaryAuthorization()); + } + result = result && getDesiredLoggingService() + .equals(other.getDesiredLoggingService()); + result = result && getDesiredMasterVersion() + .equals(other.getDesiredMasterVersion()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESIRED_NODE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodeVersion().hashCode(); + hash = (37 * hash) + DESIRED_MONITORING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMonitoringService().hashCode(); + if (hasDesiredAddonsConfig()) { + hash = (37 * hash) + DESIRED_ADDONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredAddonsConfig().hashCode(); + } + hash = (37 * hash) + DESIRED_NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolId().hashCode(); + hash = (37 * hash) + DESIRED_IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDesiredImageType().hashCode(); + if (hasDesiredNodePoolAutoscaling()) { + hash = (37 * hash) + DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolAutoscaling().hashCode(); + } + if (getDesiredLocationsCount() > 0) { + hash = (37 * hash) + DESIRED_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredLocationsList().hashCode(); + } + if (hasDesiredMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMasterAuthorizedNetworksConfig().hashCode(); + } + if (hasDesiredPodSecurityPolicyConfig()) { + hash = (37 * hash) + DESIRED_POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredPodSecurityPolicyConfig().hashCode(); + } + if (hasDesiredClusterAutoscaling()) { + hash = (37 * hash) + DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getDesiredClusterAutoscaling().hashCode(); + } + if (hasDesiredBinaryAuthorization()) { + hash = (37 * hash) + DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredBinaryAuthorization().hashCode(); + } + hash = (37 * hash) + DESIRED_LOGGING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getDesiredLoggingService().hashCode(); + hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMasterVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ClusterUpdate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ClusterUpdate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ClusterUpdate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ClusterUpdate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ClusterUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ClusterUpdate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ClusterUpdate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ClusterUpdate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ClusterUpdate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ClusterUpdate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ClusterUpdate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ClusterUpdate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ClusterUpdate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ClusterUpdate describes an update to the cluster. Exactly one update can
+   * be applied to a cluster with each request, so at most one field can be
+   * provided.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ClusterUpdate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ClusterUpdate) + com.google.container.v1alpha1.ClusterUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClusterUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClusterUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ClusterUpdate.class, com.google.container.v1alpha1.ClusterUpdate.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ClusterUpdate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + desiredNodeVersion_ = ""; + + desiredMonitoringService_ = ""; + + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = null; + } else { + desiredAddonsConfig_ = null; + desiredAddonsConfigBuilder_ = null; + } + desiredNodePoolId_ = ""; + + desiredImageType_ = ""; + + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = null; + } else { + desiredNodePoolAutoscaling_ = null; + desiredNodePoolAutoscalingBuilder_ = null; + } + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = null; + } else { + desiredMasterAuthorizedNetworksConfig_ = null; + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = null; + } else { + desiredPodSecurityPolicyConfig_ = null; + desiredPodSecurityPolicyConfigBuilder_ = null; + } + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = null; + } else { + desiredClusterAutoscaling_ = null; + desiredClusterAutoscalingBuilder_ = null; + } + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = null; + } else { + desiredBinaryAuthorization_ = null; + desiredBinaryAuthorizationBuilder_ = null; + } + desiredLoggingService_ = ""; + + desiredMasterVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ClusterUpdate_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ClusterUpdate getDefaultInstanceForType() { + return com.google.container.v1alpha1.ClusterUpdate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ClusterUpdate build() { + com.google.container.v1alpha1.ClusterUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ClusterUpdate buildPartial() { + com.google.container.v1alpha1.ClusterUpdate result = new com.google.container.v1alpha1.ClusterUpdate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.desiredNodeVersion_ = desiredNodeVersion_; + result.desiredMonitoringService_ = desiredMonitoringService_; + if (desiredAddonsConfigBuilder_ == null) { + result.desiredAddonsConfig_ = desiredAddonsConfig_; + } else { + result.desiredAddonsConfig_ = desiredAddonsConfigBuilder_.build(); + } + result.desiredNodePoolId_ = desiredNodePoolId_; + result.desiredImageType_ = desiredImageType_; + if (desiredNodePoolAutoscalingBuilder_ == null) { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; + } else { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_.build(); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + desiredLocations_ = desiredLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.desiredLocations_ = desiredLocations_; + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfig_; + } else { + result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfigBuilder_.build(); + } + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfig_; + } else { + result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfigBuilder_.build(); + } + if (desiredClusterAutoscalingBuilder_ == null) { + result.desiredClusterAutoscaling_ = desiredClusterAutoscaling_; + } else { + result.desiredClusterAutoscaling_ = desiredClusterAutoscalingBuilder_.build(); + } + if (desiredBinaryAuthorizationBuilder_ == null) { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorization_; + } else { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorizationBuilder_.build(); + } + result.desiredLoggingService_ = desiredLoggingService_; + result.desiredMasterVersion_ = desiredMasterVersion_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ClusterUpdate) { + return mergeFrom((com.google.container.v1alpha1.ClusterUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ClusterUpdate other) { + if (other == com.google.container.v1alpha1.ClusterUpdate.getDefaultInstance()) return this; + if (!other.getDesiredNodeVersion().isEmpty()) { + desiredNodeVersion_ = other.desiredNodeVersion_; + onChanged(); + } + if (!other.getDesiredMonitoringService().isEmpty()) { + desiredMonitoringService_ = other.desiredMonitoringService_; + onChanged(); + } + if (other.hasDesiredAddonsConfig()) { + mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); + } + if (!other.getDesiredNodePoolId().isEmpty()) { + desiredNodePoolId_ = other.desiredNodePoolId_; + onChanged(); + } + if (!other.getDesiredImageType().isEmpty()) { + desiredImageType_ = other.desiredImageType_; + onChanged(); + } + if (other.hasDesiredNodePoolAutoscaling()) { + mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); + } + if (!other.desiredLocations_.isEmpty()) { + if (desiredLocations_.isEmpty()) { + desiredLocations_ = other.desiredLocations_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureDesiredLocationsIsMutable(); + desiredLocations_.addAll(other.desiredLocations_); + } + onChanged(); + } + if (other.hasDesiredMasterAuthorizedNetworksConfig()) { + mergeDesiredMasterAuthorizedNetworksConfig(other.getDesiredMasterAuthorizedNetworksConfig()); + } + if (other.hasDesiredPodSecurityPolicyConfig()) { + mergeDesiredPodSecurityPolicyConfig(other.getDesiredPodSecurityPolicyConfig()); + } + if (other.hasDesiredClusterAutoscaling()) { + mergeDesiredClusterAutoscaling(other.getDesiredClusterAutoscaling()); + } + if (other.hasDesiredBinaryAuthorization()) { + mergeDesiredBinaryAuthorization(other.getDesiredBinaryAuthorization()); + } + if (!other.getDesiredLoggingService().isEmpty()) { + desiredLoggingService_ = other.desiredLoggingService_; + onChanged(); + } + if (!other.getDesiredMasterVersion().isEmpty()) { + desiredMasterVersion_ = other.desiredMasterVersion_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ClusterUpdate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ClusterUpdate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object desiredNodeVersion_ = ""; + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + */ + public java.lang.String getDesiredNodeVersion() { + java.lang.Object ref = desiredNodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + */ + public com.google.protobuf.ByteString + getDesiredNodeVersionBytes() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + */ + public Builder setDesiredNodeVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredNodeVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + */ + public Builder clearDesiredNodeVersion() { + + desiredNodeVersion_ = getDefaultInstance().getDesiredNodeVersion(); + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + */ + public Builder setDesiredNodeVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredNodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredMonitoringService_ = ""; + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string desired_monitoring_service = 5; + */ + public java.lang.String getDesiredMonitoringService() { + java.lang.Object ref = desiredMonitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMonitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string desired_monitoring_service = 5; + */ + public com.google.protobuf.ByteString + getDesiredMonitoringServiceBytes() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredMonitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string desired_monitoring_service = 5; + */ + public Builder setDesiredMonitoringService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredMonitoringService_ = value; + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string desired_monitoring_service = 5; + */ + public Builder clearDesiredMonitoringService() { + + desiredMonitoringService_ = getDefaultInstance().getDesiredMonitoringService(); + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string desired_monitoring_service = 5; + */ + public Builder setDesiredMonitoringServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredMonitoringService_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.AddonsConfig desiredAddonsConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AddonsConfig, com.google.container.v1alpha1.AddonsConfig.Builder, com.google.container.v1alpha1.AddonsConfigOrBuilder> desiredAddonsConfigBuilder_; + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public boolean hasDesiredAddonsConfig() { + return desiredAddonsConfigBuilder_ != null || desiredAddonsConfig_ != null; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1alpha1.AddonsConfig getDesiredAddonsConfig() { + if (desiredAddonsConfigBuilder_ == null) { + return desiredAddonsConfig_ == null ? com.google.container.v1alpha1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } else { + return desiredAddonsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public Builder setDesiredAddonsConfig(com.google.container.v1alpha1.AddonsConfig value) { + if (desiredAddonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAddonsConfig_ = value; + onChanged(); + } else { + desiredAddonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public Builder setDesiredAddonsConfig( + com.google.container.v1alpha1.AddonsConfig.Builder builderForValue) { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public Builder mergeDesiredAddonsConfig(com.google.container.v1alpha1.AddonsConfig value) { + if (desiredAddonsConfigBuilder_ == null) { + if (desiredAddonsConfig_ != null) { + desiredAddonsConfig_ = + com.google.container.v1alpha1.AddonsConfig.newBuilder(desiredAddonsConfig_).mergeFrom(value).buildPartial(); + } else { + desiredAddonsConfig_ = value; + } + onChanged(); + } else { + desiredAddonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public Builder clearDesiredAddonsConfig() { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = null; + onChanged(); + } else { + desiredAddonsConfig_ = null; + desiredAddonsConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1alpha1.AddonsConfig.Builder getDesiredAddonsConfigBuilder() { + + onChanged(); + return getDesiredAddonsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1alpha1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { + if (desiredAddonsConfigBuilder_ != null) { + return desiredAddonsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAddonsConfig_ == null ? + com.google.container.v1alpha1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AddonsConfig, com.google.container.v1alpha1.AddonsConfig.Builder, com.google.container.v1alpha1.AddonsConfigOrBuilder> + getDesiredAddonsConfigFieldBuilder() { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AddonsConfig, com.google.container.v1alpha1.AddonsConfig.Builder, com.google.container.v1alpha1.AddonsConfigOrBuilder>( + getDesiredAddonsConfig(), + getParentForChildren(), + isClean()); + desiredAddonsConfig_ = null; + } + return desiredAddonsConfigBuilder_; + } + + private java.lang.Object desiredNodePoolId_ = ""; + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + */ + public java.lang.String getDesiredNodePoolId() { + java.lang.Object ref = desiredNodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + */ + public com.google.protobuf.ByteString + getDesiredNodePoolIdBytes() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredNodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + */ + public Builder setDesiredNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredNodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + */ + public Builder clearDesiredNodePoolId() { + + desiredNodePoolId_ = getDefaultInstance().getDesiredNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + */ + public Builder setDesiredNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredNodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredImageType_ = ""; + /** + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + */ + public java.lang.String getDesiredImageType() { + java.lang.Object ref = desiredImageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredImageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + */ + public com.google.protobuf.ByteString + getDesiredImageTypeBytes() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + */ + public Builder setDesiredImageType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredImageType_ = value; + onChanged(); + return this; + } + /** + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + */ + public Builder clearDesiredImageType() { + + desiredImageType_ = getDefaultInstance().getDesiredImageType(); + onChanged(); + return this; + } + /** + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + */ + public Builder setDesiredImageTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredImageType_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.NodePoolAutoscaling desiredNodePoolAutoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePoolAutoscaling, com.google.container.v1alpha1.NodePoolAutoscaling.Builder, com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder> desiredNodePoolAutoscalingBuilder_; + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public boolean hasDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscalingBuilder_ != null || desiredNodePoolAutoscaling_ != null; + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1alpha1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + return desiredNodePoolAutoscaling_ == null ? com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; + } else { + return desiredNodePoolAutoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling(com.google.container.v1alpha1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolAutoscaling_ = value; + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling( + com.google.container.v1alpha1.NodePoolAutoscaling.Builder builderForValue) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder mergeDesiredNodePoolAutoscaling(com.google.container.v1alpha1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (desiredNodePoolAutoscaling_ != null) { + desiredNodePoolAutoscaling_ = + com.google.container.v1alpha1.NodePoolAutoscaling.newBuilder(desiredNodePoolAutoscaling_).mergeFrom(value).buildPartial(); + } else { + desiredNodePoolAutoscaling_ = value; + } + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder clearDesiredNodePoolAutoscaling() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = null; + onChanged(); + } else { + desiredNodePoolAutoscaling_ = null; + desiredNodePoolAutoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1alpha1.NodePoolAutoscaling.Builder getDesiredNodePoolAutoscalingBuilder() { + + onChanged(); + return getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder() { + if (desiredNodePoolAutoscalingBuilder_ != null) { + return desiredNodePoolAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolAutoscaling_ == null ? + com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; + } + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePoolAutoscaling, com.google.container.v1alpha1.NodePoolAutoscaling.Builder, com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder> + getDesiredNodePoolAutoscalingFieldBuilder() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePoolAutoscaling, com.google.container.v1alpha1.NodePoolAutoscaling.Builder, com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder>( + getDesiredNodePoolAutoscaling(), + getParentForChildren(), + isClean()); + desiredNodePoolAutoscaling_ = null; + } + return desiredNodePoolAutoscalingBuilder_; + } + + private com.google.protobuf.LazyStringList desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDesiredLocationsIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); + bitField0_ |= 0x00000040; + } + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public com.google.protobuf.ProtocolStringList + getDesiredLocationsList() { + return desiredLocations_.getUnmodifiableView(); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public int getDesiredLocationsCount() { + return desiredLocations_.size(); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public java.lang.String getDesiredLocations(int index) { + return desiredLocations_.get(index); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public com.google.protobuf.ByteString + getDesiredLocationsBytes(int index) { + return desiredLocations_.getByteString(index); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public Builder setDesiredLocations( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDesiredLocationsIsMutable(); + desiredLocations_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public Builder addDesiredLocations( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(value); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public Builder addAllDesiredLocations( + java.lang.Iterable values) { + ensureDesiredLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, desiredLocations_); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public Builder clearDesiredLocations() { + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public Builder addDesiredLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(value); + onChanged(); + return this; + } + + private com.google.container.v1alpha1.MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder> desiredMasterAuthorizedNetworksConfigBuilder_; + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public boolean hasDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfigBuilder_ != null || desiredMasterAuthorizedNetworksConfig_ != null; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + return desiredMasterAuthorizedNetworksConfig_ == null ? com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } else { + return desiredMasterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder setDesiredMasterAuthorizedNetworksConfig(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig value) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMasterAuthorizedNetworksConfig_ = value; + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder setDesiredMasterAuthorizedNetworksConfig( + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder mergeDesiredMasterAuthorizedNetworksConfig(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig value) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + if (desiredMasterAuthorizedNetworksConfig_ != null) { + desiredMasterAuthorizedNetworksConfig_ = + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.newBuilder(desiredMasterAuthorizedNetworksConfig_).mergeFrom(value).buildPartial(); + } else { + desiredMasterAuthorizedNetworksConfig_ = value; + } + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder clearDesiredMasterAuthorizedNetworksConfig() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = null; + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfig_ = null; + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder getDesiredMasterAuthorizedNetworksConfigBuilder() { + + onChanged(); + return getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { + return desiredMasterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredMasterAuthorizedNetworksConfig_ == null ? + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder> + getDesiredMasterAuthorizedNetworksConfigFieldBuilder() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder>( + getDesiredMasterAuthorizedNetworksConfig(), + getParentForChildren(), + isClean()); + desiredMasterAuthorizedNetworksConfig_ = null; + } + return desiredMasterAuthorizedNetworksConfigBuilder_; + } + + private com.google.container.v1alpha1.PodSecurityPolicyConfig desiredPodSecurityPolicyConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.PodSecurityPolicyConfig, com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder, com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder> desiredPodSecurityPolicyConfigBuilder_; + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public boolean hasDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfigBuilder_ != null || desiredPodSecurityPolicyConfig_ != null; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public com.google.container.v1alpha1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + return desiredPodSecurityPolicyConfig_ == null ? com.google.container.v1alpha1.PodSecurityPolicyConfig.getDefaultInstance() : desiredPodSecurityPolicyConfig_; + } else { + return desiredPodSecurityPolicyConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public Builder setDesiredPodSecurityPolicyConfig(com.google.container.v1alpha1.PodSecurityPolicyConfig value) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredPodSecurityPolicyConfig_ = value; + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public Builder setDesiredPodSecurityPolicyConfig( + com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder builderForValue) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public Builder mergeDesiredPodSecurityPolicyConfig(com.google.container.v1alpha1.PodSecurityPolicyConfig value) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + if (desiredPodSecurityPolicyConfig_ != null) { + desiredPodSecurityPolicyConfig_ = + com.google.container.v1alpha1.PodSecurityPolicyConfig.newBuilder(desiredPodSecurityPolicyConfig_).mergeFrom(value).buildPartial(); + } else { + desiredPodSecurityPolicyConfig_ = value; + } + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public Builder clearDesiredPodSecurityPolicyConfig() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = null; + onChanged(); + } else { + desiredPodSecurityPolicyConfig_ = null; + desiredPodSecurityPolicyConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder getDesiredPodSecurityPolicyConfigBuilder() { + + onChanged(); + return getDesiredPodSecurityPolicyConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder getDesiredPodSecurityPolicyConfigOrBuilder() { + if (desiredPodSecurityPolicyConfigBuilder_ != null) { + return desiredPodSecurityPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredPodSecurityPolicyConfig_ == null ? + com.google.container.v1alpha1.PodSecurityPolicyConfig.getDefaultInstance() : desiredPodSecurityPolicyConfig_; + } + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.PodSecurityPolicyConfig, com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder, com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder> + getDesiredPodSecurityPolicyConfigFieldBuilder() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.PodSecurityPolicyConfig, com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder, com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder>( + getDesiredPodSecurityPolicyConfig(), + getParentForChildren(), + isClean()); + desiredPodSecurityPolicyConfig_ = null; + } + return desiredPodSecurityPolicyConfigBuilder_; + } + + private com.google.container.v1alpha1.ClusterAutoscaling desiredClusterAutoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClusterAutoscaling, com.google.container.v1alpha1.ClusterAutoscaling.Builder, com.google.container.v1alpha1.ClusterAutoscalingOrBuilder> desiredClusterAutoscalingBuilder_; + /** + *
+     * The desired cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public boolean hasDesiredClusterAutoscaling() { + return desiredClusterAutoscalingBuilder_ != null || desiredClusterAutoscaling_ != null; + } + /** + *
+     * The desired cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1alpha1.ClusterAutoscaling getDesiredClusterAutoscaling() { + if (desiredClusterAutoscalingBuilder_ == null) { + return desiredClusterAutoscaling_ == null ? com.google.container.v1alpha1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } else { + return desiredClusterAutoscalingBuilder_.getMessage(); + } + } + /** + *
+     * The desired cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder setDesiredClusterAutoscaling(com.google.container.v1alpha1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredClusterAutoscaling_ = value; + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The desired cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder setDesiredClusterAutoscaling( + com.google.container.v1alpha1.ClusterAutoscaling.Builder builderForValue) { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The desired cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder mergeDesiredClusterAutoscaling(com.google.container.v1alpha1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (desiredClusterAutoscaling_ != null) { + desiredClusterAutoscaling_ = + com.google.container.v1alpha1.ClusterAutoscaling.newBuilder(desiredClusterAutoscaling_).mergeFrom(value).buildPartial(); + } else { + desiredClusterAutoscaling_ = value; + } + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The desired cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder clearDesiredClusterAutoscaling() { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = null; + onChanged(); + } else { + desiredClusterAutoscaling_ = null; + desiredClusterAutoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * The desired cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1alpha1.ClusterAutoscaling.Builder getDesiredClusterAutoscalingBuilder() { + + onChanged(); + return getDesiredClusterAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * The desired cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1alpha1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder() { + if (desiredClusterAutoscalingBuilder_ != null) { + return desiredClusterAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredClusterAutoscaling_ == null ? + com.google.container.v1alpha1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } + } + /** + *
+     * The desired cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClusterAutoscaling, com.google.container.v1alpha1.ClusterAutoscaling.Builder, com.google.container.v1alpha1.ClusterAutoscalingOrBuilder> + getDesiredClusterAutoscalingFieldBuilder() { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClusterAutoscaling, com.google.container.v1alpha1.ClusterAutoscaling.Builder, com.google.container.v1alpha1.ClusterAutoscalingOrBuilder>( + getDesiredClusterAutoscaling(), + getParentForChildren(), + isClean()); + desiredClusterAutoscaling_ = null; + } + return desiredClusterAutoscalingBuilder_; + } + + private com.google.container.v1alpha1.BinaryAuthorization desiredBinaryAuthorization_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.BinaryAuthorization, com.google.container.v1alpha1.BinaryAuthorization.Builder, com.google.container.v1alpha1.BinaryAuthorizationOrBuilder> desiredBinaryAuthorizationBuilder_; + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public boolean hasDesiredBinaryAuthorization() { + return desiredBinaryAuthorizationBuilder_ != null || desiredBinaryAuthorization_ != null; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1alpha1.BinaryAuthorization getDesiredBinaryAuthorization() { + if (desiredBinaryAuthorizationBuilder_ == null) { + return desiredBinaryAuthorization_ == null ? com.google.container.v1alpha1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } else { + return desiredBinaryAuthorizationBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder setDesiredBinaryAuthorization(com.google.container.v1alpha1.BinaryAuthorization value) { + if (desiredBinaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredBinaryAuthorization_ = value; + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder setDesiredBinaryAuthorization( + com.google.container.v1alpha1.BinaryAuthorization.Builder builderForValue) { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = builderForValue.build(); + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder mergeDesiredBinaryAuthorization(com.google.container.v1alpha1.BinaryAuthorization value) { + if (desiredBinaryAuthorizationBuilder_ == null) { + if (desiredBinaryAuthorization_ != null) { + desiredBinaryAuthorization_ = + com.google.container.v1alpha1.BinaryAuthorization.newBuilder(desiredBinaryAuthorization_).mergeFrom(value).buildPartial(); + } else { + desiredBinaryAuthorization_ = value; + } + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder clearDesiredBinaryAuthorization() { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = null; + onChanged(); + } else { + desiredBinaryAuthorization_ = null; + desiredBinaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1alpha1.BinaryAuthorization.Builder getDesiredBinaryAuthorizationBuilder() { + + onChanged(); + return getDesiredBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1alpha1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder() { + if (desiredBinaryAuthorizationBuilder_ != null) { + return desiredBinaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return desiredBinaryAuthorization_ == null ? + com.google.container.v1alpha1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.BinaryAuthorization, com.google.container.v1alpha1.BinaryAuthorization.Builder, com.google.container.v1alpha1.BinaryAuthorizationOrBuilder> + getDesiredBinaryAuthorizationFieldBuilder() { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.BinaryAuthorization, com.google.container.v1alpha1.BinaryAuthorization.Builder, com.google.container.v1alpha1.BinaryAuthorizationOrBuilder>( + getDesiredBinaryAuthorization(), + getParentForChildren(), + isClean()); + desiredBinaryAuthorization_ = null; + } + return desiredBinaryAuthorizationBuilder_; + } + + private java.lang.Object desiredLoggingService_ = ""; + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * string desired_logging_service = 19; + */ + public java.lang.String getDesiredLoggingService() { + java.lang.Object ref = desiredLoggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredLoggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * string desired_logging_service = 19; + */ + public com.google.protobuf.ByteString + getDesiredLoggingServiceBytes() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredLoggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * string desired_logging_service = 19; + */ + public Builder setDesiredLoggingService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredLoggingService_ = value; + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * string desired_logging_service = 19; + */ + public Builder clearDesiredLoggingService() { + + desiredLoggingService_ = getDefaultInstance().getDesiredLoggingService(); + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * string desired_logging_service = 19; + */ + public Builder setDesiredLoggingServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredLoggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredMasterVersion_ = ""; + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + */ + public java.lang.String getDesiredMasterVersion() { + java.lang.Object ref = desiredMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + */ + public com.google.protobuf.ByteString + getDesiredMasterVersionBytes() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + */ + public Builder setDesiredMasterVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredMasterVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + */ + public Builder clearDesiredMasterVersion() { + + desiredMasterVersion_ = getDefaultInstance().getDesiredMasterVersion(); + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + */ + public Builder setDesiredMasterVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredMasterVersion_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ClusterUpdate) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ClusterUpdate) + private static final com.google.container.v1alpha1.ClusterUpdate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ClusterUpdate(); + } + + public static com.google.container.v1alpha1.ClusterUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterUpdate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ClusterUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterUpdateOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterUpdateOrBuilder.java new file mode 100644 index 000000000000..9c05e345c51c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ClusterUpdateOrBuilder.java @@ -0,0 +1,389 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ClusterUpdateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ClusterUpdate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + */ + java.lang.String getDesiredNodeVersion(); + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + */ + com.google.protobuf.ByteString + getDesiredNodeVersionBytes(); + + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string desired_monitoring_service = 5; + */ + java.lang.String getDesiredMonitoringService(); + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string desired_monitoring_service = 5; + */ + com.google.protobuf.ByteString + getDesiredMonitoringServiceBytes(); + + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + boolean hasDesiredAddonsConfig(); + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + com.google.container.v1alpha1.AddonsConfig getDesiredAddonsConfig(); + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig desired_addons_config = 6; + */ + com.google.container.v1alpha1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder(); + + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + */ + java.lang.String getDesiredNodePoolId(); + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + */ + com.google.protobuf.ByteString + getDesiredNodePoolIdBytes(); + + /** + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + */ + java.lang.String getDesiredImageType(); + /** + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + */ + com.google.protobuf.ByteString + getDesiredImageTypeBytes(); + + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + boolean hasDesiredNodePoolAutoscaling(); + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + com.google.container.v1alpha1.NodePoolAutoscaling getDesiredNodePoolAutoscaling(); + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder(); + + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + java.util.List + getDesiredLocationsList(); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + int getDesiredLocationsCount(); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + java.lang.String getDesiredLocations(int index); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + com.google.protobuf.ByteString + getDesiredLocationsBytes(int index); + + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + boolean hasDesiredMasterAuthorizedNetworksConfig(); + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig(); + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1alpha1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder(); + + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + boolean hasDesiredPodSecurityPolicyConfig(); + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + com.google.container.v1alpha1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig(); + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder getDesiredPodSecurityPolicyConfigOrBuilder(); + + /** + *
+   * The desired cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + boolean hasDesiredClusterAutoscaling(); + /** + *
+   * The desired cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + com.google.container.v1alpha1.ClusterAutoscaling getDesiredClusterAutoscaling(); + /** + *
+   * The desired cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1alpha1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + com.google.container.v1alpha1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder(); + + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + boolean hasDesiredBinaryAuthorization(); + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + com.google.container.v1alpha1.BinaryAuthorization getDesiredBinaryAuthorization(); + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1alpha1.BinaryAuthorization desired_binary_authorization = 16; + */ + com.google.container.v1alpha1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder(); + + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * string desired_logging_service = 19; + */ + java.lang.String getDesiredLoggingService(); + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * string desired_logging_service = 19; + */ + com.google.protobuf.ByteString + getDesiredLoggingServiceBytes(); + + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + */ + java.lang.String getDesiredMasterVersion(); + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + */ + com.google.protobuf.ByteString + getDesiredMasterVersionBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CompleteIPRotationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CompleteIPRotationRequest.java new file mode 100644 index 000000000000..5c454e5f1de0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CompleteIPRotationRequest.java @@ -0,0 +1,1091 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.CompleteIPRotationRequest} + */ +public final class CompleteIPRotationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.CompleteIPRotationRequest) + CompleteIPRotationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CompleteIPRotationRequest.newBuilder() to construct. + private CompleteIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompleteIPRotationRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompleteIPRotationRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CompleteIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.CompleteIPRotationRequest.class, com.google.container.v1alpha1.CompleteIPRotationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1alpha1.CompleteIPRotationRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.CompleteIPRotationRequest other = (com.google.container.v1alpha1.CompleteIPRotationRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().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.container.v1alpha1.CompleteIPRotationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.CompleteIPRotationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.CompleteIPRotationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.CompleteIPRotationRequest) + com.google.container.v1alpha1.CompleteIPRotationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CompleteIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.CompleteIPRotationRequest.class, com.google.container.v1alpha1.CompleteIPRotationRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.CompleteIPRotationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.CompleteIPRotationRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.CompleteIPRotationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.CompleteIPRotationRequest build() { + com.google.container.v1alpha1.CompleteIPRotationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.CompleteIPRotationRequest buildPartial() { + com.google.container.v1alpha1.CompleteIPRotationRequest result = new com.google.container.v1alpha1.CompleteIPRotationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.CompleteIPRotationRequest) { + return mergeFrom((com.google.container.v1alpha1.CompleteIPRotationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.CompleteIPRotationRequest other) { + if (other == com.google.container.v1alpha1.CompleteIPRotationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.CompleteIPRotationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.CompleteIPRotationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.CompleteIPRotationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.CompleteIPRotationRequest) + private static final com.google.container.v1alpha1.CompleteIPRotationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.CompleteIPRotationRequest(); + } + + public static com.google.container.v1alpha1.CompleteIPRotationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteIPRotationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteIPRotationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.CompleteIPRotationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CompleteIPRotationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CompleteIPRotationRequestOrBuilder.java new file mode 100644 index 000000000000..270f4c577d60 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CompleteIPRotationRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface CompleteIPRotationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.CompleteIPRotationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateClusterRequest.java new file mode 100644 index 000000000000..de005ac1883d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateClusterRequest.java @@ -0,0 +1,1170 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * CreateClusterRequest creates a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.CreateClusterRequest} + */ +public final class CreateClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.CreateClusterRequest) + CreateClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateClusterRequest.newBuilder() to construct. + private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateClusterRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateClusterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + com.google.container.v1alpha1.Cluster.Builder subBuilder = null; + if (cluster_ != null) { + subBuilder = cluster_.toBuilder(); + } + cluster_ = input.readMessage(com.google.container.v1alpha1.Cluster.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cluster_); + cluster_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.CreateClusterRequest.class, com.google.container.v1alpha1.CreateClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 3; + private com.google.container.v1alpha1.Cluster cluster_; + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public boolean hasCluster() { + return cluster_ != null; + } + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public com.google.container.v1alpha1.Cluster getCluster() { + return cluster_ == null ? com.google.container.v1alpha1.Cluster.getDefaultInstance() : cluster_; + } + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public com.google.container.v1alpha1.ClusterOrBuilder getClusterOrBuilder() { + return getCluster(); + } + + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (cluster_ != null) { + output.writeMessage(3, getCluster()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (cluster_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCluster()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } + 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.container.v1alpha1.CreateClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.CreateClusterRequest other = (com.google.container.v1alpha1.CreateClusterRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && (hasCluster() == other.hasCluster()); + if (hasCluster()) { + result = result && getCluster() + .equals(other.getCluster()); + } + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + if (hasCluster()) { + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.CreateClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CreateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.CreateClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateClusterRequest creates a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.CreateClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.CreateClusterRequest) + com.google.container.v1alpha1.CreateClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.CreateClusterRequest.class, com.google.container.v1alpha1.CreateClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.CreateClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + if (clusterBuilder_ == null) { + cluster_ = null; + } else { + cluster_ = null; + clusterBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.CreateClusterRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.CreateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.CreateClusterRequest build() { + com.google.container.v1alpha1.CreateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.CreateClusterRequest buildPartial() { + com.google.container.v1alpha1.CreateClusterRequest result = new com.google.container.v1alpha1.CreateClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + if (clusterBuilder_ == null) { + result.cluster_ = cluster_; + } else { + result.cluster_ = clusterBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.CreateClusterRequest) { + return mergeFrom((com.google.container.v1alpha1.CreateClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.CreateClusterRequest other) { + if (other == com.google.container.v1alpha1.CreateClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.CreateClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.CreateClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.Cluster cluster_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.Cluster, com.google.container.v1alpha1.Cluster.Builder, com.google.container.v1alpha1.ClusterOrBuilder> clusterBuilder_; + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public boolean hasCluster() { + return clusterBuilder_ != null || cluster_ != null; + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public com.google.container.v1alpha1.Cluster getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null ? com.google.container.v1alpha1.Cluster.getDefaultInstance() : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public Builder setCluster(com.google.container.v1alpha1.Cluster value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + onChanged(); + } else { + clusterBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public Builder setCluster( + com.google.container.v1alpha1.Cluster.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + onChanged(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public Builder mergeCluster(com.google.container.v1alpha1.Cluster value) { + if (clusterBuilder_ == null) { + if (cluster_ != null) { + cluster_ = + com.google.container.v1alpha1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); + } else { + cluster_ = value; + } + onChanged(); + } else { + clusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public Builder clearCluster() { + if (clusterBuilder_ == null) { + cluster_ = null; + onChanged(); + } else { + cluster_ = null; + clusterBuilder_ = null; + } + + return this; + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public com.google.container.v1alpha1.Cluster.Builder getClusterBuilder() { + + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + public com.google.container.v1alpha1.ClusterOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null ? + com.google.container.v1alpha1.Cluster.getDefaultInstance() : cluster_; + } + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.Cluster, com.google.container.v1alpha1.Cluster.Builder, com.google.container.v1alpha1.ClusterOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.Cluster, com.google.container.v1alpha1.Cluster.Builder, com.google.container.v1alpha1.ClusterOrBuilder>( + getCluster(), + getParentForChildren(), + isClean()); + cluster_ = null; + } + return clusterBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.CreateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.CreateClusterRequest) + private static final com.google.container.v1alpha1.CreateClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.CreateClusterRequest(); + } + + public static com.google.container.v1alpha1.CreateClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.CreateClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateClusterRequestOrBuilder.java new file mode 100644 index 000000000000..602cc0fbc9e0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateClusterRequestOrBuilder.java @@ -0,0 +1,103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface CreateClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.CreateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + boolean hasCluster(); + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + com.google.container.v1alpha1.Cluster getCluster(); + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1alpha1.Cluster cluster = 3; + */ + com.google.container.v1alpha1.ClusterOrBuilder getClusterOrBuilder(); + + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateNodePoolRequest.java new file mode 100644 index 000000000000..c1039b4bf4bc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateNodePoolRequest.java @@ -0,0 +1,1327 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * CreateNodePoolRequest creates a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.CreateNodePoolRequest} + */ +public final class CreateNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.CreateNodePoolRequest) + CreateNodePoolRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateNodePoolRequest.newBuilder() to construct. + private CreateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateNodePoolRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + com.google.container.v1alpha1.NodePool.Builder subBuilder = null; + if (nodePool_ != null) { + subBuilder = nodePool_.toBuilder(); + } + nodePool_ = input.readMessage(com.google.container.v1alpha1.NodePool.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodePool_); + nodePool_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CreateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.CreateNodePoolRequest.class, com.google.container.v1alpha1.CreateNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_FIELD_NUMBER = 4; + private com.google.container.v1alpha1.NodePool nodePool_; + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public boolean hasNodePool() { + return nodePool_ != null; + } + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public com.google.container.v1alpha1.NodePool getNodePool() { + return nodePool_ == null ? com.google.container.v1alpha1.NodePool.getDefaultInstance() : nodePool_; + } + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public com.google.container.v1alpha1.NodePoolOrBuilder getNodePoolOrBuilder() { + return getNodePool(); + } + + public static final int PARENT_FIELD_NUMBER = 6; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (nodePool_ != null) { + output.writeMessage(4, getNodePool()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (nodePool_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNodePool()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); + } + 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.container.v1alpha1.CreateNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.CreateNodePoolRequest other = (com.google.container.v1alpha1.CreateNodePoolRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (hasNodePool() == other.hasNodePool()); + if (hasNodePool()) { + result = result && getNodePool() + .equals(other.getNodePool()); + } + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasNodePool()) { + hash = (37 * hash) + NODE_POOL_FIELD_NUMBER; + hash = (53 * hash) + getNodePool().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.CreateNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.CreateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.CreateNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateNodePoolRequest creates a node pool for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.CreateNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.CreateNodePoolRequest) + com.google.container.v1alpha1.CreateNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CreateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.CreateNodePoolRequest.class, com.google.container.v1alpha1.CreateNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.CreateNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (nodePoolBuilder_ == null) { + nodePool_ = null; + } else { + nodePool_ = null; + nodePoolBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.CreateNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.CreateNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.CreateNodePoolRequest build() { + com.google.container.v1alpha1.CreateNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.CreateNodePoolRequest buildPartial() { + com.google.container.v1alpha1.CreateNodePoolRequest result = new com.google.container.v1alpha1.CreateNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (nodePoolBuilder_ == null) { + result.nodePool_ = nodePool_; + } else { + result.nodePool_ = nodePoolBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.CreateNodePoolRequest) { + return mergeFrom((com.google.container.v1alpha1.CreateNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.CreateNodePoolRequest other) { + if (other == com.google.container.v1alpha1.CreateNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasNodePool()) { + mergeNodePool(other.getNodePool()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.CreateNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.CreateNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.NodePool nodePool_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePool, com.google.container.v1alpha1.NodePool.Builder, com.google.container.v1alpha1.NodePoolOrBuilder> nodePoolBuilder_; + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public boolean hasNodePool() { + return nodePoolBuilder_ != null || nodePool_ != null; + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public com.google.container.v1alpha1.NodePool getNodePool() { + if (nodePoolBuilder_ == null) { + return nodePool_ == null ? com.google.container.v1alpha1.NodePool.getDefaultInstance() : nodePool_; + } else { + return nodePoolBuilder_.getMessage(); + } + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public Builder setNodePool(com.google.container.v1alpha1.NodePool value) { + if (nodePoolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePool_ = value; + onChanged(); + } else { + nodePoolBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public Builder setNodePool( + com.google.container.v1alpha1.NodePool.Builder builderForValue) { + if (nodePoolBuilder_ == null) { + nodePool_ = builderForValue.build(); + onChanged(); + } else { + nodePoolBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public Builder mergeNodePool(com.google.container.v1alpha1.NodePool value) { + if (nodePoolBuilder_ == null) { + if (nodePool_ != null) { + nodePool_ = + com.google.container.v1alpha1.NodePool.newBuilder(nodePool_).mergeFrom(value).buildPartial(); + } else { + nodePool_ = value; + } + onChanged(); + } else { + nodePoolBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public Builder clearNodePool() { + if (nodePoolBuilder_ == null) { + nodePool_ = null; + onChanged(); + } else { + nodePool_ = null; + nodePoolBuilder_ = null; + } + + return this; + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public com.google.container.v1alpha1.NodePool.Builder getNodePoolBuilder() { + + onChanged(); + return getNodePoolFieldBuilder().getBuilder(); + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + public com.google.container.v1alpha1.NodePoolOrBuilder getNodePoolOrBuilder() { + if (nodePoolBuilder_ != null) { + return nodePoolBuilder_.getMessageOrBuilder(); + } else { + return nodePool_ == null ? + com.google.container.v1alpha1.NodePool.getDefaultInstance() : nodePool_; + } + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePool, com.google.container.v1alpha1.NodePool.Builder, com.google.container.v1alpha1.NodePoolOrBuilder> + getNodePoolFieldBuilder() { + if (nodePoolBuilder_ == null) { + nodePoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePool, com.google.container.v1alpha1.NodePool.Builder, com.google.container.v1alpha1.NodePoolOrBuilder>( + getNodePool(), + getParentForChildren(), + isClean()); + nodePool_ = null; + } + return nodePoolBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.CreateNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.CreateNodePoolRequest) + private static final com.google.container.v1alpha1.CreateNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.CreateNodePoolRequest(); + } + + public static com.google.container.v1alpha1.CreateNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.CreateNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..007044ce1c32 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/CreateNodePoolRequestOrBuilder.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface CreateNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.CreateNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + boolean hasNodePool(); + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + com.google.container.v1alpha1.NodePool getNodePool(); + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1alpha1.NodePool node_pool = 4; + */ + com.google.container.v1alpha1.NodePoolOrBuilder getNodePoolOrBuilder(); + + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DailyMaintenanceWindow.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DailyMaintenanceWindow.java new file mode 100644 index 000000000000..9d190b0cc1fb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DailyMaintenanceWindow.java @@ -0,0 +1,746 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Time window specified for daily maintenance operations.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.DailyMaintenanceWindow} + */ +public final class DailyMaintenanceWindow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.DailyMaintenanceWindow) + DailyMaintenanceWindowOrBuilder { +private static final long serialVersionUID = 0L; + // Use DailyMaintenanceWindow.newBuilder() to construct. + private DailyMaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DailyMaintenanceWindow() { + startTime_ = ""; + duration_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DailyMaintenanceWindow( + 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 18: { + java.lang.String s = input.readStringRequireUtf8(); + + startTime_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + duration_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DailyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.DailyMaintenanceWindow.class, com.google.container.v1alpha1.DailyMaintenanceWindow.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private volatile java.lang.Object startTime_; + /** + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } + } + /** + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + */ + public com.google.protobuf.ByteString + getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DURATION_FIELD_NUMBER = 3; + private volatile java.lang.Object duration_; + /** + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + */ + public java.lang.String getDuration() { + java.lang.Object ref = duration_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + duration_ = s; + return s; + } + } + /** + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + */ + public com.google.protobuf.ByteString + getDurationBytes() { + java.lang.Object ref = duration_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + duration_ = 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 (!getStartTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startTime_); + } + if (!getDurationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, duration_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getStartTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startTime_); + } + if (!getDurationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, duration_); + } + 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.container.v1alpha1.DailyMaintenanceWindow)) { + return super.equals(obj); + } + com.google.container.v1alpha1.DailyMaintenanceWindow other = (com.google.container.v1alpha1.DailyMaintenanceWindow) obj; + + boolean result = true; + result = result && getStartTime() + .equals(other.getStartTime()); + result = result && getDuration() + .equals(other.getDuration()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.DailyMaintenanceWindow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Time window specified for daily maintenance operations.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.DailyMaintenanceWindow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.DailyMaintenanceWindow) + com.google.container.v1alpha1.DailyMaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DailyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.DailyMaintenanceWindow.class, com.google.container.v1alpha1.DailyMaintenanceWindow.Builder.class); + } + + // Construct using com.google.container.v1alpha1.DailyMaintenanceWindow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + startTime_ = ""; + + duration_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.DailyMaintenanceWindow getDefaultInstanceForType() { + return com.google.container.v1alpha1.DailyMaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.DailyMaintenanceWindow build() { + com.google.container.v1alpha1.DailyMaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.DailyMaintenanceWindow buildPartial() { + com.google.container.v1alpha1.DailyMaintenanceWindow result = new com.google.container.v1alpha1.DailyMaintenanceWindow(this); + result.startTime_ = startTime_; + result.duration_ = duration_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.DailyMaintenanceWindow) { + return mergeFrom((com.google.container.v1alpha1.DailyMaintenanceWindow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.DailyMaintenanceWindow other) { + if (other == com.google.container.v1alpha1.DailyMaintenanceWindow.getDefaultInstance()) return this; + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + onChanged(); + } + if (!other.getDuration().isEmpty()) { + duration_ = other.duration_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.DailyMaintenanceWindow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.DailyMaintenanceWindow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object startTime_ = ""; + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + */ + public com.google.protobuf.ByteString + getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + */ + public Builder setStartTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startTime_ = value; + onChanged(); + return this; + } + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + */ + public Builder clearStartTime() { + + startTime_ = getDefaultInstance().getStartTime(); + onChanged(); + return this; + } + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + */ + public Builder setStartTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object duration_ = ""; + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + */ + public java.lang.String getDuration() { + java.lang.Object ref = duration_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + duration_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + */ + public com.google.protobuf.ByteString + getDurationBytes() { + java.lang.Object ref = duration_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + duration_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + */ + public Builder setDuration( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + duration_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + */ + public Builder clearDuration() { + + duration_ = getDefaultInstance().getDuration(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + */ + public Builder setDurationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + duration_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.DailyMaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.DailyMaintenanceWindow) + private static final com.google.container.v1alpha1.DailyMaintenanceWindow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.DailyMaintenanceWindow(); + } + + public static com.google.container.v1alpha1.DailyMaintenanceWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DailyMaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DailyMaintenanceWindow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.DailyMaintenanceWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DailyMaintenanceWindowOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DailyMaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..cedef607dddd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DailyMaintenanceWindowOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface DailyMaintenanceWindowOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.DailyMaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + */ + java.lang.String getStartTime(); + /** + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + */ + com.google.protobuf.ByteString + getStartTimeBytes(); + + /** + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + */ + java.lang.String getDuration(); + /** + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + */ + com.google.protobuf.ByteString + getDurationBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteClusterRequest.java new file mode 100644 index 000000000000..012e698817c6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteClusterRequest.java @@ -0,0 +1,1091 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * DeleteClusterRequest deletes a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.DeleteClusterRequest} + */ +public final class DeleteClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.DeleteClusterRequest) + DeleteClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteClusterRequest.newBuilder() to construct. + private DeleteClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteClusterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.DeleteClusterRequest.class, com.google.container.v1alpha1.DeleteClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.container.v1alpha1.DeleteClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.DeleteClusterRequest other = (com.google.container.v1alpha1.DeleteClusterRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().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.container.v1alpha1.DeleteClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.DeleteClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.DeleteClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteClusterRequest deletes a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.DeleteClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.DeleteClusterRequest) + com.google.container.v1alpha1.DeleteClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.DeleteClusterRequest.class, com.google.container.v1alpha1.DeleteClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.DeleteClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.DeleteClusterRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.DeleteClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.DeleteClusterRequest build() { + com.google.container.v1alpha1.DeleteClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.DeleteClusterRequest buildPartial() { + com.google.container.v1alpha1.DeleteClusterRequest result = new com.google.container.v1alpha1.DeleteClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.DeleteClusterRequest) { + return mergeFrom((com.google.container.v1alpha1.DeleteClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.DeleteClusterRequest other) { + if (other == com.google.container.v1alpha1.DeleteClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.DeleteClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.DeleteClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.DeleteClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.DeleteClusterRequest) + private static final com.google.container.v1alpha1.DeleteClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.DeleteClusterRequest(); + } + + public static com.google.container.v1alpha1.DeleteClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.DeleteClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteClusterRequestOrBuilder.java new file mode 100644 index 000000000000..160aa01cb089 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteClusterRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface DeleteClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.DeleteClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteNodePoolRequest.java new file mode 100644 index 000000000000..3a706e820697 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteNodePoolRequest.java @@ -0,0 +1,1260 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * DeleteNodePoolRequest deletes a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.DeleteNodePoolRequest} + */ +public final class DeleteNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.DeleteNodePoolRequest) + DeleteNodePoolRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteNodePoolRequest.newBuilder() to construct. + private DeleteNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteNodePoolRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DeleteNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.DeleteNodePoolRequest.class, com.google.container.v1alpha1.DeleteNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecate. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecate. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1alpha1.DeleteNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.DeleteNodePoolRequest other = (com.google.container.v1alpha1.DeleteNodePoolRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().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.container.v1alpha1.DeleteNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.DeleteNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteNodePoolRequest deletes a node pool for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.DeleteNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.DeleteNodePoolRequest) + com.google.container.v1alpha1.DeleteNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DeleteNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.DeleteNodePoolRequest.class, com.google.container.v1alpha1.DeleteNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.DeleteNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.DeleteNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.DeleteNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.DeleteNodePoolRequest build() { + com.google.container.v1alpha1.DeleteNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.DeleteNodePoolRequest buildPartial() { + com.google.container.v1alpha1.DeleteNodePoolRequest result = new com.google.container.v1alpha1.DeleteNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.DeleteNodePoolRequest) { + return mergeFrom((com.google.container.v1alpha1.DeleteNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.DeleteNodePoolRequest other) { + if (other == com.google.container.v1alpha1.DeleteNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.DeleteNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.DeleteNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecate. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecate. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecate. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecate. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecate. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.DeleteNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.DeleteNodePoolRequest) + private static final com.google.container.v1alpha1.DeleteNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.DeleteNodePoolRequest(); + } + + public static com.google.container.v1alpha1.DeleteNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.DeleteNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..28eae909680e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/DeleteNodePoolRequestOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface DeleteNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.DeleteNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecate. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecate. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetClusterRequest.java new file mode 100644 index 000000000000..8ec2275b9f44 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetClusterRequest.java @@ -0,0 +1,1091 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * GetClusterRequest gets the settings of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.GetClusterRequest} + */ +public final class GetClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.GetClusterRequest) + GetClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetClusterRequest.newBuilder() to construct. + private GetClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetClusterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.GetClusterRequest.class, com.google.container.v1alpha1.GetClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1alpha1.GetClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.GetClusterRequest other = (com.google.container.v1alpha1.GetClusterRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().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.container.v1alpha1.GetClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetClusterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetClusterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.GetClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetClusterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.GetClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.GetClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetClusterRequest gets the settings of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.GetClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.GetClusterRequest) + com.google.container.v1alpha1.GetClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.GetClusterRequest.class, com.google.container.v1alpha1.GetClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.GetClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetClusterRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.GetClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.GetClusterRequest build() { + com.google.container.v1alpha1.GetClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetClusterRequest buildPartial() { + com.google.container.v1alpha1.GetClusterRequest result = new com.google.container.v1alpha1.GetClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.GetClusterRequest) { + return mergeFrom((com.google.container.v1alpha1.GetClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.GetClusterRequest other) { + if (other == com.google.container.v1alpha1.GetClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.GetClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.GetClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.GetClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.GetClusterRequest) + private static final com.google.container.v1alpha1.GetClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.GetClusterRequest(); + } + + public static com.google.container.v1alpha1.GetClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetClusterRequestOrBuilder.java new file mode 100644 index 000000000000..ca054e858b04 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetClusterRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface GetClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.GetClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetNodePoolRequest.java new file mode 100644 index 000000000000..8543c5285558 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetNodePoolRequest.java @@ -0,0 +1,1260 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * GetNodePoolRequest retrieves a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.GetNodePoolRequest} + */ +public final class GetNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.GetNodePoolRequest) + GetNodePoolRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetNodePoolRequest.newBuilder() to construct. + private GetNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetNodePoolRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.GetNodePoolRequest.class, com.google.container.v1alpha1.GetNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1alpha1.GetNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.GetNodePoolRequest other = (com.google.container.v1alpha1.GetNodePoolRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().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.container.v1alpha1.GetNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.GetNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetNodePoolRequest retrieves a node pool for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.GetNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.GetNodePoolRequest) + com.google.container.v1alpha1.GetNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.GetNodePoolRequest.class, com.google.container.v1alpha1.GetNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.GetNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.GetNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.GetNodePoolRequest build() { + com.google.container.v1alpha1.GetNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetNodePoolRequest buildPartial() { + com.google.container.v1alpha1.GetNodePoolRequest result = new com.google.container.v1alpha1.GetNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.GetNodePoolRequest) { + return mergeFrom((com.google.container.v1alpha1.GetNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.GetNodePoolRequest other) { + if (other == com.google.container.v1alpha1.GetNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.GetNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.GetNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.GetNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.GetNodePoolRequest) + private static final com.google.container.v1alpha1.GetNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.GetNodePoolRequest(); + } + + public static com.google.container.v1alpha1.GetNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..b9400dfc5004 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetNodePoolRequestOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface GetNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.GetNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetOperationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetOperationRequest.java new file mode 100644 index 000000000000..0344a75adb85 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetOperationRequest.java @@ -0,0 +1,1091 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * GetOperationRequest gets a single operation.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.GetOperationRequest} + */ +public final class GetOperationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.GetOperationRequest) + GetOperationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetOperationRequest.newBuilder() to construct. + private GetOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOperationRequest() { + projectId_ = ""; + zone_ = ""; + operationId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetOperationRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + operationId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.GetOperationRequest.class, com.google.container.v1alpha1.GetOperationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object operationId_; + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1alpha1.GetOperationRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.GetOperationRequest other = (com.google.container.v1alpha1.GetOperationRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getOperationId() + .equals(other.getOperationId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().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.container.v1alpha1.GetOperationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetOperationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetOperationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetOperationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetOperationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetOperationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetOperationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetOperationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.GetOperationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetOperationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.GetOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.GetOperationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetOperationRequest gets a single operation.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.GetOperationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.GetOperationRequest) + com.google.container.v1alpha1.GetOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.GetOperationRequest.class, com.google.container.v1alpha1.GetOperationRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.GetOperationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + operationId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetOperationRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.GetOperationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.GetOperationRequest build() { + com.google.container.v1alpha1.GetOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetOperationRequest buildPartial() { + com.google.container.v1alpha1.GetOperationRequest result = new com.google.container.v1alpha1.GetOperationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.operationId_ = operationId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.GetOperationRequest) { + return mergeFrom((com.google.container.v1alpha1.GetOperationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.GetOperationRequest other) { + if (other == com.google.container.v1alpha1.GetOperationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.GetOperationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.GetOperationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOperationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.GetOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.GetOperationRequest) + private static final com.google.container.v1alpha1.GetOperationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.GetOperationRequest(); + } + + public static com.google.container.v1alpha1.GetOperationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOperationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetOperationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetOperationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetOperationRequestOrBuilder.java new file mode 100644 index 000000000000..44a7b0b57b38 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetOperationRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface GetOperationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.GetOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getOperationId(); + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getOperationIdBytes(); + + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetServerConfigRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetServerConfigRequest.java new file mode 100644 index 000000000000..b7ce2bc5d81c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetServerConfigRequest.java @@ -0,0 +1,922 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Gets the current Kubernetes Engine service configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.GetServerConfigRequest} + */ +public final class GetServerConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.GetServerConfigRequest) + GetServerConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetServerConfigRequest.newBuilder() to construct. + private GetServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetServerConfigRequest() { + projectId_ = ""; + zone_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetServerConfigRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.GetServerConfigRequest.class, com.google.container.v1alpha1.GetServerConfigRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.container.v1alpha1.GetServerConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.GetServerConfigRequest other = (com.google.container.v1alpha1.GetServerConfigRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().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.container.v1alpha1.GetServerConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.GetServerConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.GetServerConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Gets the current Kubernetes Engine service configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.GetServerConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.GetServerConfigRequest) + com.google.container.v1alpha1.GetServerConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.GetServerConfigRequest.class, com.google.container.v1alpha1.GetServerConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.GetServerConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetServerConfigRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.GetServerConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.GetServerConfigRequest build() { + com.google.container.v1alpha1.GetServerConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetServerConfigRequest buildPartial() { + com.google.container.v1alpha1.GetServerConfigRequest result = new com.google.container.v1alpha1.GetServerConfigRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.GetServerConfigRequest) { + return mergeFrom((com.google.container.v1alpha1.GetServerConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.GetServerConfigRequest other) { + if (other == com.google.container.v1alpha1.GetServerConfigRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.GetServerConfigRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.GetServerConfigRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.GetServerConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.GetServerConfigRequest) + private static final com.google.container.v1alpha1.GetServerConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.GetServerConfigRequest(); + } + + public static com.google.container.v1alpha1.GetServerConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServerConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetServerConfigRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.GetServerConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetServerConfigRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetServerConfigRequestOrBuilder.java new file mode 100644 index 000000000000..edd389acf2ae --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/GetServerConfigRequestOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface GetServerConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.GetServerConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HorizontalPodAutoscaling.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HorizontalPodAutoscaling.java new file mode 100644 index 000000000000..e5e4aa352088 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HorizontalPodAutoscaling.java @@ -0,0 +1,509 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration options for the horizontal pod autoscaling feature, which
+ * increases or decreases the number of replica pods a replication controller
+ * has based on the resource usage of the existing pods.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.HorizontalPodAutoscaling} + */ +public final class HorizontalPodAutoscaling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.HorizontalPodAutoscaling) + HorizontalPodAutoscalingOrBuilder { +private static final long serialVersionUID = 0L; + // Use HorizontalPodAutoscaling.newBuilder() to construct. + private HorizontalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HorizontalPodAutoscaling() { + disabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HorizontalPodAutoscaling( + 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 8: { + + disabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_HorizontalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.HorizontalPodAutoscaling.class, com.google.container.v1alpha1.HorizontalPodAutoscaling.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + *
+   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+   * When enabled, it ensures that a Heapster pod is running in the cluster,
+   * which is also used by the Cloud Monitoring service.
+   * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, disabled_); + } + 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.container.v1alpha1.HorizontalPodAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1alpha1.HorizontalPodAutoscaling other = (com.google.container.v1alpha1.HorizontalPodAutoscaling) obj; + + boolean result = true; + result = result && (getDisabled() + == other.getDisabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.HorizontalPodAutoscaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.HorizontalPodAutoscaling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.HorizontalPodAutoscaling) + com.google.container.v1alpha1.HorizontalPodAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_HorizontalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.HorizontalPodAutoscaling.class, com.google.container.v1alpha1.HorizontalPodAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1alpha1.HorizontalPodAutoscaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.HorizontalPodAutoscaling getDefaultInstanceForType() { + return com.google.container.v1alpha1.HorizontalPodAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.HorizontalPodAutoscaling build() { + com.google.container.v1alpha1.HorizontalPodAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.HorizontalPodAutoscaling buildPartial() { + com.google.container.v1alpha1.HorizontalPodAutoscaling result = new com.google.container.v1alpha1.HorizontalPodAutoscaling(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.HorizontalPodAutoscaling) { + return mergeFrom((com.google.container.v1alpha1.HorizontalPodAutoscaling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.HorizontalPodAutoscaling other) { + if (other == com.google.container.v1alpha1.HorizontalPodAutoscaling.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.HorizontalPodAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.HorizontalPodAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_ ; + /** + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that a Heapster pod is running in the cluster,
+     * which is also used by the Cloud Monitoring service.
+     * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + /** + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that a Heapster pod is running in the cluster,
+     * which is also used by the Cloud Monitoring service.
+     * 
+ * + * bool disabled = 1; + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that a Heapster pod is running in the cluster,
+     * which is also used by the Cloud Monitoring service.
+     * 
+ * + * bool disabled = 1; + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.HorizontalPodAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.HorizontalPodAutoscaling) + private static final com.google.container.v1alpha1.HorizontalPodAutoscaling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.HorizontalPodAutoscaling(); + } + + public static com.google.container.v1alpha1.HorizontalPodAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HorizontalPodAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HorizontalPodAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.HorizontalPodAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HorizontalPodAutoscalingOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HorizontalPodAutoscalingOrBuilder.java new file mode 100644 index 000000000000..3ece6e79fa68 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HorizontalPodAutoscalingOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface HorizontalPodAutoscalingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.HorizontalPodAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+   * When enabled, it ensures that a Heapster pod is running in the cluster,
+   * which is also used by the Cloud Monitoring service.
+   * 
+ * + * bool disabled = 1; + */ + boolean getDisabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HttpLoadBalancing.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HttpLoadBalancing.java new file mode 100644 index 000000000000..d585fe66f0e5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HttpLoadBalancing.java @@ -0,0 +1,507 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration options for the HTTP (L7) load balancing controller addon,
+ * which makes it easy to set up HTTP load balancers for services in a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.HttpLoadBalancing} + */ +public final class HttpLoadBalancing extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.HttpLoadBalancing) + HttpLoadBalancingOrBuilder { +private static final long serialVersionUID = 0L; + // Use HttpLoadBalancing.newBuilder() to construct. + private HttpLoadBalancing(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HttpLoadBalancing() { + disabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HttpLoadBalancing( + 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 8: { + + disabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_HttpLoadBalancing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.HttpLoadBalancing.class, com.google.container.v1alpha1.HttpLoadBalancing.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + *
+   * Whether the HTTP Load Balancing controller is enabled in the cluster.
+   * When enabled, it runs a small pod in the cluster that manages the load
+   * balancers.
+   * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, disabled_); + } + 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.container.v1alpha1.HttpLoadBalancing)) { + return super.equals(obj); + } + com.google.container.v1alpha1.HttpLoadBalancing other = (com.google.container.v1alpha1.HttpLoadBalancing) obj; + + boolean result = true; + result = result && (getDisabled() + == other.getDisabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.HttpLoadBalancing parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.HttpLoadBalancing parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.HttpLoadBalancing prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for the HTTP (L7) load balancing controller addon,
+   * which makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.HttpLoadBalancing} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.HttpLoadBalancing) + com.google.container.v1alpha1.HttpLoadBalancingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_HttpLoadBalancing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.HttpLoadBalancing.class, com.google.container.v1alpha1.HttpLoadBalancing.Builder.class); + } + + // Construct using com.google.container.v1alpha1.HttpLoadBalancing.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.HttpLoadBalancing getDefaultInstanceForType() { + return com.google.container.v1alpha1.HttpLoadBalancing.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.HttpLoadBalancing build() { + com.google.container.v1alpha1.HttpLoadBalancing result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.HttpLoadBalancing buildPartial() { + com.google.container.v1alpha1.HttpLoadBalancing result = new com.google.container.v1alpha1.HttpLoadBalancing(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.HttpLoadBalancing) { + return mergeFrom((com.google.container.v1alpha1.HttpLoadBalancing)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.HttpLoadBalancing other) { + if (other == com.google.container.v1alpha1.HttpLoadBalancing.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.HttpLoadBalancing parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.HttpLoadBalancing) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_ ; + /** + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + /** + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.HttpLoadBalancing) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.HttpLoadBalancing) + private static final com.google.container.v1alpha1.HttpLoadBalancing DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.HttpLoadBalancing(); + } + + public static com.google.container.v1alpha1.HttpLoadBalancing getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpLoadBalancing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpLoadBalancing(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.HttpLoadBalancing getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HttpLoadBalancingOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HttpLoadBalancingOrBuilder.java new file mode 100644 index 000000000000..e7c8c0577f42 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/HttpLoadBalancingOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface HttpLoadBalancingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.HttpLoadBalancing) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the HTTP Load Balancing controller is enabled in the cluster.
+   * When enabled, it runs a small pod in the cluster that manages the load
+   * balancers.
+   * 
+ * + * bool disabled = 1; + */ + boolean getDisabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/IPAllocationPolicy.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/IPAllocationPolicy.java new file mode 100644 index 000000000000..329aaa721a5c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/IPAllocationPolicy.java @@ -0,0 +1,2373 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration for controlling how IPs are allocated in the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.IPAllocationPolicy} + */ +public final class IPAllocationPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.IPAllocationPolicy) + IPAllocationPolicyOrBuilder { +private static final long serialVersionUID = 0L; + // Use IPAllocationPolicy.newBuilder() to construct. + private IPAllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IPAllocationPolicy() { + useIpAliases_ = false; + createSubnetwork_ = false; + subnetworkName_ = ""; + clusterIpv4Cidr_ = ""; + nodeIpv4Cidr_ = ""; + servicesIpv4Cidr_ = ""; + clusterSecondaryRangeName_ = ""; + servicesSecondaryRangeName_ = ""; + clusterIpv4CidrBlock_ = ""; + nodeIpv4CidrBlock_ = ""; + servicesIpv4CidrBlock_ = ""; + allowRouteOverlap_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IPAllocationPolicy( + 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 8: { + + useIpAliases_ = input.readBool(); + break; + } + case 16: { + + createSubnetwork_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + subnetworkName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterIpv4Cidr_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeIpv4Cidr_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesIpv4Cidr_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterSecondaryRangeName_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesSecondaryRangeName_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterIpv4CidrBlock_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeIpv4CidrBlock_ = s; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesIpv4CidrBlock_ = s; + break; + } + case 96: { + + allowRouteOverlap_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_IPAllocationPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.IPAllocationPolicy.class, com.google.container.v1alpha1.IPAllocationPolicy.Builder.class); + } + + public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; + private boolean useIpAliases_; + /** + *
+   * Whether alias IPs will be used for pod IPs in the cluster.
+   * 
+ * + * bool use_ip_aliases = 1; + */ + public boolean getUseIpAliases() { + return useIpAliases_; + } + + public static final int CREATE_SUBNETWORK_FIELD_NUMBER = 2; + private boolean createSubnetwork_; + /** + *
+   * Whether a new subnetwork will be created automatically for the cluster.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * 
+ * + * bool create_subnetwork = 2; + */ + public boolean getCreateSubnetwork() { + return createSubnetwork_; + } + + public static final int SUBNETWORK_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object subnetworkName_; + /** + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + */ + public java.lang.String getSubnetworkName() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetworkName_ = s; + return s; + } + } + /** + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + */ + public com.google.protobuf.ByteString + getSubnetworkNameBytes() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetworkName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 4; + private volatile java.lang.Object clusterIpv4Cidr_; + /** + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } + } + /** + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeIpv4Cidr_; + /** + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodeIpv4Cidr() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4Cidr_ = s; + return s; + } + } + /** + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodeIpv4CidrBytes() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 6; + private volatile java.lang.Object servicesIpv4Cidr_; + /** + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } + } + /** + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object clusterSecondaryRangeName_; + /** + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable if use_ip_aliases is true and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + */ + public java.lang.String getClusterSecondaryRangeName() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterSecondaryRangeName_ = s; + return s; + } + } + /** + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable if use_ip_aliases is true and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + */ + public com.google.protobuf.ByteString + getClusterSecondaryRangeNameBytes() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object servicesSecondaryRangeName_; + /** + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases is true and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + */ + public java.lang.String getServicesSecondaryRangeName() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesSecondaryRangeName_ = s; + return s; + } + } + /** + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases is true and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + */ + public com.google.protobuf.ByteString + getServicesSecondaryRangeNameBytes() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 9; + private volatile java.lang.Object clusterIpv4CidrBlock_; + /** + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public java.lang.String getClusterIpv4CidrBlock() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public com.google.protobuf.ByteString + getClusterIpv4CidrBlockBytes() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER = 10; + private volatile java.lang.Object nodeIpv4CidrBlock_; + /** + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public java.lang.String getNodeIpv4CidrBlock() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public com.google.protobuf.ByteString + getNodeIpv4CidrBlockBytes() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER = 11; + private volatile java.lang.Object servicesIpv4CidrBlock_; + /** + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public java.lang.String getServicesIpv4CidrBlock() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public com.google.protobuf.ByteString + getServicesIpv4CidrBlockBytes() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_ROUTE_OVERLAP_FIELD_NUMBER = 12; + private boolean allowRouteOverlap_; + /** + *
+   * If true, allow allocation of cluster CIDR ranges that overlap with certain
+   * kinds of network routes. By default we do not allow cluster CIDR ranges to
+   * intersect with any user declared routes. With allow_route_overlap == true,
+   * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+   * range.
+   * If this field is set to true, then cluster and services CIDRs must be
+   * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+   * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+   *    `services_ipv4_cidr_block` must be fully-specified.
+   * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+   *    fully-specified.
+   * 
+ * + * bool allow_route_overlap = 12; + */ + public boolean getAllowRouteOverlap() { + return allowRouteOverlap_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (useIpAliases_ != false) { + output.writeBool(1, useIpAliases_); + } + if (createSubnetwork_ != false) { + output.writeBool(2, createSubnetwork_); + } + if (!getSubnetworkNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetworkName_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterIpv4Cidr_); + } + if (!getNodeIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeIpv4Cidr_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, servicesIpv4Cidr_); + } + if (!getClusterSecondaryRangeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterSecondaryRangeName_); + } + if (!getServicesSecondaryRangeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, servicesSecondaryRangeName_); + } + if (!getClusterIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4CidrBlock_); + } + if (!getNodeIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeIpv4CidrBlock_); + } + if (!getServicesIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, servicesIpv4CidrBlock_); + } + if (allowRouteOverlap_ != false) { + output.writeBool(12, allowRouteOverlap_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (useIpAliases_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, useIpAliases_); + } + if (createSubnetwork_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, createSubnetwork_); + } + if (!getSubnetworkNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetworkName_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterIpv4Cidr_); + } + if (!getNodeIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeIpv4Cidr_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, servicesIpv4Cidr_); + } + if (!getClusterSecondaryRangeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterSecondaryRangeName_); + } + if (!getServicesSecondaryRangeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, servicesSecondaryRangeName_); + } + if (!getClusterIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4CidrBlock_); + } + if (!getNodeIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeIpv4CidrBlock_); + } + if (!getServicesIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, servicesIpv4CidrBlock_); + } + if (allowRouteOverlap_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, allowRouteOverlap_); + } + 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.container.v1alpha1.IPAllocationPolicy)) { + return super.equals(obj); + } + com.google.container.v1alpha1.IPAllocationPolicy other = (com.google.container.v1alpha1.IPAllocationPolicy) obj; + + boolean result = true; + result = result && (getUseIpAliases() + == other.getUseIpAliases()); + result = result && (getCreateSubnetwork() + == other.getCreateSubnetwork()); + result = result && getSubnetworkName() + .equals(other.getSubnetworkName()); + result = result && getClusterIpv4Cidr() + .equals(other.getClusterIpv4Cidr()); + result = result && getNodeIpv4Cidr() + .equals(other.getNodeIpv4Cidr()); + result = result && getServicesIpv4Cidr() + .equals(other.getServicesIpv4Cidr()); + result = result && getClusterSecondaryRangeName() + .equals(other.getClusterSecondaryRangeName()); + result = result && getServicesSecondaryRangeName() + .equals(other.getServicesSecondaryRangeName()); + result = result && getClusterIpv4CidrBlock() + .equals(other.getClusterIpv4CidrBlock()); + result = result && getNodeIpv4CidrBlock() + .equals(other.getNodeIpv4CidrBlock()); + result = result && getServicesIpv4CidrBlock() + .equals(other.getServicesIpv4CidrBlock()); + result = result && (getAllowRouteOverlap() + == other.getAllowRouteOverlap()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USE_IP_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseIpAliases()); + hash = (37 * hash) + CREATE_SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCreateSubnetwork()); + hash = (37 * hash) + SUBNETWORK_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSubnetworkName().hashCode(); + hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); + hash = (37 * hash) + NODE_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getNodeIpv4Cidr().hashCode(); + hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); + hash = (37 * hash) + CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClusterSecondaryRangeName().hashCode(); + hash = (37 * hash) + SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getServicesSecondaryRangeName().hashCode(); + hash = (37 * hash) + CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getClusterIpv4CidrBlock().hashCode(); + hash = (37 * hash) + NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getNodeIpv4CidrBlock().hashCode(); + hash = (37 * hash) + SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv4CidrBlock().hashCode(); + hash = (37 * hash) + ALLOW_ROUTE_OVERLAP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowRouteOverlap()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.IPAllocationPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.IPAllocationPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.IPAllocationPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for controlling how IPs are allocated in the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.IPAllocationPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.IPAllocationPolicy) + com.google.container.v1alpha1.IPAllocationPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_IPAllocationPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.IPAllocationPolicy.class, com.google.container.v1alpha1.IPAllocationPolicy.Builder.class); + } + + // Construct using com.google.container.v1alpha1.IPAllocationPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + useIpAliases_ = false; + + createSubnetwork_ = false; + + subnetworkName_ = ""; + + clusterIpv4Cidr_ = ""; + + nodeIpv4Cidr_ = ""; + + servicesIpv4Cidr_ = ""; + + clusterSecondaryRangeName_ = ""; + + servicesSecondaryRangeName_ = ""; + + clusterIpv4CidrBlock_ = ""; + + nodeIpv4CidrBlock_ = ""; + + servicesIpv4CidrBlock_ = ""; + + allowRouteOverlap_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.IPAllocationPolicy getDefaultInstanceForType() { + return com.google.container.v1alpha1.IPAllocationPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.IPAllocationPolicy build() { + com.google.container.v1alpha1.IPAllocationPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.IPAllocationPolicy buildPartial() { + com.google.container.v1alpha1.IPAllocationPolicy result = new com.google.container.v1alpha1.IPAllocationPolicy(this); + result.useIpAliases_ = useIpAliases_; + result.createSubnetwork_ = createSubnetwork_; + result.subnetworkName_ = subnetworkName_; + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + result.nodeIpv4Cidr_ = nodeIpv4Cidr_; + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; + result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; + result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; + result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; + result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; + result.allowRouteOverlap_ = allowRouteOverlap_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.IPAllocationPolicy) { + return mergeFrom((com.google.container.v1alpha1.IPAllocationPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.IPAllocationPolicy other) { + if (other == com.google.container.v1alpha1.IPAllocationPolicy.getDefaultInstance()) return this; + if (other.getUseIpAliases() != false) { + setUseIpAliases(other.getUseIpAliases()); + } + if (other.getCreateSubnetwork() != false) { + setCreateSubnetwork(other.getCreateSubnetwork()); + } + if (!other.getSubnetworkName().isEmpty()) { + subnetworkName_ = other.subnetworkName_; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + onChanged(); + } + if (!other.getNodeIpv4Cidr().isEmpty()) { + nodeIpv4Cidr_ = other.nodeIpv4Cidr_; + onChanged(); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + onChanged(); + } + if (!other.getClusterSecondaryRangeName().isEmpty()) { + clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; + onChanged(); + } + if (!other.getServicesSecondaryRangeName().isEmpty()) { + servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; + onChanged(); + } + if (!other.getClusterIpv4CidrBlock().isEmpty()) { + clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; + onChanged(); + } + if (!other.getNodeIpv4CidrBlock().isEmpty()) { + nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; + onChanged(); + } + if (!other.getServicesIpv4CidrBlock().isEmpty()) { + servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; + onChanged(); + } + if (other.getAllowRouteOverlap() != false) { + setAllowRouteOverlap(other.getAllowRouteOverlap()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.IPAllocationPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.IPAllocationPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean useIpAliases_ ; + /** + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * 
+ * + * bool use_ip_aliases = 1; + */ + public boolean getUseIpAliases() { + return useIpAliases_; + } + /** + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * 
+ * + * bool use_ip_aliases = 1; + */ + public Builder setUseIpAliases(boolean value) { + + useIpAliases_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * 
+ * + * bool use_ip_aliases = 1; + */ + public Builder clearUseIpAliases() { + + useIpAliases_ = false; + onChanged(); + return this; + } + + private boolean createSubnetwork_ ; + /** + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + */ + public boolean getCreateSubnetwork() { + return createSubnetwork_; + } + /** + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + */ + public Builder setCreateSubnetwork(boolean value) { + + createSubnetwork_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + */ + public Builder clearCreateSubnetwork() { + + createSubnetwork_ = false; + onChanged(); + return this; + } + + private java.lang.Object subnetworkName_ = ""; + /** + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + */ + public java.lang.String getSubnetworkName() { + java.lang.Object ref = subnetworkName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetworkName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + */ + public com.google.protobuf.ByteString + getSubnetworkNameBytes() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetworkName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + */ + public Builder setSubnetworkName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetworkName_ = value; + onChanged(); + return this; + } + /** + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + */ + public Builder clearSubnetworkName() { + + subnetworkName_ = getDefaultInstance().getSubnetworkName(); + onChanged(); + return this; + } + /** + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + */ + public Builder setSubnetworkNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetworkName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIpv4Cidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterIpv4Cidr() { + + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIpv4CidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodeIpv4Cidr() { + java.lang.Object ref = nodeIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodeIpv4CidrBytes() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodeIpv4Cidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodeIpv4Cidr() { + + nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodeIpv4CidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setServicesIpv4Cidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearServicesIpv4Cidr() { + + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setServicesIpv4CidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterSecondaryRangeName_ = ""; + /** + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable if use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + */ + public java.lang.String getClusterSecondaryRangeName() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterSecondaryRangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable if use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + */ + public com.google.protobuf.ByteString + getClusterSecondaryRangeNameBytes() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable if use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + */ + public Builder setClusterSecondaryRangeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterSecondaryRangeName_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable if use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + */ + public Builder clearClusterSecondaryRangeName() { + + clusterSecondaryRangeName_ = getDefaultInstance().getClusterSecondaryRangeName(); + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable if use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + */ + public Builder setClusterSecondaryRangeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterSecondaryRangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesSecondaryRangeName_ = ""; + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + */ + public java.lang.String getServicesSecondaryRangeName() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesSecondaryRangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + */ + public com.google.protobuf.ByteString + getServicesSecondaryRangeNameBytes() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + */ + public Builder setServicesSecondaryRangeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesSecondaryRangeName_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + */ + public Builder clearServicesSecondaryRangeName() { + + servicesSecondaryRangeName_ = getDefaultInstance().getServicesSecondaryRangeName(); + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + */ + public Builder setServicesSecondaryRangeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesSecondaryRangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4CidrBlock_ = ""; + /** + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public java.lang.String getClusterIpv4CidrBlock() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public com.google.protobuf.ByteString + getClusterIpv4CidrBlockBytes() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public Builder setClusterIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public Builder clearClusterIpv4CidrBlock() { + + clusterIpv4CidrBlock_ = getDefaultInstance().getClusterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public Builder setClusterIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4CidrBlock_ = ""; + /** + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public java.lang.String getNodeIpv4CidrBlock() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public com.google.protobuf.ByteString + getNodeIpv4CidrBlockBytes() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public Builder setNodeIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public Builder clearNodeIpv4CidrBlock() { + + nodeIpv4CidrBlock_ = getDefaultInstance().getNodeIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public Builder setNodeIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4CidrBlock_ = ""; + /** + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public java.lang.String getServicesIpv4CidrBlock() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public com.google.protobuf.ByteString + getServicesIpv4CidrBlockBytes() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public Builder setServicesIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public Builder clearServicesIpv4CidrBlock() { + + servicesIpv4CidrBlock_ = getDefaultInstance().getServicesIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public Builder setServicesIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private boolean allowRouteOverlap_ ; + /** + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + */ + public boolean getAllowRouteOverlap() { + return allowRouteOverlap_; + } + /** + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + */ + public Builder setAllowRouteOverlap(boolean value) { + + allowRouteOverlap_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + */ + public Builder clearAllowRouteOverlap() { + + allowRouteOverlap_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.IPAllocationPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.IPAllocationPolicy) + private static final com.google.container.v1alpha1.IPAllocationPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.IPAllocationPolicy(); + } + + public static com.google.container.v1alpha1.IPAllocationPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IPAllocationPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IPAllocationPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.IPAllocationPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/IPAllocationPolicyOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/IPAllocationPolicyOrBuilder.java new file mode 100644 index 000000000000..6e3bc67f44d5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/IPAllocationPolicyOrBuilder.java @@ -0,0 +1,291 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface IPAllocationPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.IPAllocationPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether alias IPs will be used for pod IPs in the cluster.
+   * 
+ * + * bool use_ip_aliases = 1; + */ + boolean getUseIpAliases(); + + /** + *
+   * Whether a new subnetwork will be created automatically for the cluster.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * 
+ * + * bool create_subnetwork = 2; + */ + boolean getCreateSubnetwork(); + + /** + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + */ + java.lang.String getSubnetworkName(); + /** + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + */ + com.google.protobuf.ByteString + getSubnetworkNameBytes(); + + /** + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterIpv4Cidr(); + /** + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIpv4CidrBytes(); + + /** + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodeIpv4Cidr(); + /** + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodeIpv4CidrBytes(); + + /** + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getServicesIpv4Cidr(); + /** + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getServicesIpv4CidrBytes(); + + /** + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable if use_ip_aliases is true and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + */ + java.lang.String getClusterSecondaryRangeName(); + /** + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable if use_ip_aliases is true and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + */ + com.google.protobuf.ByteString + getClusterSecondaryRangeNameBytes(); + + /** + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases is true and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + */ + java.lang.String getServicesSecondaryRangeName(); + /** + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases is true and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + */ + com.google.protobuf.ByteString + getServicesSecondaryRangeNameBytes(); + + /** + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + java.lang.String getClusterIpv4CidrBlock(); + /** + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + com.google.protobuf.ByteString + getClusterIpv4CidrBlockBytes(); + + /** + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + */ + java.lang.String getNodeIpv4CidrBlock(); + /** + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + */ + com.google.protobuf.ByteString + getNodeIpv4CidrBlockBytes(); + + /** + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + */ + java.lang.String getServicesIpv4CidrBlock(); + /** + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + */ + com.google.protobuf.ByteString + getServicesIpv4CidrBlockBytes(); + + /** + *
+   * If true, allow allocation of cluster CIDR ranges that overlap with certain
+   * kinds of network routes. By default we do not allow cluster CIDR ranges to
+   * intersect with any user declared routes. With allow_route_overlap == true,
+   * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+   * range.
+   * If this field is set to true, then cluster and services CIDRs must be
+   * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+   * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+   *    `services_ipv4_cidr_block` must be fully-specified.
+   * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+   *    fully-specified.
+   * 
+ * + * bool allow_route_overlap = 12; + */ + boolean getAllowRouteOverlap(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/KubernetesDashboard.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/KubernetesDashboard.java new file mode 100644 index 000000000000..c3314fa5e6f4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/KubernetesDashboard.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration for the Kubernetes Dashboard.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.KubernetesDashboard} + */ +public final class KubernetesDashboard extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.KubernetesDashboard) + KubernetesDashboardOrBuilder { +private static final long serialVersionUID = 0L; + // Use KubernetesDashboard.newBuilder() to construct. + private KubernetesDashboard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KubernetesDashboard() { + disabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KubernetesDashboard( + 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 8: { + + disabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_KubernetesDashboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.KubernetesDashboard.class, com.google.container.v1alpha1.KubernetesDashboard.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + *
+   * Whether the Kubernetes Dashboard is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, disabled_); + } + 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.container.v1alpha1.KubernetesDashboard)) { + return super.equals(obj); + } + com.google.container.v1alpha1.KubernetesDashboard other = (com.google.container.v1alpha1.KubernetesDashboard) obj; + + boolean result = true; + result = result && (getDisabled() + == other.getDisabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.KubernetesDashboard parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.KubernetesDashboard parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.KubernetesDashboard prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.KubernetesDashboard} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.KubernetesDashboard) + com.google.container.v1alpha1.KubernetesDashboardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_KubernetesDashboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.KubernetesDashboard.class, com.google.container.v1alpha1.KubernetesDashboard.Builder.class); + } + + // Construct using com.google.container.v1alpha1.KubernetesDashboard.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.KubernetesDashboard getDefaultInstanceForType() { + return com.google.container.v1alpha1.KubernetesDashboard.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.KubernetesDashboard build() { + com.google.container.v1alpha1.KubernetesDashboard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.KubernetesDashboard buildPartial() { + com.google.container.v1alpha1.KubernetesDashboard result = new com.google.container.v1alpha1.KubernetesDashboard(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.KubernetesDashboard) { + return mergeFrom((com.google.container.v1alpha1.KubernetesDashboard)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.KubernetesDashboard other) { + if (other == com.google.container.v1alpha1.KubernetesDashboard.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.KubernetesDashboard parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.KubernetesDashboard) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_ ; + /** + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + /** + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.KubernetesDashboard) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.KubernetesDashboard) + private static final com.google.container.v1alpha1.KubernetesDashboard DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.KubernetesDashboard(); + } + + public static com.google.container.v1alpha1.KubernetesDashboard getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesDashboard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesDashboard(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.KubernetesDashboard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/KubernetesDashboardOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/KubernetesDashboardOrBuilder.java new file mode 100644 index 000000000000..fba3551864f9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/KubernetesDashboardOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface KubernetesDashboardOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.KubernetesDashboard) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Kubernetes Dashboard is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + */ + boolean getDisabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersRequest.java new file mode 100644 index 000000000000..43d0fc5d306d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersRequest.java @@ -0,0 +1,936 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * ListClustersRequest lists clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListClustersRequest} + */ +public final class ListClustersRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ListClustersRequest) + ListClustersRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListClustersRequest.newBuilder() to construct. + private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListClustersRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListClustersRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListClustersRequest.class, com.google.container.v1alpha1.ListClustersRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + 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.container.v1alpha1.ListClustersRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ListClustersRequest other = (com.google.container.v1alpha1.ListClustersRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ListClustersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListClustersRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListClustersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListClustersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListClustersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListClustersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListClustersRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListClustersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListClustersRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ListClustersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListClustersRequest lists clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListClustersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ListClustersRequest) + com.google.container.v1alpha1.ListClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListClustersRequest.class, com.google.container.v1alpha1.ListClustersRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ListClustersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListClustersRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.ListClustersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ListClustersRequest build() { + com.google.container.v1alpha1.ListClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListClustersRequest buildPartial() { + com.google.container.v1alpha1.ListClustersRequest result = new com.google.container.v1alpha1.ListClustersRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ListClustersRequest) { + return mergeFrom((com.google.container.v1alpha1.ListClustersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ListClustersRequest other) { + if (other == com.google.container.v1alpha1.ListClustersRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ListClustersRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ListClustersRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ListClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ListClustersRequest) + private static final com.google.container.v1alpha1.ListClustersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ListClustersRequest(); + } + + public static com.google.container.v1alpha1.ListClustersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListClustersRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListClustersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersRequestOrBuilder.java new file mode 100644 index 000000000000..bd90390838fd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersRequestOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ListClustersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ListClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersResponse.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersResponse.java new file mode 100644 index 000000000000..ad2587662e01 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersResponse.java @@ -0,0 +1,1117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * ListClustersResponse is the result of ListClustersRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListClustersResponse} + */ +public final class ListClustersResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ListClustersResponse) + ListClustersResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListClustersResponse.newBuilder() to construct. + private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListClustersResponse() { + clusters_ = java.util.Collections.emptyList(); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListClustersResponse( + 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) == 0x00000001)) { + clusters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + clusters_.add( + input.readMessage(com.google.container.v1alpha1.Cluster.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + missingZones_.add(s); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = missingZones_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListClustersResponse.class, com.google.container.v1alpha1.ListClustersResponse.Builder.class); + } + + public static final int CLUSTERS_FIELD_NUMBER = 1; + private java.util.List clusters_; + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public java.util.List getClustersList() { + return clusters_; + } + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public java.util.List + getClustersOrBuilderList() { + return clusters_; + } + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public int getClustersCount() { + return clusters_.size(); + } + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public com.google.container.v1alpha1.Cluster getClusters(int index) { + return clusters_.get(index); + } + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public com.google.container.v1alpha1.ClusterOrBuilder getClustersOrBuilder( + int index) { + return clusters_.get(index); + } + + public static final int MISSING_ZONES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList missingZones_; + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ProtocolStringList + getMissingZonesList() { + return missingZones_; + } + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ByteString + getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < clusters_.size(); i++) { + output.writeMessage(1, clusters_.get(i)); + } + for (int i = 0; i < missingZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < clusters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, clusters_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < missingZones_.size(); i++) { + dataSize += computeStringSizeNoTag(missingZones_.getRaw(i)); + } + size += dataSize; + size += 1 * getMissingZonesList().size(); + } + 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.container.v1alpha1.ListClustersResponse)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ListClustersResponse other = (com.google.container.v1alpha1.ListClustersResponse) obj; + + boolean result = true; + result = result && getClustersList() + .equals(other.getClustersList()); + result = result && getMissingZonesList() + .equals(other.getMissingZonesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getClustersCount() > 0) { + hash = (37 * hash) + CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getClustersList().hashCode(); + } + if (getMissingZonesCount() > 0) { + hash = (37 * hash) + MISSING_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getMissingZonesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ListClustersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListClustersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListClustersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListClustersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListClustersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListClustersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListClustersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListClustersResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListClustersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListClustersResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ListClustersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListClustersResponse is the result of ListClustersRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListClustersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ListClustersResponse) + com.google.container.v1alpha1.ListClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListClustersResponse.class, com.google.container.v1alpha1.ListClustersResponse.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ListClustersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getClustersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + clustersBuilder_.clear(); + } + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListClustersResponse getDefaultInstanceForType() { + return com.google.container.v1alpha1.ListClustersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ListClustersResponse build() { + com.google.container.v1alpha1.ListClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListClustersResponse buildPartial() { + com.google.container.v1alpha1.ListClustersResponse result = new com.google.container.v1alpha1.ListClustersResponse(this); + int from_bitField0_ = bitField0_; + if (clustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusters_ = clusters_; + } else { + result.clusters_ = clustersBuilder_.build(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = missingZones_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.missingZones_ = missingZones_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ListClustersResponse) { + return mergeFrom((com.google.container.v1alpha1.ListClustersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ListClustersResponse other) { + if (other == com.google.container.v1alpha1.ListClustersResponse.getDefaultInstance()) return this; + if (clustersBuilder_ == null) { + if (!other.clusters_.isEmpty()) { + if (clusters_.isEmpty()) { + clusters_ = other.clusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClustersIsMutable(); + clusters_.addAll(other.clusters_); + } + onChanged(); + } + } else { + if (!other.clusters_.isEmpty()) { + if (clustersBuilder_.isEmpty()) { + clustersBuilder_.dispose(); + clustersBuilder_ = null; + clusters_ = other.clusters_; + bitField0_ = (bitField0_ & ~0x00000001); + clustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClustersFieldBuilder() : null; + } else { + clustersBuilder_.addAllMessages(other.clusters_); + } + } + } + if (!other.missingZones_.isEmpty()) { + if (missingZones_.isEmpty()) { + missingZones_ = other.missingZones_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ListClustersResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ListClustersResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List clusters_ = + java.util.Collections.emptyList(); + private void ensureClustersIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + clusters_ = new java.util.ArrayList(clusters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.Cluster, com.google.container.v1alpha1.Cluster.Builder, com.google.container.v1alpha1.ClusterOrBuilder> clustersBuilder_; + + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public java.util.List getClustersList() { + if (clustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusters_); + } else { + return clustersBuilder_.getMessageList(); + } + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public int getClustersCount() { + if (clustersBuilder_ == null) { + return clusters_.size(); + } else { + return clustersBuilder_.getCount(); + } + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public com.google.container.v1alpha1.Cluster getClusters(int index) { + if (clustersBuilder_ == null) { + return clusters_.get(index); + } else { + return clustersBuilder_.getMessage(index); + } + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public Builder setClusters( + int index, com.google.container.v1alpha1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.set(index, value); + onChanged(); + } else { + clustersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public Builder setClusters( + int index, com.google.container.v1alpha1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.set(index, builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public Builder addClusters(com.google.container.v1alpha1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.add(value); + onChanged(); + } else { + clustersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public Builder addClusters( + int index, com.google.container.v1alpha1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.add(index, value); + onChanged(); + } else { + clustersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public Builder addClusters( + com.google.container.v1alpha1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public Builder addClusters( + int index, com.google.container.v1alpha1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(index, builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public Builder addAllClusters( + java.lang.Iterable values) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clusters_); + onChanged(); + } else { + clustersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public Builder clearClusters() { + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + clustersBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public Builder removeClusters(int index) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.remove(index); + onChanged(); + } else { + clustersBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public com.google.container.v1alpha1.Cluster.Builder getClustersBuilder( + int index) { + return getClustersFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public com.google.container.v1alpha1.ClusterOrBuilder getClustersOrBuilder( + int index) { + if (clustersBuilder_ == null) { + return clusters_.get(index); } else { + return clustersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public java.util.List + getClustersOrBuilderList() { + if (clustersBuilder_ != null) { + return clustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusters_); + } + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public com.google.container.v1alpha1.Cluster.Builder addClustersBuilder() { + return getClustersFieldBuilder().addBuilder( + com.google.container.v1alpha1.Cluster.getDefaultInstance()); + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public com.google.container.v1alpha1.Cluster.Builder addClustersBuilder( + int index) { + return getClustersFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.Cluster.getDefaultInstance()); + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + public java.util.List + getClustersBuilderList() { + return getClustersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.Cluster, com.google.container.v1alpha1.Cluster.Builder, com.google.container.v1alpha1.ClusterOrBuilder> + getClustersFieldBuilder() { + if (clustersBuilder_ == null) { + clustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.Cluster, com.google.container.v1alpha1.Cluster.Builder, com.google.container.v1alpha1.ClusterOrBuilder>( + clusters_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + clusters_ = null; + } + return clustersBuilder_; + } + + private com.google.protobuf.LazyStringList missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMissingZonesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ProtocolStringList + getMissingZonesList() { + return missingZones_.getUnmodifiableView(); + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ByteString + getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder setMissingZones( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addMissingZones( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addAllMissingZones( + java.lang.Iterable values) { + ensureMissingZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingZones_); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder clearMissingZones() { + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addMissingZonesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ListClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ListClustersResponse) + private static final com.google.container.v1alpha1.ListClustersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ListClustersResponse(); + } + + public static com.google.container.v1alpha1.ListClustersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListClustersResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListClustersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersResponseOrBuilder.java new file mode 100644 index 000000000000..6e078e2dc266 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListClustersResponseOrBuilder.java @@ -0,0 +1,97 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ListClustersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ListClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + java.util.List + getClustersList(); + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + com.google.container.v1alpha1.Cluster getClusters(int index); + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + int getClustersCount(); + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + java.util.List + getClustersOrBuilderList(); + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1alpha1.Cluster clusters = 1; + */ + com.google.container.v1alpha1.ClusterOrBuilder getClustersOrBuilder( + int index); + + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + java.util.List + getMissingZonesList(); + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + int getMissingZonesCount(); + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + java.lang.String getMissingZones(int index); + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + com.google.protobuf.ByteString + getMissingZonesBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsRequest.java new file mode 100644 index 000000000000..50addf253bf7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsRequest.java @@ -0,0 +1,1091 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * ListNodePoolsRequest lists the node pool(s) for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListNodePoolsRequest} + */ +public final class ListNodePoolsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ListNodePoolsRequest) + ListNodePoolsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListNodePoolsRequest.newBuilder() to construct. + private ListNodePoolsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListNodePoolsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListNodePoolsRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListNodePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListNodePoolsRequest.class, com.google.container.v1alpha1.ListNodePoolsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } + 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.container.v1alpha1.ListNodePoolsRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ListNodePoolsRequest other = (com.google.container.v1alpha1.ListNodePoolsRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ListNodePoolsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListNodePoolsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ListNodePoolsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListNodePoolsRequest lists the node pool(s) for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListNodePoolsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ListNodePoolsRequest) + com.google.container.v1alpha1.ListNodePoolsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListNodePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListNodePoolsRequest.class, com.google.container.v1alpha1.ListNodePoolsRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ListNodePoolsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListNodePoolsRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.ListNodePoolsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ListNodePoolsRequest build() { + com.google.container.v1alpha1.ListNodePoolsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListNodePoolsRequest buildPartial() { + com.google.container.v1alpha1.ListNodePoolsRequest result = new com.google.container.v1alpha1.ListNodePoolsRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ListNodePoolsRequest) { + return mergeFrom((com.google.container.v1alpha1.ListNodePoolsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ListNodePoolsRequest other) { + if (other == com.google.container.v1alpha1.ListNodePoolsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ListNodePoolsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ListNodePoolsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ListNodePoolsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ListNodePoolsRequest) + private static final com.google.container.v1alpha1.ListNodePoolsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ListNodePoolsRequest(); + } + + public static com.google.container.v1alpha1.ListNodePoolsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodePoolsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNodePoolsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListNodePoolsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsRequestOrBuilder.java new file mode 100644 index 000000000000..e111d5107d91 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ListNodePoolsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ListNodePoolsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsResponse.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsResponse.java new file mode 100644 index 000000000000..efe0e68b358c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsResponse.java @@ -0,0 +1,859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * ListNodePoolsResponse is the result of ListNodePoolsRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListNodePoolsResponse} + */ +public final class ListNodePoolsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ListNodePoolsResponse) + ListNodePoolsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListNodePoolsResponse.newBuilder() to construct. + private ListNodePoolsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListNodePoolsResponse() { + nodePools_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListNodePoolsResponse( + 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) == 0x00000001)) { + nodePools_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodePools_.add( + input.readMessage(com.google.container.v1alpha1.NodePool.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListNodePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListNodePoolsResponse.class, com.google.container.v1alpha1.ListNodePoolsResponse.Builder.class); + } + + public static final int NODE_POOLS_FIELD_NUMBER = 1; + private java.util.List nodePools_; + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public java.util.List getNodePoolsList() { + return nodePools_; + } + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public java.util.List + getNodePoolsOrBuilderList() { + return nodePools_; + } + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public int getNodePoolsCount() { + return nodePools_.size(); + } + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public com.google.container.v1alpha1.NodePool getNodePools(int index) { + return nodePools_.get(index); + } + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public com.google.container.v1alpha1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index) { + return nodePools_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(1, nodePools_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodePools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodePools_.get(i)); + } + 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.container.v1alpha1.ListNodePoolsResponse)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ListNodePoolsResponse other = (com.google.container.v1alpha1.ListNodePoolsResponse) obj; + + boolean result = true; + result = result && getNodePoolsList() + .equals(other.getNodePoolsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodePoolsCount() > 0) { + hash = (37 * hash) + NODE_POOLS_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ListNodePoolsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListNodePoolsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ListNodePoolsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListNodePoolsResponse is the result of ListNodePoolsRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListNodePoolsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ListNodePoolsResponse) + com.google.container.v1alpha1.ListNodePoolsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListNodePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListNodePoolsResponse.class, com.google.container.v1alpha1.ListNodePoolsResponse.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ListNodePoolsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodePoolsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListNodePoolsResponse getDefaultInstanceForType() { + return com.google.container.v1alpha1.ListNodePoolsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ListNodePoolsResponse build() { + com.google.container.v1alpha1.ListNodePoolsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListNodePoolsResponse buildPartial() { + com.google.container.v1alpha1.ListNodePoolsResponse result = new com.google.container.v1alpha1.ListNodePoolsResponse(this); + int from_bitField0_ = bitField0_; + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ListNodePoolsResponse) { + return mergeFrom((com.google.container.v1alpha1.ListNodePoolsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ListNodePoolsResponse other) { + if (other == com.google.container.v1alpha1.ListNodePoolsResponse.getDefaultInstance()) return this; + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodePoolsFieldBuilder() : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ListNodePoolsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ListNodePoolsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nodePools_ = + java.util.Collections.emptyList(); + private void ensureNodePoolsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + nodePools_ = new java.util.ArrayList(nodePools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.NodePool, com.google.container.v1alpha1.NodePool.Builder, com.google.container.v1alpha1.NodePoolOrBuilder> nodePoolsBuilder_; + + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public java.util.List getNodePoolsList() { + if (nodePoolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodePools_); + } else { + return nodePoolsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public int getNodePoolsCount() { + if (nodePoolsBuilder_ == null) { + return nodePools_.size(); + } else { + return nodePoolsBuilder_.getCount(); + } + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public com.google.container.v1alpha1.NodePool getNodePools(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public Builder setNodePools( + int index, com.google.container.v1alpha1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.set(index, value); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public Builder setNodePools( + int index, com.google.container.v1alpha1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.set(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public Builder addNodePools(com.google.container.v1alpha1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public Builder addNodePools( + int index, com.google.container.v1alpha1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(index, value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public Builder addNodePools( + com.google.container.v1alpha1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public Builder addNodePools( + int index, com.google.container.v1alpha1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public Builder addAllNodePools( + java.lang.Iterable values) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodePools_); + onChanged(); + } else { + nodePoolsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public Builder clearNodePools() { + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public Builder removeNodePools(int index) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.remove(index); + onChanged(); + } else { + nodePoolsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public com.google.container.v1alpha1.NodePool.Builder getNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public com.google.container.v1alpha1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); } else { + return nodePoolsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public java.util.List + getNodePoolsOrBuilderList() { + if (nodePoolsBuilder_ != null) { + return nodePoolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodePools_); + } + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public com.google.container.v1alpha1.NodePool.Builder addNodePoolsBuilder() { + return getNodePoolsFieldBuilder().addBuilder( + com.google.container.v1alpha1.NodePool.getDefaultInstance()); + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public com.google.container.v1alpha1.NodePool.Builder addNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.NodePool.getDefaultInstance()); + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + public java.util.List + getNodePoolsBuilderList() { + return getNodePoolsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.NodePool, com.google.container.v1alpha1.NodePool.Builder, com.google.container.v1alpha1.NodePoolOrBuilder> + getNodePoolsFieldBuilder() { + if (nodePoolsBuilder_ == null) { + nodePoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.NodePool, com.google.container.v1alpha1.NodePool.Builder, com.google.container.v1alpha1.NodePoolOrBuilder>( + nodePools_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + nodePools_ = null; + } + return nodePoolsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ListNodePoolsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ListNodePoolsResponse) + private static final com.google.container.v1alpha1.ListNodePoolsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ListNodePoolsResponse(); + } + + public static com.google.container.v1alpha1.ListNodePoolsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodePoolsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNodePoolsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListNodePoolsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsResponseOrBuilder.java new file mode 100644 index 000000000000..9cf8c74ac039 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListNodePoolsResponseOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ListNodePoolsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ListNodePoolsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + java.util.List + getNodePoolsList(); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + com.google.container.v1alpha1.NodePool getNodePools(int index); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + int getNodePoolsCount(); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + java.util.List + getNodePoolsOrBuilderList(); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1alpha1.NodePool node_pools = 1; + */ + com.google.container.v1alpha1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsRequest.java new file mode 100644 index 000000000000..ab4dd1fc1159 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsRequest.java @@ -0,0 +1,929 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * ListOperationsRequest lists operations.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListOperationsRequest} + */ +public final class ListOperationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ListOperationsRequest) + ListOperationsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListOperationsRequest.newBuilder() to construct. + private ListOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListOperationsRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListOperationsRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListOperationsRequest.class, com.google.container.v1alpha1.ListOperationsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + 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.container.v1alpha1.ListOperationsRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ListOperationsRequest other = (com.google.container.v1alpha1.ListOperationsRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ListOperationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListOperationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ListOperationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListOperationsRequest lists operations.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListOperationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ListOperationsRequest) + com.google.container.v1alpha1.ListOperationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListOperationsRequest.class, com.google.container.v1alpha1.ListOperationsRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ListOperationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListOperationsRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.ListOperationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ListOperationsRequest build() { + com.google.container.v1alpha1.ListOperationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListOperationsRequest buildPartial() { + com.google.container.v1alpha1.ListOperationsRequest result = new com.google.container.v1alpha1.ListOperationsRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ListOperationsRequest) { + return mergeFrom((com.google.container.v1alpha1.ListOperationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ListOperationsRequest other) { + if (other == com.google.container.v1alpha1.ListOperationsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ListOperationsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ListOperationsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ListOperationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ListOperationsRequest) + private static final com.google.container.v1alpha1.ListOperationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ListOperationsRequest(); + } + + public static com.google.container.v1alpha1.ListOperationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOperationsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListOperationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsRequestOrBuilder.java new file mode 100644 index 000000000000..1843fcc5d713 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsRequestOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ListOperationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ListOperationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsResponse.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsResponse.java new file mode 100644 index 000000000000..8c5d5b6fc4fb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsResponse.java @@ -0,0 +1,1094 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * ListOperationsResponse is the result of ListOperationsRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListOperationsResponse} + */ +public final class ListOperationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ListOperationsResponse) + ListOperationsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListOperationsResponse.newBuilder() to construct. + private ListOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListOperationsResponse() { + operations_ = java.util.Collections.emptyList(); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListOperationsResponse( + 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) == 0x00000001)) { + operations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + operations_.add( + input.readMessage(com.google.container.v1alpha1.Operation.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + missingZones_.add(s); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = missingZones_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListOperationsResponse.class, com.google.container.v1alpha1.ListOperationsResponse.Builder.class); + } + + public static final int OPERATIONS_FIELD_NUMBER = 1; + private java.util.List operations_; + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public java.util.List getOperationsList() { + return operations_; + } + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public java.util.List + getOperationsOrBuilderList() { + return operations_; + } + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public int getOperationsCount() { + return operations_.size(); + } + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public com.google.container.v1alpha1.Operation getOperations(int index) { + return operations_.get(index); + } + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public com.google.container.v1alpha1.OperationOrBuilder getOperationsOrBuilder( + int index) { + return operations_.get(index); + } + + public static final int MISSING_ZONES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList missingZones_; + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ProtocolStringList + getMissingZonesList() { + return missingZones_; + } + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ByteString + getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < operations_.size(); i++) { + output.writeMessage(1, operations_.get(i)); + } + for (int i = 0; i < missingZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < operations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, operations_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < missingZones_.size(); i++) { + dataSize += computeStringSizeNoTag(missingZones_.getRaw(i)); + } + size += dataSize; + size += 1 * getMissingZonesList().size(); + } + 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.container.v1alpha1.ListOperationsResponse)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ListOperationsResponse other = (com.google.container.v1alpha1.ListOperationsResponse) obj; + + boolean result = true; + result = result && getOperationsList() + .equals(other.getOperationsList()); + result = result && getMissingZonesList() + .equals(other.getMissingZonesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOperationsCount() > 0) { + hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOperationsList().hashCode(); + } + if (getMissingZonesCount() > 0) { + hash = (37 * hash) + MISSING_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getMissingZonesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ListOperationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListOperationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ListOperationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListOperationsResponse is the result of ListOperationsRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListOperationsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ListOperationsResponse) + com.google.container.v1alpha1.ListOperationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListOperationsResponse.class, com.google.container.v1alpha1.ListOperationsResponse.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ListOperationsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOperationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + operationsBuilder_.clear(); + } + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListOperationsResponse getDefaultInstanceForType() { + return com.google.container.v1alpha1.ListOperationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ListOperationsResponse build() { + com.google.container.v1alpha1.ListOperationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListOperationsResponse buildPartial() { + com.google.container.v1alpha1.ListOperationsResponse result = new com.google.container.v1alpha1.ListOperationsResponse(this); + int from_bitField0_ = bitField0_; + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = missingZones_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.missingZones_ = missingZones_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ListOperationsResponse) { + return mergeFrom((com.google.container.v1alpha1.ListOperationsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ListOperationsResponse other) { + if (other == com.google.container.v1alpha1.ListOperationsResponse.getDefaultInstance()) return this; + if (operationsBuilder_ == null) { + if (!other.operations_.isEmpty()) { + if (operations_.isEmpty()) { + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOperationsIsMutable(); + operations_.addAll(other.operations_); + } + onChanged(); + } + } else { + if (!other.operations_.isEmpty()) { + if (operationsBuilder_.isEmpty()) { + operationsBuilder_.dispose(); + operationsBuilder_ = null; + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOperationsFieldBuilder() : null; + } else { + operationsBuilder_.addAllMessages(other.operations_); + } + } + } + if (!other.missingZones_.isEmpty()) { + if (missingZones_.isEmpty()) { + missingZones_ = other.missingZones_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ListOperationsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ListOperationsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List operations_ = + java.util.Collections.emptyList(); + private void ensureOperationsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + operations_ = new java.util.ArrayList(operations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.Operation, com.google.container.v1alpha1.Operation.Builder, com.google.container.v1alpha1.OperationOrBuilder> operationsBuilder_; + + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public java.util.List getOperationsList() { + if (operationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(operations_); + } else { + return operationsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public int getOperationsCount() { + if (operationsBuilder_ == null) { + return operations_.size(); + } else { + return operationsBuilder_.getCount(); + } + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public com.google.container.v1alpha1.Operation getOperations(int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); + } else { + return operationsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public Builder setOperations( + int index, com.google.container.v1alpha1.Operation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.set(index, value); + onChanged(); + } else { + operationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public Builder setOperations( + int index, com.google.container.v1alpha1.Operation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.set(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public Builder addOperations(com.google.container.v1alpha1.Operation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(value); + onChanged(); + } else { + operationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public Builder addOperations( + int index, com.google.container.v1alpha1.Operation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(index, value); + onChanged(); + } else { + operationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public Builder addOperations( + com.google.container.v1alpha1.Operation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public Builder addOperations( + int index, com.google.container.v1alpha1.Operation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public Builder addAllOperations( + java.lang.Iterable values) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, operations_); + onChanged(); + } else { + operationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public Builder clearOperations() { + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + operationsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public Builder removeOperations(int index) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.remove(index); + onChanged(); + } else { + operationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public com.google.container.v1alpha1.Operation.Builder getOperationsBuilder( + int index) { + return getOperationsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public com.google.container.v1alpha1.OperationOrBuilder getOperationsOrBuilder( + int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); } else { + return operationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public java.util.List + getOperationsOrBuilderList() { + if (operationsBuilder_ != null) { + return operationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(operations_); + } + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public com.google.container.v1alpha1.Operation.Builder addOperationsBuilder() { + return getOperationsFieldBuilder().addBuilder( + com.google.container.v1alpha1.Operation.getDefaultInstance()); + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public com.google.container.v1alpha1.Operation.Builder addOperationsBuilder( + int index) { + return getOperationsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.Operation.getDefaultInstance()); + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + public java.util.List + getOperationsBuilderList() { + return getOperationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.Operation, com.google.container.v1alpha1.Operation.Builder, com.google.container.v1alpha1.OperationOrBuilder> + getOperationsFieldBuilder() { + if (operationsBuilder_ == null) { + operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.Operation, com.google.container.v1alpha1.Operation.Builder, com.google.container.v1alpha1.OperationOrBuilder>( + operations_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + operations_ = null; + } + return operationsBuilder_; + } + + private com.google.protobuf.LazyStringList missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMissingZonesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ProtocolStringList + getMissingZonesList() { + return missingZones_.getUnmodifiableView(); + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ByteString + getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder setMissingZones( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addMissingZones( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addAllMissingZones( + java.lang.Iterable values) { + ensureMissingZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingZones_); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder clearMissingZones() { + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addMissingZonesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ListOperationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ListOperationsResponse) + private static final com.google.container.v1alpha1.ListOperationsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ListOperationsResponse(); + } + + public static com.google.container.v1alpha1.ListOperationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOperationsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListOperationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsResponseOrBuilder.java new file mode 100644 index 000000000000..987b5a905a0c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListOperationsResponseOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ListOperationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ListOperationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + java.util.List + getOperationsList(); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + com.google.container.v1alpha1.Operation getOperations(int index); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + int getOperationsCount(); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + java.util.List + getOperationsOrBuilderList(); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1alpha1.Operation operations = 1; + */ + com.google.container.v1alpha1.OperationOrBuilder getOperationsOrBuilder( + int index); + + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + java.util.List + getMissingZonesList(); + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + int getMissingZonesCount(); + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + java.lang.String getMissingZones(int index); + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + com.google.protobuf.ByteString + getMissingZonesBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksRequest.java new file mode 100644 index 000000000000..a3ea5506c808 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksRequest.java @@ -0,0 +1,1008 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * ListUsableSubnetworksRequest requests the list of usable subnetworks.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListUsableSubnetworksRequest} + */ +public final class ListUsableSubnetworksRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ListUsableSubnetworksRequest) + ListUsableSubnetworksRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListUsableSubnetworksRequest.newBuilder() to construct. + private ListUsableSubnetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsableSubnetworksRequest() { + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListUsableSubnetworksRequest( + 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(); + + parent_ = 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 (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListUsableSubnetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListUsableSubnetworksRequest.class, com.google.container.v1alpha1.ListUsableSubnetworksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + */ + 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; + } + } + /** + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + */ + 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 max number of results per page that should be returned. If the number
+   * of available results is larger than `page_size`, a `next_page_token` is
+   * returned which can be used to get the next page of results in subsequent
+   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + *
+   * Specifies a page token to use. Set this to the next_page_token returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * Specifies a page token to use. Set this to the next_page_token returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + */ + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + 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 (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + 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.container.v1alpha1.ListUsableSubnetworksRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ListUsableSubnetworksRequest other = (com.google.container.v1alpha1.ListUsableSubnetworksRequest) obj; + + boolean result = true; + result = result && getParent() + .equals(other.getParent()); + result = result && getFilter() + .equals(other.getFilter()); + result = result && (getPageSize() + == other.getPageSize()); + result = result && getPageToken() + .equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ListUsableSubnetworksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListUsableSubnetworksRequest requests the list of usable subnetworks.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListUsableSubnetworksRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ListUsableSubnetworksRequest) + com.google.container.v1alpha1.ListUsableSubnetworksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListUsableSubnetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListUsableSubnetworksRequest.class, com.google.container.v1alpha1.ListUsableSubnetworksRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ListUsableSubnetworksRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListUsableSubnetworksRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.ListUsableSubnetworksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ListUsableSubnetworksRequest build() { + com.google.container.v1alpha1.ListUsableSubnetworksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListUsableSubnetworksRequest buildPartial() { + com.google.container.v1alpha1.ListUsableSubnetworksRequest result = new com.google.container.v1alpha1.ListUsableSubnetworksRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ListUsableSubnetworksRequest) { + return mergeFrom((com.google.container.v1alpha1.ListUsableSubnetworksRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ListUsableSubnetworksRequest other) { + if (other == com.google.container.v1alpha1.ListUsableSubnetworksRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ListUsableSubnetworksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ListUsableSubnetworksRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + */ + 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; + } + } + /** + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + */ + 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; + } + } + /** + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + */ + 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 max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * Specifies a page token to use. Set this to the next_page_token returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Specifies a page token to use. Set this to the next_page_token returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Specifies a page token to use. Set this to the next_page_token returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Specifies a page token to use. Set this to the next_page_token returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * Specifies a page token to use. Set this to the next_page_token returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ListUsableSubnetworksRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ListUsableSubnetworksRequest) + private static final com.google.container.v1alpha1.ListUsableSubnetworksRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ListUsableSubnetworksRequest(); + } + + public static com.google.container.v1alpha1.ListUsableSubnetworksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableSubnetworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUsableSubnetworksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListUsableSubnetworksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksRequestOrBuilder.java new file mode 100644 index 000000000000..16cb3e3be65d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksRequestOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ListUsableSubnetworksRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ListUsableSubnetworksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+   * The max number of results per page that should be returned. If the number
+   * of available results is larger than `page_size`, a `next_page_token` is
+   * returned which can be used to get the next page of results in subsequent
+   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + + /** + *
+   * Specifies a page token to use. Set this to the next_page_token returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + */ + java.lang.String getPageToken(); + /** + *
+   * Specifies a page token to use. Set this to the next_page_token returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksResponse.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksResponse.java new file mode 100644 index 000000000000..97a15dc1b5e4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksResponse.java @@ -0,0 +1,1040 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * ListUsableSubnetworksResponse is the response of
+ * ListUsableSubnetworksRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListUsableSubnetworksResponse} + */ +public final class ListUsableSubnetworksResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ListUsableSubnetworksResponse) + ListUsableSubnetworksResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListUsableSubnetworksResponse.newBuilder() to construct. + private ListUsableSubnetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsableSubnetworksResponse() { + subnetworks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListUsableSubnetworksResponse( + 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) == 0x00000001)) { + subnetworks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subnetworks_.add( + input.readMessage(com.google.container.v1alpha1.UsableSubnetwork.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListUsableSubnetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListUsableSubnetworksResponse.class, com.google.container.v1alpha1.ListUsableSubnetworksResponse.Builder.class); + } + + private int bitField0_; + public static final int SUBNETWORKS_FIELD_NUMBER = 1; + private java.util.List subnetworks_; + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List getSubnetworksList() { + return subnetworks_; + } + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List + getSubnetworksOrBuilderList() { + return subnetworks_; + } + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public int getSubnetworksCount() { + return subnetworks_.size(); + } + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1alpha1.UsableSubnetwork getSubnetworks(int index) { + return subnetworks_.get(index); + } + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1alpha1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder( + int index) { + return subnetworks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + */ + 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; + } + } + /** + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + */ + 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 < subnetworks_.size(); i++) { + output.writeMessage(1, subnetworks_.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 < subnetworks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, subnetworks_.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.container.v1alpha1.ListUsableSubnetworksResponse)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ListUsableSubnetworksResponse other = (com.google.container.v1alpha1.ListUsableSubnetworksResponse) obj; + + boolean result = true; + result = result && getSubnetworksList() + .equals(other.getSubnetworksList()); + result = result && getNextPageToken() + .equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubnetworksCount() > 0) { + hash = (37 * hash) + SUBNETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getSubnetworksList().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.container.v1alpha1.ListUsableSubnetworksResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ListUsableSubnetworksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListUsableSubnetworksResponse is the response of
+   * ListUsableSubnetworksRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ListUsableSubnetworksResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ListUsableSubnetworksResponse) + com.google.container.v1alpha1.ListUsableSubnetworksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListUsableSubnetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ListUsableSubnetworksResponse.class, com.google.container.v1alpha1.ListUsableSubnetworksResponse.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ListUsableSubnetworksResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubnetworksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (subnetworksBuilder_ == null) { + subnetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + subnetworksBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListUsableSubnetworksResponse getDefaultInstanceForType() { + return com.google.container.v1alpha1.ListUsableSubnetworksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ListUsableSubnetworksResponse build() { + com.google.container.v1alpha1.ListUsableSubnetworksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListUsableSubnetworksResponse buildPartial() { + com.google.container.v1alpha1.ListUsableSubnetworksResponse result = new com.google.container.v1alpha1.ListUsableSubnetworksResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (subnetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subnetworks_ = subnetworks_; + } else { + result.subnetworks_ = subnetworksBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ListUsableSubnetworksResponse) { + return mergeFrom((com.google.container.v1alpha1.ListUsableSubnetworksResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ListUsableSubnetworksResponse other) { + if (other == com.google.container.v1alpha1.ListUsableSubnetworksResponse.getDefaultInstance()) return this; + if (subnetworksBuilder_ == null) { + if (!other.subnetworks_.isEmpty()) { + if (subnetworks_.isEmpty()) { + subnetworks_ = other.subnetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubnetworksIsMutable(); + subnetworks_.addAll(other.subnetworks_); + } + onChanged(); + } + } else { + if (!other.subnetworks_.isEmpty()) { + if (subnetworksBuilder_.isEmpty()) { + subnetworksBuilder_.dispose(); + subnetworksBuilder_ = null; + subnetworks_ = other.subnetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + subnetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubnetworksFieldBuilder() : null; + } else { + subnetworksBuilder_.addAllMessages(other.subnetworks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ListUsableSubnetworksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ListUsableSubnetworksResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List subnetworks_ = + java.util.Collections.emptyList(); + private void ensureSubnetworksIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + subnetworks_ = new java.util.ArrayList(subnetworks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.UsableSubnetwork, com.google.container.v1alpha1.UsableSubnetwork.Builder, com.google.container.v1alpha1.UsableSubnetworkOrBuilder> subnetworksBuilder_; + + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List getSubnetworksList() { + if (subnetworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(subnetworks_); + } else { + return subnetworksBuilder_.getMessageList(); + } + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public int getSubnetworksCount() { + if (subnetworksBuilder_ == null) { + return subnetworks_.size(); + } else { + return subnetworksBuilder_.getCount(); + } + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1alpha1.UsableSubnetwork getSubnetworks(int index) { + if (subnetworksBuilder_ == null) { + return subnetworks_.get(index); + } else { + return subnetworksBuilder_.getMessage(index); + } + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public Builder setSubnetworks( + int index, com.google.container.v1alpha1.UsableSubnetwork value) { + if (subnetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetworksIsMutable(); + subnetworks_.set(index, value); + onChanged(); + } else { + subnetworksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public Builder setSubnetworks( + int index, com.google.container.v1alpha1.UsableSubnetwork.Builder builderForValue) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.set(index, builderForValue.build()); + onChanged(); + } else { + subnetworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks(com.google.container.v1alpha1.UsableSubnetwork value) { + if (subnetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetworksIsMutable(); + subnetworks_.add(value); + onChanged(); + } else { + subnetworksBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + int index, com.google.container.v1alpha1.UsableSubnetwork value) { + if (subnetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetworksIsMutable(); + subnetworks_.add(index, value); + onChanged(); + } else { + subnetworksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + com.google.container.v1alpha1.UsableSubnetwork.Builder builderForValue) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.add(builderForValue.build()); + onChanged(); + } else { + subnetworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + int index, com.google.container.v1alpha1.UsableSubnetwork.Builder builderForValue) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.add(index, builderForValue.build()); + onChanged(); + } else { + subnetworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public Builder addAllSubnetworks( + java.lang.Iterable values) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subnetworks_); + onChanged(); + } else { + subnetworksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public Builder clearSubnetworks() { + if (subnetworksBuilder_ == null) { + subnetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + subnetworksBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public Builder removeSubnetworks(int index) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.remove(index); + onChanged(); + } else { + subnetworksBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1alpha1.UsableSubnetwork.Builder getSubnetworksBuilder( + int index) { + return getSubnetworksFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1alpha1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder( + int index) { + if (subnetworksBuilder_ == null) { + return subnetworks_.get(index); } else { + return subnetworksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List + getSubnetworksOrBuilderList() { + if (subnetworksBuilder_ != null) { + return subnetworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subnetworks_); + } + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1alpha1.UsableSubnetwork.Builder addSubnetworksBuilder() { + return getSubnetworksFieldBuilder().addBuilder( + com.google.container.v1alpha1.UsableSubnetwork.getDefaultInstance()); + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1alpha1.UsableSubnetwork.Builder addSubnetworksBuilder( + int index) { + return getSubnetworksFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.UsableSubnetwork.getDefaultInstance()); + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List + getSubnetworksBuilderList() { + return getSubnetworksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.UsableSubnetwork, com.google.container.v1alpha1.UsableSubnetwork.Builder, com.google.container.v1alpha1.UsableSubnetworkOrBuilder> + getSubnetworksFieldBuilder() { + if (subnetworksBuilder_ == null) { + subnetworksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.UsableSubnetwork, com.google.container.v1alpha1.UsableSubnetwork.Builder, com.google.container.v1alpha1.UsableSubnetworkOrBuilder>( + subnetworks_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + subnetworks_ = null; + } + return subnetworksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + */ + 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; + } + } + /** + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + */ + 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; + } + } + /** + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ListUsableSubnetworksResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ListUsableSubnetworksResponse) + private static final com.google.container.v1alpha1.ListUsableSubnetworksResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ListUsableSubnetworksResponse(); + } + + public static com.google.container.v1alpha1.ListUsableSubnetworksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableSubnetworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUsableSubnetworksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ListUsableSubnetworksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksResponseOrBuilder.java new file mode 100644 index 000000000000..5665c1cf276d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ListUsableSubnetworksResponseOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ListUsableSubnetworksResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ListUsableSubnetworksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + java.util.List + getSubnetworksList(); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + com.google.container.v1alpha1.UsableSubnetwork getSubnetworks(int index); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + int getSubnetworksCount(); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + java.util.List + getSubnetworksOrBuilderList(); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetwork subnetworks = 1; + */ + com.google.container.v1alpha1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder( + int index); + + /** + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/LocationName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/LocationName.java new file mode 100644 index 000000000000..715b89c19283 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/LocationName.java @@ -0,0 +1,189 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1alpha1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class LocationName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public static LocationName of(String project, String location) { + return newBuilder() + .setProject(project) + .setLocation(location) + .build(); + } + + public static String format(String project, String location) { + return newBuilder() + .setProject(project) + .setLocation(location) + .build() + .toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location); + } + + /** Builder for LocationName. */ + public static class Builder { + + private String project; + private String location; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder() { + } + + private Builder(LocationName locationName) { + project = locationName.project; + location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof LocationName) { + LocationName that = (LocationName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenancePolicy.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenancePolicy.java new file mode 100644 index 000000000000..6dee26f5d625 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenancePolicy.java @@ -0,0 +1,651 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * MaintenancePolicy defines the maintenance policy to be used for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.MaintenancePolicy} + */ +public final class MaintenancePolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.MaintenancePolicy) + MaintenancePolicyOrBuilder { +private static final long serialVersionUID = 0L; + // Use MaintenancePolicy.newBuilder() to construct. + private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MaintenancePolicy() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MaintenancePolicy( + 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: { + com.google.container.v1alpha1.MaintenanceWindow.Builder subBuilder = null; + if (window_ != null) { + subBuilder = window_.toBuilder(); + } + window_ = input.readMessage(com.google.container.v1alpha1.MaintenanceWindow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(window_); + window_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.MaintenancePolicy.class, com.google.container.v1alpha1.MaintenancePolicy.Builder.class); + } + + public static final int WINDOW_FIELD_NUMBER = 1; + private com.google.container.v1alpha1.MaintenanceWindow window_; + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public boolean hasWindow() { + return window_ != null; + } + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public com.google.container.v1alpha1.MaintenanceWindow getWindow() { + return window_ == null ? com.google.container.v1alpha1.MaintenanceWindow.getDefaultInstance() : window_; + } + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public com.google.container.v1alpha1.MaintenanceWindowOrBuilder getWindowOrBuilder() { + return getWindow(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (window_ != null) { + output.writeMessage(1, getWindow()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (window_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWindow()); + } + 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.container.v1alpha1.MaintenancePolicy)) { + return super.equals(obj); + } + com.google.container.v1alpha1.MaintenancePolicy other = (com.google.container.v1alpha1.MaintenancePolicy) obj; + + boolean result = true; + result = result && (hasWindow() == other.hasWindow()); + if (hasWindow()) { + result = result && getWindow() + .equals(other.getWindow()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWindow()) { + hash = (37 * hash) + WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getWindow().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.MaintenancePolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.MaintenancePolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * MaintenancePolicy defines the maintenance policy to be used for the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.MaintenancePolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.MaintenancePolicy) + com.google.container.v1alpha1.MaintenancePolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.MaintenancePolicy.class, com.google.container.v1alpha1.MaintenancePolicy.Builder.class); + } + + // Construct using com.google.container.v1alpha1.MaintenancePolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (windowBuilder_ == null) { + window_ = null; + } else { + window_ = null; + windowBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.MaintenancePolicy getDefaultInstanceForType() { + return com.google.container.v1alpha1.MaintenancePolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.MaintenancePolicy build() { + com.google.container.v1alpha1.MaintenancePolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.MaintenancePolicy buildPartial() { + com.google.container.v1alpha1.MaintenancePolicy result = new com.google.container.v1alpha1.MaintenancePolicy(this); + if (windowBuilder_ == null) { + result.window_ = window_; + } else { + result.window_ = windowBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.MaintenancePolicy) { + return mergeFrom((com.google.container.v1alpha1.MaintenancePolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.MaintenancePolicy other) { + if (other == com.google.container.v1alpha1.MaintenancePolicy.getDefaultInstance()) return this; + if (other.hasWindow()) { + mergeWindow(other.getWindow()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.MaintenancePolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.MaintenancePolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1alpha1.MaintenanceWindow window_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MaintenanceWindow, com.google.container.v1alpha1.MaintenanceWindow.Builder, com.google.container.v1alpha1.MaintenanceWindowOrBuilder> windowBuilder_; + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public boolean hasWindow() { + return windowBuilder_ != null || window_ != null; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public com.google.container.v1alpha1.MaintenanceWindow getWindow() { + if (windowBuilder_ == null) { + return window_ == null ? com.google.container.v1alpha1.MaintenanceWindow.getDefaultInstance() : window_; + } else { + return windowBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public Builder setWindow(com.google.container.v1alpha1.MaintenanceWindow value) { + if (windowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + window_ = value; + onChanged(); + } else { + windowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public Builder setWindow( + com.google.container.v1alpha1.MaintenanceWindow.Builder builderForValue) { + if (windowBuilder_ == null) { + window_ = builderForValue.build(); + onChanged(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public Builder mergeWindow(com.google.container.v1alpha1.MaintenanceWindow value) { + if (windowBuilder_ == null) { + if (window_ != null) { + window_ = + com.google.container.v1alpha1.MaintenanceWindow.newBuilder(window_).mergeFrom(value).buildPartial(); + } else { + window_ = value; + } + onChanged(); + } else { + windowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public Builder clearWindow() { + if (windowBuilder_ == null) { + window_ = null; + onChanged(); + } else { + window_ = null; + windowBuilder_ = null; + } + + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public com.google.container.v1alpha1.MaintenanceWindow.Builder getWindowBuilder() { + + onChanged(); + return getWindowFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + public com.google.container.v1alpha1.MaintenanceWindowOrBuilder getWindowOrBuilder() { + if (windowBuilder_ != null) { + return windowBuilder_.getMessageOrBuilder(); + } else { + return window_ == null ? + com.google.container.v1alpha1.MaintenanceWindow.getDefaultInstance() : window_; + } + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MaintenanceWindow, com.google.container.v1alpha1.MaintenanceWindow.Builder, com.google.container.v1alpha1.MaintenanceWindowOrBuilder> + getWindowFieldBuilder() { + if (windowBuilder_ == null) { + windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MaintenanceWindow, com.google.container.v1alpha1.MaintenanceWindow.Builder, com.google.container.v1alpha1.MaintenanceWindowOrBuilder>( + getWindow(), + getParentForChildren(), + isClean()); + window_ = null; + } + return windowBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.MaintenancePolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.MaintenancePolicy) + private static final com.google.container.v1alpha1.MaintenancePolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.MaintenancePolicy(); + } + + public static com.google.container.v1alpha1.MaintenancePolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenancePolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.MaintenancePolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenancePolicyOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenancePolicyOrBuilder.java new file mode 100644 index 000000000000..0ebc11995992 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenancePolicyOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface MaintenancePolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.MaintenancePolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + boolean hasWindow(); + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + com.google.container.v1alpha1.MaintenanceWindow getWindow(); + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1alpha1.MaintenanceWindow window = 1; + */ + com.google.container.v1alpha1.MaintenanceWindowOrBuilder getWindowOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenanceWindow.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenanceWindow.java new file mode 100644 index 000000000000..4fdaf4f4f24f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenanceWindow.java @@ -0,0 +1,742 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * MaintenanceWindow defines the maintenance window to be used for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.MaintenanceWindow} + */ +public final class MaintenanceWindow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.MaintenanceWindow) + MaintenanceWindowOrBuilder { +private static final long serialVersionUID = 0L; + // Use MaintenanceWindow.newBuilder() to construct. + private MaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MaintenanceWindow() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MaintenanceWindow( + 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 18: { + com.google.container.v1alpha1.DailyMaintenanceWindow.Builder subBuilder = null; + if (policyCase_ == 2) { + subBuilder = ((com.google.container.v1alpha1.DailyMaintenanceWindow) policy_).toBuilder(); + } + policy_ = + input.readMessage(com.google.container.v1alpha1.DailyMaintenanceWindow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.container.v1alpha1.DailyMaintenanceWindow) policy_); + policy_ = subBuilder.buildPartial(); + } + policyCase_ = 2; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.MaintenanceWindow.class, com.google.container.v1alpha1.MaintenanceWindow.Builder.class); + } + + private int policyCase_ = 0; + private java.lang.Object policy_; + public enum PolicyCase + implements com.google.protobuf.Internal.EnumLite { + DAILY_MAINTENANCE_WINDOW(2), + POLICY_NOT_SET(0); + private final int value; + private PolicyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PolicyCase valueOf(int value) { + return forNumber(value); + } + + public static PolicyCase forNumber(int value) { + switch (value) { + case 2: return DAILY_MAINTENANCE_WINDOW; + case 0: return POLICY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PolicyCase + getPolicyCase() { + return PolicyCase.forNumber( + policyCase_); + } + + public static final int DAILY_MAINTENANCE_WINDOW_FIELD_NUMBER = 2; + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public boolean hasDailyMaintenanceWindow() { + return policyCase_ == 2; + } + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1alpha1.DailyMaintenanceWindow getDailyMaintenanceWindow() { + if (policyCase_ == 2) { + return (com.google.container.v1alpha1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1alpha1.DailyMaintenanceWindow.getDefaultInstance(); + } + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1alpha1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder() { + if (policyCase_ == 2) { + return (com.google.container.v1alpha1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1alpha1.DailyMaintenanceWindow.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (policyCase_ == 2) { + output.writeMessage(2, (com.google.container.v1alpha1.DailyMaintenanceWindow) policy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (policyCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.container.v1alpha1.DailyMaintenanceWindow) policy_); + } + 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.container.v1alpha1.MaintenanceWindow)) { + return super.equals(obj); + } + com.google.container.v1alpha1.MaintenanceWindow other = (com.google.container.v1alpha1.MaintenanceWindow) obj; + + boolean result = true; + result = result && getPolicyCase().equals( + other.getPolicyCase()); + if (!result) return false; + switch (policyCase_) { + case 2: + result = result && getDailyMaintenanceWindow() + .equals(other.getDailyMaintenanceWindow()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (policyCase_) { + case 2: + hash = (37 * hash) + DAILY_MAINTENANCE_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getDailyMaintenanceWindow().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.MaintenanceWindow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.MaintenanceWindow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * MaintenanceWindow defines the maintenance window to be used for the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.MaintenanceWindow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.MaintenanceWindow) + com.google.container.v1alpha1.MaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.MaintenanceWindow.class, com.google.container.v1alpha1.MaintenanceWindow.Builder.class); + } + + // Construct using com.google.container.v1alpha1.MaintenanceWindow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + policyCase_ = 0; + policy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.MaintenanceWindow getDefaultInstanceForType() { + return com.google.container.v1alpha1.MaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.MaintenanceWindow build() { + com.google.container.v1alpha1.MaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.MaintenanceWindow buildPartial() { + com.google.container.v1alpha1.MaintenanceWindow result = new com.google.container.v1alpha1.MaintenanceWindow(this); + if (policyCase_ == 2) { + if (dailyMaintenanceWindowBuilder_ == null) { + result.policy_ = policy_; + } else { + result.policy_ = dailyMaintenanceWindowBuilder_.build(); + } + } + result.policyCase_ = policyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.MaintenanceWindow) { + return mergeFrom((com.google.container.v1alpha1.MaintenanceWindow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.MaintenanceWindow other) { + if (other == com.google.container.v1alpha1.MaintenanceWindow.getDefaultInstance()) return this; + switch (other.getPolicyCase()) { + case DAILY_MAINTENANCE_WINDOW: { + mergeDailyMaintenanceWindow(other.getDailyMaintenanceWindow()); + break; + } + case POLICY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.MaintenanceWindow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.MaintenanceWindow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int policyCase_ = 0; + private java.lang.Object policy_; + public PolicyCase + getPolicyCase() { + return PolicyCase.forNumber( + policyCase_); + } + + public Builder clearPolicy() { + policyCase_ = 0; + policy_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.DailyMaintenanceWindow, com.google.container.v1alpha1.DailyMaintenanceWindow.Builder, com.google.container.v1alpha1.DailyMaintenanceWindowOrBuilder> dailyMaintenanceWindowBuilder_; + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public boolean hasDailyMaintenanceWindow() { + return policyCase_ == 2; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1alpha1.DailyMaintenanceWindow getDailyMaintenanceWindow() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2) { + return (com.google.container.v1alpha1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1alpha1.DailyMaintenanceWindow.getDefaultInstance(); + } else { + if (policyCase_ == 2) { + return dailyMaintenanceWindowBuilder_.getMessage(); + } + return com.google.container.v1alpha1.DailyMaintenanceWindow.getDefaultInstance(); + } + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder setDailyMaintenanceWindow(com.google.container.v1alpha1.DailyMaintenanceWindow value) { + if (dailyMaintenanceWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + onChanged(); + } else { + dailyMaintenanceWindowBuilder_.setMessage(value); + } + policyCase_ = 2; + return this; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder setDailyMaintenanceWindow( + com.google.container.v1alpha1.DailyMaintenanceWindow.Builder builderForValue) { + if (dailyMaintenanceWindowBuilder_ == null) { + policy_ = builderForValue.build(); + onChanged(); + } else { + dailyMaintenanceWindowBuilder_.setMessage(builderForValue.build()); + } + policyCase_ = 2; + return this; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder mergeDailyMaintenanceWindow(com.google.container.v1alpha1.DailyMaintenanceWindow value) { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2 && + policy_ != com.google.container.v1alpha1.DailyMaintenanceWindow.getDefaultInstance()) { + policy_ = com.google.container.v1alpha1.DailyMaintenanceWindow.newBuilder((com.google.container.v1alpha1.DailyMaintenanceWindow) policy_) + .mergeFrom(value).buildPartial(); + } else { + policy_ = value; + } + onChanged(); + } else { + if (policyCase_ == 2) { + dailyMaintenanceWindowBuilder_.mergeFrom(value); + } + dailyMaintenanceWindowBuilder_.setMessage(value); + } + policyCase_ = 2; + return this; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder clearDailyMaintenanceWindow() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2) { + policyCase_ = 0; + policy_ = null; + onChanged(); + } + } else { + if (policyCase_ == 2) { + policyCase_ = 0; + policy_ = null; + } + dailyMaintenanceWindowBuilder_.clear(); + } + return this; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1alpha1.DailyMaintenanceWindow.Builder getDailyMaintenanceWindowBuilder() { + return getDailyMaintenanceWindowFieldBuilder().getBuilder(); + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1alpha1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder() { + if ((policyCase_ == 2) && (dailyMaintenanceWindowBuilder_ != null)) { + return dailyMaintenanceWindowBuilder_.getMessageOrBuilder(); + } else { + if (policyCase_ == 2) { + return (com.google.container.v1alpha1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1alpha1.DailyMaintenanceWindow.getDefaultInstance(); + } + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.DailyMaintenanceWindow, com.google.container.v1alpha1.DailyMaintenanceWindow.Builder, com.google.container.v1alpha1.DailyMaintenanceWindowOrBuilder> + getDailyMaintenanceWindowFieldBuilder() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (!(policyCase_ == 2)) { + policy_ = com.google.container.v1alpha1.DailyMaintenanceWindow.getDefaultInstance(); + } + dailyMaintenanceWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.DailyMaintenanceWindow, com.google.container.v1alpha1.DailyMaintenanceWindow.Builder, com.google.container.v1alpha1.DailyMaintenanceWindowOrBuilder>( + (com.google.container.v1alpha1.DailyMaintenanceWindow) policy_, + getParentForChildren(), + isClean()); + policy_ = null; + } + policyCase_ = 2; + onChanged();; + return dailyMaintenanceWindowBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.MaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.MaintenanceWindow) + private static final com.google.container.v1alpha1.MaintenanceWindow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.MaintenanceWindow(); + } + + public static com.google.container.v1alpha1.MaintenanceWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenanceWindow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.MaintenanceWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenanceWindowOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..69aa1dd3b180 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MaintenanceWindowOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface MaintenanceWindowOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.MaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + boolean hasDailyMaintenanceWindow(); + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + com.google.container.v1alpha1.DailyMaintenanceWindow getDailyMaintenanceWindow(); + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1alpha1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + com.google.container.v1alpha1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder(); + + public com.google.container.v1alpha1.MaintenanceWindow.PolicyCase getPolicyCase(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ManagedPodIdentityConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ManagedPodIdentityConfig.java new file mode 100644 index 000000000000..1b9db0aea605 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ManagedPodIdentityConfig.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration for the use of GCP IAM Service Accounts in applications in
+ * this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ManagedPodIdentityConfig} + */ +public final class ManagedPodIdentityConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ManagedPodIdentityConfig) + ManagedPodIdentityConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ManagedPodIdentityConfig.newBuilder() to construct. + private ManagedPodIdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ManagedPodIdentityConfig() { + enabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ManagedPodIdentityConfig( + 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 8: { + + enabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ManagedPodIdentityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ManagedPodIdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ManagedPodIdentityConfig.class, com.google.container.v1alpha1.ManagedPodIdentityConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+   * Enable the use of GCP IAM Service Accounts in applications in this cluster.
+   * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + size += 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.container.v1alpha1.ManagedPodIdentityConfig)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ManagedPodIdentityConfig other = (com.google.container.v1alpha1.ManagedPodIdentityConfig) obj; + + boolean result = true; + result = result && (getEnabled() + == other.getEnabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ManagedPodIdentityConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ManagedPodIdentityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the use of GCP IAM Service Accounts in applications in
+   * this cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ManagedPodIdentityConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ManagedPodIdentityConfig) + com.google.container.v1alpha1.ManagedPodIdentityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ManagedPodIdentityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ManagedPodIdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ManagedPodIdentityConfig.class, com.google.container.v1alpha1.ManagedPodIdentityConfig.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ManagedPodIdentityConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ManagedPodIdentityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ManagedPodIdentityConfig getDefaultInstanceForType() { + return com.google.container.v1alpha1.ManagedPodIdentityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ManagedPodIdentityConfig build() { + com.google.container.v1alpha1.ManagedPodIdentityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ManagedPodIdentityConfig buildPartial() { + com.google.container.v1alpha1.ManagedPodIdentityConfig result = new com.google.container.v1alpha1.ManagedPodIdentityConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ManagedPodIdentityConfig) { + return mergeFrom((com.google.container.v1alpha1.ManagedPodIdentityConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ManagedPodIdentityConfig other) { + if (other == com.google.container.v1alpha1.ManagedPodIdentityConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ManagedPodIdentityConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ManagedPodIdentityConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+     * Enable the use of GCP IAM Service Accounts in applications in this cluster.
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enable the use of GCP IAM Service Accounts in applications in this cluster.
+     * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Enable the use of GCP IAM Service Accounts in applications in this cluster.
+     * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ManagedPodIdentityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ManagedPodIdentityConfig) + private static final com.google.container.v1alpha1.ManagedPodIdentityConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ManagedPodIdentityConfig(); + } + + public static com.google.container.v1alpha1.ManagedPodIdentityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedPodIdentityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ManagedPodIdentityConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ManagedPodIdentityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ManagedPodIdentityConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ManagedPodIdentityConfigOrBuilder.java new file mode 100644 index 000000000000..45c754267687 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ManagedPodIdentityConfigOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ManagedPodIdentityConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ManagedPodIdentityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enable the use of GCP IAM Service Accounts in applications in this cluster.
+   * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuth.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuth.java new file mode 100644 index 000000000000..537c5cf4855f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuth.java @@ -0,0 +1,1510 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * The authentication information for accessing the master endpoint.
+ * Authentication can be done using HTTP basic auth or using client
+ * certificates.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.MasterAuth} + */ +public final class MasterAuth extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.MasterAuth) + MasterAuthOrBuilder { +private static final long serialVersionUID = 0L; + // Use MasterAuth.newBuilder() to construct. + private MasterAuth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MasterAuth() { + username_ = ""; + password_ = ""; + clusterCaCertificate_ = ""; + clientCertificate_ = ""; + clientKey_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MasterAuth( + 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(); + + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 26: { + com.google.container.v1alpha1.ClientCertificateConfig.Builder subBuilder = null; + if (clientCertificateConfig_ != null) { + subBuilder = clientCertificateConfig_.toBuilder(); + } + clientCertificateConfig_ = input.readMessage(com.google.container.v1alpha1.ClientCertificateConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientCertificateConfig_); + clientCertificateConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterCaCertificate_ = s; + break; + } + case 810: { + java.lang.String s = input.readStringRequireUtf8(); + + clientCertificate_ = s; + break; + } + case 818: { + java.lang.String s = input.readStringRequireUtf8(); + + clientKey_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.MasterAuth.class, com.google.container.v1alpha1.MasterAuth.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object username_; + /** + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, you can disable basic authentication by
+   * providing an empty username.
+   * 
+ * + * string username = 1; + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + /** + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, you can disable basic authentication by
+   * providing an empty username.
+   * 
+ * + * string username = 1; + */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * 
+ * + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * 
+ * + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1alpha1.ClientCertificateConfig clientCertificateConfig_; + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public boolean hasClientCertificateConfig() { + return clientCertificateConfig_ != null; + } + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1alpha1.ClientCertificateConfig getClientCertificateConfig() { + return clientCertificateConfig_ == null ? com.google.container.v1alpha1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; + } + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1alpha1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder() { + return getClientCertificateConfig(); + } + + public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; + private volatile java.lang.Object clusterCaCertificate_; + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + */ + public java.lang.String getClusterCaCertificate() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCaCertificate_ = s; + return s; + } + } + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + */ + public com.google.protobuf.ByteString + getClusterCaCertificateBytes() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 101; + private volatile java.lang.Object clientCertificate_; + /** + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + */ + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } + } + /** + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + */ + public com.google.protobuf.ByteString + getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_KEY_FIELD_NUMBER = 102; + private volatile java.lang.Object clientKey_; + /** + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + */ + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } + } + /** + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + */ + public com.google.protobuf.ByteString + getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + if (clientCertificateConfig_ != null) { + output.writeMessage(3, getClientCertificateConfig()); + } + if (!getClusterCaCertificateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, clusterCaCertificate_); + } + if (!getClientCertificateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, clientCertificate_); + } + if (!getClientKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, clientKey_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + if (clientCertificateConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClientCertificateConfig()); + } + if (!getClusterCaCertificateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, clusterCaCertificate_); + } + if (!getClientCertificateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, clientCertificate_); + } + if (!getClientKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, clientKey_); + } + 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.container.v1alpha1.MasterAuth)) { + return super.equals(obj); + } + com.google.container.v1alpha1.MasterAuth other = (com.google.container.v1alpha1.MasterAuth) obj; + + boolean result = true; + result = result && getUsername() + .equals(other.getUsername()); + result = result && getPassword() + .equals(other.getPassword()); + result = result && (hasClientCertificateConfig() == other.hasClientCertificateConfig()); + if (hasClientCertificateConfig()) { + result = result && getClientCertificateConfig() + .equals(other.getClientCertificateConfig()); + } + result = result && getClusterCaCertificate() + .equals(other.getClusterCaCertificate()); + result = result && getClientCertificate() + .equals(other.getClientCertificate()); + result = result && getClientKey() + .equals(other.getClientKey()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + if (hasClientCertificateConfig()) { + hash = (37 * hash) + CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getClientCertificateConfig().hashCode(); + } + hash = (37 * hash) + CLUSTER_CA_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getClusterCaCertificate().hashCode(); + hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getClientCertificate().hashCode(); + hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER; + hash = (53 * hash) + getClientKey().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.MasterAuth parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MasterAuth parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MasterAuth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MasterAuth parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MasterAuth parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuth parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MasterAuth parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuth parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MasterAuth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.MasterAuth prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 authentication information for accessing the master endpoint.
+   * Authentication can be done using HTTP basic auth or using client
+   * certificates.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.MasterAuth} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.MasterAuth) + com.google.container.v1alpha1.MasterAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.MasterAuth.class, com.google.container.v1alpha1.MasterAuth.Builder.class); + } + + // Construct using com.google.container.v1alpha1.MasterAuth.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + username_ = ""; + + password_ = ""; + + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = null; + } else { + clientCertificateConfig_ = null; + clientCertificateConfigBuilder_ = null; + } + clusterCaCertificate_ = ""; + + clientCertificate_ = ""; + + clientKey_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuth_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuth getDefaultInstanceForType() { + return com.google.container.v1alpha1.MasterAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuth build() { + com.google.container.v1alpha1.MasterAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuth buildPartial() { + com.google.container.v1alpha1.MasterAuth result = new com.google.container.v1alpha1.MasterAuth(this); + result.username_ = username_; + result.password_ = password_; + if (clientCertificateConfigBuilder_ == null) { + result.clientCertificateConfig_ = clientCertificateConfig_; + } else { + result.clientCertificateConfig_ = clientCertificateConfigBuilder_.build(); + } + result.clusterCaCertificate_ = clusterCaCertificate_; + result.clientCertificate_ = clientCertificate_; + result.clientKey_ = clientKey_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.MasterAuth) { + return mergeFrom((com.google.container.v1alpha1.MasterAuth)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.MasterAuth other) { + if (other == com.google.container.v1alpha1.MasterAuth.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (other.hasClientCertificateConfig()) { + mergeClientCertificateConfig(other.getClientCertificateConfig()); + } + if (!other.getClusterCaCertificate().isEmpty()) { + clusterCaCertificate_ = other.clusterCaCertificate_; + onChanged(); + } + if (!other.getClientCertificate().isEmpty()) { + clientCertificate_ = other.clientCertificate_; + onChanged(); + } + if (!other.getClientKey().isEmpty()) { + clientKey_ = other.clientKey_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.MasterAuth parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.MasterAuth) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object username_ = ""; + /** + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, you can disable basic authentication by
+     * providing an empty username.
+     * 
+ * + * string username = 1; + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, you can disable basic authentication by
+     * providing an empty username.
+     * 
+ * + * string username = 1; + */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, you can disable basic authentication by
+     * providing an empty username.
+     * 
+ * + * string username = 1; + */ + public Builder setUsername( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, you can disable basic authentication by
+     * providing an empty username.
+     * 
+ * + * string username = 1; + */ + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, you can disable basic authentication by
+     * providing an empty username.
+     * 
+ * + * string username = 1; + */ + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * 
+ * + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * 
+ * + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * 
+ * + * string password = 2; + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * 
+ * + * string password = 2; + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * 
+ * + * string password = 2; + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.ClientCertificateConfig clientCertificateConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClientCertificateConfig, com.google.container.v1alpha1.ClientCertificateConfig.Builder, com.google.container.v1alpha1.ClientCertificateConfigOrBuilder> clientCertificateConfigBuilder_; + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public boolean hasClientCertificateConfig() { + return clientCertificateConfigBuilder_ != null || clientCertificateConfig_ != null; + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1alpha1.ClientCertificateConfig getClientCertificateConfig() { + if (clientCertificateConfigBuilder_ == null) { + return clientCertificateConfig_ == null ? com.google.container.v1alpha1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; + } else { + return clientCertificateConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig(com.google.container.v1alpha1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientCertificateConfig_ = value; + onChanged(); + } else { + clientCertificateConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig( + com.google.container.v1alpha1.ClientCertificateConfig.Builder builderForValue) { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = builderForValue.build(); + onChanged(); + } else { + clientCertificateConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder mergeClientCertificateConfig(com.google.container.v1alpha1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (clientCertificateConfig_ != null) { + clientCertificateConfig_ = + com.google.container.v1alpha1.ClientCertificateConfig.newBuilder(clientCertificateConfig_).mergeFrom(value).buildPartial(); + } else { + clientCertificateConfig_ = value; + } + onChanged(); + } else { + clientCertificateConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder clearClientCertificateConfig() { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = null; + onChanged(); + } else { + clientCertificateConfig_ = null; + clientCertificateConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1alpha1.ClientCertificateConfig.Builder getClientCertificateConfigBuilder() { + + onChanged(); + return getClientCertificateConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1alpha1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder() { + if (clientCertificateConfigBuilder_ != null) { + return clientCertificateConfigBuilder_.getMessageOrBuilder(); + } else { + return clientCertificateConfig_ == null ? + com.google.container.v1alpha1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; + } + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClientCertificateConfig, com.google.container.v1alpha1.ClientCertificateConfig.Builder, com.google.container.v1alpha1.ClientCertificateConfigOrBuilder> + getClientCertificateConfigFieldBuilder() { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClientCertificateConfig, com.google.container.v1alpha1.ClientCertificateConfig.Builder, com.google.container.v1alpha1.ClientCertificateConfigOrBuilder>( + getClientCertificateConfig(), + getParentForChildren(), + isClean()); + clientCertificateConfig_ = null; + } + return clientCertificateConfigBuilder_; + } + + private java.lang.Object clusterCaCertificate_ = ""; + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + */ + public java.lang.String getClusterCaCertificate() { + java.lang.Object ref = clusterCaCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCaCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + */ + public com.google.protobuf.ByteString + getClusterCaCertificateBytes() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + */ + public Builder setClusterCaCertificate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterCaCertificate_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + */ + public Builder clearClusterCaCertificate() { + + clusterCaCertificate_ = getDefaultInstance().getClusterCaCertificate(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + */ + public Builder setClusterCaCertificateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterCaCertificate_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientCertificate_ = ""; + /** + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + */ + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + */ + public com.google.protobuf.ByteString + getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + */ + public Builder setClientCertificate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientCertificate_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + */ + public Builder clearClientCertificate() { + + clientCertificate_ = getDefaultInstance().getClientCertificate(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + */ + public Builder setClientCertificateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientCertificate_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientKey_ = ""; + /** + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + */ + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + */ + public com.google.protobuf.ByteString + getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + */ + public Builder setClientKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientKey_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + */ + public Builder clearClientKey() { + + clientKey_ = getDefaultInstance().getClientKey(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + */ + public Builder setClientKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientKey_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.MasterAuth) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.MasterAuth) + private static final com.google.container.v1alpha1.MasterAuth DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.MasterAuth(); + } + + public static com.google.container.v1alpha1.MasterAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MasterAuth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MasterAuth(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuthOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuthOrBuilder.java new file mode 100644 index 000000000000..d16d8722b1f7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuthOrBuilder.java @@ -0,0 +1,146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface MasterAuthOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.MasterAuth) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, you can disable basic authentication by
+   * providing an empty username.
+   * 
+ * + * string username = 1; + */ + java.lang.String getUsername(); + /** + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, you can disable basic authentication by
+   * providing an empty username.
+   * 
+ * + * string username = 1; + */ + com.google.protobuf.ByteString + getUsernameBytes(); + + /** + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * 
+ * + * string password = 2; + */ + java.lang.String getPassword(); + /** + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * 
+ * + * string password = 2; + */ + com.google.protobuf.ByteString + getPasswordBytes(); + + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + boolean hasClientCertificateConfig(); + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + com.google.container.v1alpha1.ClientCertificateConfig getClientCertificateConfig(); + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1alpha1.ClientCertificateConfig client_certificate_config = 3; + */ + com.google.container.v1alpha1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder(); + + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + */ + java.lang.String getClusterCaCertificate(); + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + */ + com.google.protobuf.ByteString + getClusterCaCertificateBytes(); + + /** + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + */ + java.lang.String getClientCertificate(); + /** + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + */ + com.google.protobuf.ByteString + getClientCertificateBytes(); + + /** + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + */ + java.lang.String getClientKey(); + /** + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + */ + com.google.protobuf.ByteString + getClientKeyBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuthorizedNetworksConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuthorizedNetworksConfig.java new file mode 100644 index 000000000000..a7494db7cec8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuthorizedNetworksConfig.java @@ -0,0 +1,1733 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration options for the master authorized networks feature. Enabled
+ * master authorized networks will disallow all external traffic to access
+ * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
+ * Google Compute Engine Public IPs and Google Prod IPs.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.MasterAuthorizedNetworksConfig} + */ +public final class MasterAuthorizedNetworksConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.MasterAuthorizedNetworksConfig) + MasterAuthorizedNetworksConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use MasterAuthorizedNetworksConfig.newBuilder() to construct. + private MasterAuthorizedNetworksConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MasterAuthorizedNetworksConfig() { + enabled_ = false; + cidrBlocks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MasterAuthorizedNetworksConfig( + 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 8: { + + enabled_ = input.readBool(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + cidrBlocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + cidrBlocks_.add( + input.readMessage(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.class, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder.class); + } + + public interface CidrBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + */ + java.lang.String getCidrBlock(); + /** + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + */ + com.google.protobuf.ByteString + getCidrBlockBytes(); + } + /** + *
+   * CidrBlock contains an optional name and one CIDR block.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class CidrBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + CidrBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use CidrBlock.newBuilder() to construct. + private CidrBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CidrBlock() { + displayName_ = ""; + cidrBlock_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CidrBlock( + 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(); + + displayName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + cidrBlock_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.class, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + */ + 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; + } + } + /** + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + */ + 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 CIDR_BLOCK_FIELD_NUMBER = 2; + private volatile java.lang.Object cidrBlock_; + /** + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } + } + /** + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + */ + public com.google.protobuf.ByteString + getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!getCidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrBlock_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!getCidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrBlock_); + } + 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.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock)) { + return super.equals(obj); + } + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock other = (com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) obj; + + boolean result = true; + result = result && getDisplayName() + .equals(other.getDisplayName()); + result = result && getCidrBlock() + .equals(other.getCidrBlock()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getCidrBlock().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CidrBlock contains an optional name and one CIDR block.
+     * 
+ * + * Protobuf type {@code google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.class, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); + } + + // Construct using com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + cidrBlock_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstanceForType() { + return com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock build() { + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock buildPartial() { + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock result = new com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock(this); + result.displayName_ = displayName_; + result.cidrBlock_ = cidrBlock_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) { + return mergeFrom((com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock other) { + if (other == com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getCidrBlock().isEmpty()) { + cidrBlock_ = other.cidrBlock_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + */ + 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; + } + } + /** + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + */ + 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; + } + } + /** + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object cidrBlock_ = ""; + /** + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + */ + public com.google.protobuf.ByteString + getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + */ + public Builder setCidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + */ + public Builder clearCidrBlock() { + + cidrBlock_ = getDefaultInstance().getCidrBlock(); + onChanged(); + return this; + } + /** + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + */ + public Builder setCidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cidrBlock_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + private static final com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock(); + } + + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CidrBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CidrBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+   * Whether or not master authorized networks is enabled.
+   * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + public static final int CIDR_BLOCKS_FIELD_NUMBER = 2; + private java.util.List cidrBlocks_; + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List getCidrBlocksList() { + return cidrBlocks_; + } + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List + getCidrBlocksOrBuilderList() { + return cidrBlocks_; + } + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public int getCidrBlocksCount() { + return cidrBlocks_.size(); + } + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index) { + return cidrBlocks_.get(index); + } + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( + int index) { + return cidrBlocks_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + for (int i = 0; i < cidrBlocks_.size(); i++) { + output.writeMessage(2, cidrBlocks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + for (int i = 0; i < cidrBlocks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, cidrBlocks_.get(i)); + } + 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.container.v1alpha1.MasterAuthorizedNetworksConfig)) { + return super.equals(obj); + } + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig other = (com.google.container.v1alpha1.MasterAuthorizedNetworksConfig) obj; + + boolean result = true; + result = result && (getEnabled() + == other.getEnabled()); + result = result && getCidrBlocksList() + .equals(other.getCidrBlocksList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + if (getCidrBlocksCount() > 0) { + hash = (37 * hash) + CIDR_BLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getCidrBlocksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for the master authorized networks feature. Enabled
+   * master authorized networks will disallow all external traffic to access
+   * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
+   * Google Compute Engine Public IPs and Google Prod IPs.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.MasterAuthorizedNetworksConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.MasterAuthorizedNetworksConfig) + com.google.container.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.class, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.Builder.class); + } + + // Construct using com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCidrBlocksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { + return com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig build() { + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig buildPartial() { + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig result = new com.google.container.v1alpha1.MasterAuthorizedNetworksConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.enabled_ = enabled_; + if (cidrBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cidrBlocks_ = cidrBlocks_; + } else { + result.cidrBlocks_ = cidrBlocksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.MasterAuthorizedNetworksConfig) { + return mergeFrom((com.google.container.v1alpha1.MasterAuthorizedNetworksConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig other) { + if (other == com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (cidrBlocksBuilder_ == null) { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocks_.isEmpty()) { + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCidrBlocksIsMutable(); + cidrBlocks_.addAll(other.cidrBlocks_); + } + onChanged(); + } + } else { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocksBuilder_.isEmpty()) { + cidrBlocksBuilder_.dispose(); + cidrBlocksBuilder_ = null; + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000002); + cidrBlocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCidrBlocksFieldBuilder() : null; + } else { + cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.MasterAuthorizedNetworksConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.util.List cidrBlocks_ = + java.util.Collections.emptyList(); + private void ensureCidrBlocksIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + cidrBlocks_ = new java.util.ArrayList(cidrBlocks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> cidrBlocksBuilder_; + + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List getCidrBlocksList() { + if (cidrBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } else { + return cidrBlocksBuilder_.getMessageList(); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public int getCidrBlocksCount() { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.size(); + } else { + return cidrBlocksBuilder_.getCount(); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessage(index); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder setCidrBlocks( + int index, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder setCidrBlocks( + int index, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks(com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + int index, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + int index, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addAllCidrBlocks( + java.lang.Iterable values) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cidrBlocks_); + onChanged(); + } else { + cidrBlocksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder clearCidrBlocks() { + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder removeCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.remove(index); + onChanged(); + } else { + cidrBlocksBuilder_.remove(index); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder getCidrBlocksBuilder( + int index) { + return getCidrBlocksFieldBuilder().getBuilder(index); + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( + int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); } else { + return cidrBlocksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List + getCidrBlocksOrBuilderList() { + if (cidrBlocksBuilder_ != null) { + return cidrBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder() { + return getCidrBlocksFieldBuilder().addBuilder( + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()); + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder( + int index) { + return getCidrBlocksFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()); + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List + getCidrBlocksBuilderList() { + return getCidrBlocksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksFieldBuilder() { + if (cidrBlocksBuilder_ == null) { + cidrBlocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>( + cidrBlocks_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + cidrBlocks_ = null; + } + return cidrBlocksBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.MasterAuthorizedNetworksConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.MasterAuthorizedNetworksConfig) + private static final com.google.container.v1alpha1.MasterAuthorizedNetworksConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.MasterAuthorizedNetworksConfig(); + } + + public static com.google.container.v1alpha1.MasterAuthorizedNetworksConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MasterAuthorizedNetworksConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MasterAuthorizedNetworksConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuthorizedNetworksConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuthorizedNetworksConfigOrBuilder.java new file mode 100644 index 000000000000..59cc57d70e06 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface MasterAuthorizedNetworksConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.MasterAuthorizedNetworksConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether or not master authorized networks is enabled.
+   * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); + + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + java.util.List + getCidrBlocksList(); + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index); + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + int getCidrBlocksCount(); + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + java.util.List + getCidrBlocksOrBuilderList(); + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + com.google.container.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicy.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicy.java new file mode 100644 index 000000000000..da9c714054cc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicy.java @@ -0,0 +1,730 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration options for the NetworkPolicy feature.
+ * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.NetworkPolicy} + */ +public final class NetworkPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.NetworkPolicy) + NetworkPolicyOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkPolicy.newBuilder() to construct. + private NetworkPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkPolicy() { + provider_ = 0; + enabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NetworkPolicy( + 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 8: { + int rawValue = input.readEnum(); + + provider_ = rawValue; + break; + } + case 16: { + + enabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NetworkPolicy.class, com.google.container.v1alpha1.NetworkPolicy.Builder.class); + } + + /** + *
+   * Allowed Network Policy providers.
+   * 
+ * + * Protobuf enum {@code google.container.v1alpha1.NetworkPolicy.Provider} + */ + public enum Provider + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + PROVIDER_UNSPECIFIED(0), + /** + *
+     * Tigera (Calico Felix).
+     * 
+ * + * CALICO = 1; + */ + CALICO(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + /** + *
+     * Tigera (Calico Felix).
+     * 
+ * + * CALICO = 1; + */ + public static final int CALICO_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Provider valueOf(int value) { + return forNumber(value); + } + + public static Provider forNumber(int value) { + switch (value) { + case 0: return PROVIDER_UNSPECIFIED; + case 1: return CALICO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Provider> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Provider findValueByNumber(int number) { + return Provider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1alpha1.NetworkPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final Provider[] VALUES = values(); + + public static Provider valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Provider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1alpha1.NetworkPolicy.Provider) + } + + public static final int PROVIDER_FIELD_NUMBER = 1; + private int provider_; + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy.Provider provider = 1; + */ + public int getProviderValue() { + return provider_; + } + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy.Provider provider = 1; + */ + public com.google.container.v1alpha1.NetworkPolicy.Provider getProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.NetworkPolicy.Provider result = com.google.container.v1alpha1.NetworkPolicy.Provider.valueOf(provider_); + return result == null ? com.google.container.v1alpha1.NetworkPolicy.Provider.UNRECOGNIZED : result; + } + + public static final int ENABLED_FIELD_NUMBER = 2; + private boolean enabled_; + /** + *
+   * Whether network policy is enabled on the cluster.
+   * 
+ * + * bool enabled = 2; + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (provider_ != com.google.container.v1alpha1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, provider_); + } + if (enabled_ != false) { + output.writeBool(2, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (provider_ != com.google.container.v1alpha1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, provider_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enabled_); + } + 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.container.v1alpha1.NetworkPolicy)) { + return super.equals(obj); + } + com.google.container.v1alpha1.NetworkPolicy other = (com.google.container.v1alpha1.NetworkPolicy) obj; + + boolean result = true; + result = result && provider_ == other.provider_; + result = result && (getEnabled() + == other.getEnabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + provider_; + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.NetworkPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NetworkPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NetworkPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NetworkPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NetworkPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NetworkPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NetworkPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NetworkPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NetworkPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NetworkPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NetworkPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NetworkPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.NetworkPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.NetworkPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.NetworkPolicy) + com.google.container.v1alpha1.NetworkPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NetworkPolicy.class, com.google.container.v1alpha1.NetworkPolicy.Builder.class); + } + + // Construct using com.google.container.v1alpha1.NetworkPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + provider_ = 0; + + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NetworkPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.NetworkPolicy getDefaultInstanceForType() { + return com.google.container.v1alpha1.NetworkPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.NetworkPolicy build() { + com.google.container.v1alpha1.NetworkPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.NetworkPolicy buildPartial() { + com.google.container.v1alpha1.NetworkPolicy result = new com.google.container.v1alpha1.NetworkPolicy(this); + result.provider_ = provider_; + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.NetworkPolicy) { + return mergeFrom((com.google.container.v1alpha1.NetworkPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.NetworkPolicy other) { + if (other == com.google.container.v1alpha1.NetworkPolicy.getDefaultInstance()) return this; + if (other.provider_ != 0) { + setProviderValue(other.getProviderValue()); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.NetworkPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.NetworkPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int provider_ = 0; + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy.Provider provider = 1; + */ + public int getProviderValue() { + return provider_; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy.Provider provider = 1; + */ + public Builder setProviderValue(int value) { + provider_ = value; + onChanged(); + return this; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy.Provider provider = 1; + */ + public com.google.container.v1alpha1.NetworkPolicy.Provider getProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.NetworkPolicy.Provider result = com.google.container.v1alpha1.NetworkPolicy.Provider.valueOf(provider_); + return result == null ? com.google.container.v1alpha1.NetworkPolicy.Provider.UNRECOGNIZED : result; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy.Provider provider = 1; + */ + public Builder setProvider(com.google.container.v1alpha1.NetworkPolicy.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + + provider_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy.Provider provider = 1; + */ + public Builder clearProvider() { + + provider_ = 0; + onChanged(); + return this; + } + + private boolean enabled_ ; + /** + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.NetworkPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.NetworkPolicy) + private static final com.google.container.v1alpha1.NetworkPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.NetworkPolicy(); + } + + public static com.google.container.v1alpha1.NetworkPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.NetworkPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicyConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicyConfig.java new file mode 100644 index 000000000000..5b028c1e6d7e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicyConfig.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration for NetworkPolicy. This only tracks whether the addon
+ * is enabled or not on the Master, it does not track whether network policy
+ * is enabled for the nodes.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.NetworkPolicyConfig} + */ +public final class NetworkPolicyConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.NetworkPolicyConfig) + NetworkPolicyConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkPolicyConfig.newBuilder() to construct. + private NetworkPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkPolicyConfig() { + disabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NetworkPolicyConfig( + 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 8: { + + disabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NetworkPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NetworkPolicyConfig.class, com.google.container.v1alpha1.NetworkPolicyConfig.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + *
+   * Whether NetworkPolicy is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, disabled_); + } + 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.container.v1alpha1.NetworkPolicyConfig)) { + return super.equals(obj); + } + com.google.container.v1alpha1.NetworkPolicyConfig other = (com.google.container.v1alpha1.NetworkPolicyConfig) obj; + + boolean result = true; + result = result && (getDisabled() + == other.getDisabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.NetworkPolicyConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NetworkPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.NetworkPolicyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.NetworkPolicyConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.NetworkPolicyConfig) + com.google.container.v1alpha1.NetworkPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NetworkPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NetworkPolicyConfig.class, com.google.container.v1alpha1.NetworkPolicyConfig.Builder.class); + } + + // Construct using com.google.container.v1alpha1.NetworkPolicyConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.NetworkPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1alpha1.NetworkPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.NetworkPolicyConfig build() { + com.google.container.v1alpha1.NetworkPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.NetworkPolicyConfig buildPartial() { + com.google.container.v1alpha1.NetworkPolicyConfig result = new com.google.container.v1alpha1.NetworkPolicyConfig(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.NetworkPolicyConfig) { + return mergeFrom((com.google.container.v1alpha1.NetworkPolicyConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.NetworkPolicyConfig other) { + if (other == com.google.container.v1alpha1.NetworkPolicyConfig.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.NetworkPolicyConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.NetworkPolicyConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_ ; + /** + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + /** + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.NetworkPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.NetworkPolicyConfig) + private static final com.google.container.v1alpha1.NetworkPolicyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.NetworkPolicyConfig(); + } + + public static com.google.container.v1alpha1.NetworkPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkPolicyConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.NetworkPolicyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicyConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..5873e2153a60 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicyConfigOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface NetworkPolicyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.NetworkPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether NetworkPolicy is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + */ + boolean getDisabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicyOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicyOrBuilder.java new file mode 100644 index 000000000000..779ea69c04ae --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NetworkPolicyOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface NetworkPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.NetworkPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy.Provider provider = 1; + */ + int getProviderValue(); + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy.Provider provider = 1; + */ + com.google.container.v1alpha1.NetworkPolicy.Provider getProvider(); + + /** + *
+   * Whether network policy is enabled on the cluster.
+   * 
+ * + * bool enabled = 2; + */ + boolean getEnabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeConfig.java new file mode 100644 index 000000000000..56201af1e7bd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeConfig.java @@ -0,0 +1,4015 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Parameters that describe the nodes in a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.NodeConfig} + */ +public final class NodeConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.NodeConfig) + NodeConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeConfig.newBuilder() to construct. + private NodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeConfig() { + machineType_ = ""; + diskSizeGb_ = 0; + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + serviceAccount_ = ""; + imageType_ = ""; + localSsdCount_ = 0; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + preemptible_ = false; + accelerators_ = java.util.Collections.emptyList(); + diskType_ = ""; + minCpuPlatform_ = ""; + taints_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeConfig( + 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(); + + machineType_ = s; + break; + } + case 16: { + + diskSizeGb_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + oauthScopes_.add(s); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + imageType_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000040; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 56: { + + localSsdCount_ = input.readInt32(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000100; + } + tags_.add(s); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccount_ = s; + break; + } + case 80: { + + preemptible_ = input.readBool(); + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + accelerators_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + accelerators_.add( + input.readMessage(com.google.container.v1alpha1.AcceleratorConfig.parser(), extensionRegistry)); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + diskType_ = s; + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + minCpuPlatform_ = s; + break; + } + case 122: { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + taints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00002000; + } + taints_.add( + input.readMessage(com.google.container.v1alpha1.NodeTaint.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + tags_ = tags_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + } + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NodeConfig.class, com.google.container.v1alpha1.NodeConfig.Builder.class); + } + + private int bitField0_; + public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object machineType_; + /** + *
+   * The name of a Google Compute Engine [machine
+   * type](/compute/docs/machine-types) (e.g.
+   * `n1-standard-1`).
+   * If unspecified, the default machine type is
+   * `n1-standard-1`.
+   * 
+ * + * string machine_type = 1; + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + /** + *
+   * The name of a Google Compute Engine [machine
+   * type](/compute/docs/machine-types) (e.g.
+   * `n1-standard-1`).
+   * If unspecified, the default machine type is
+   * `n1-standard-1`.
+   * 
+ * + * string machine_type = 1; + */ + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 2; + private int diskSizeGb_; + /** + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 2; + */ + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int OAUTH_SCOPES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList oauthScopes_; + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + public com.google.protobuf.ProtocolStringList + getOauthScopesList() { + return oauthScopes_; + } + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + public com.google.protobuf.ByteString + getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; + private volatile java.lang.Object serviceAccount_; + /** + *
+   * The Google Cloud Platform Service Account to be used by the node VMs. If
+   * no Service Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + *
+   * The Google Cloud Platform Service Account to be used by the node VMs. If
+   * no Service Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + */ + public com.google.protobuf.ByteString + getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 4; + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeConfig_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-os-login"
+   *  "gci-update-strategy"
+   *  "gci-ensure-gke-docker"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-os-login"
+   *  "gci-update-strategy"
+   *  "gci-ensure-gke-docker"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-os-login"
+   *  "gci-update-strategy"
+   *  "gci-ensure-gke-docker"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-os-login"
+   *  "gci-update-strategy"
+   *  "gci-ensure-gke-docker"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 5; + private volatile java.lang.Object imageType_; + /** + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + */ + public com.google.protobuf.ByteString + getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + 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.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 7; + private int localSsdCount_; + /** + *
+   * The number of local SSD disks to be attached to the node.
+   * The limit for this value is dependant upon the maximum number of
+   * disks available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+   * for more information.
+   * 
+ * + * int32 local_ssd_count = 7; + */ + public int getLocalSsdCount() { + return localSsdCount_; + } + + public static final int TAGS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList tags_; + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int PREEMPTIBLE_FIELD_NUMBER = 10; + private boolean preemptible_; + /** + *
+   * Whether the nodes are created as preemptible VM instances. See:
+   * https://cloud.google.com/compute/docs/instances/preemptible for more
+   * inforamtion about preemptible VM instances.
+   * 
+ * + * bool preemptible = 10; + */ + public boolean getPreemptible() { + return preemptible_; + } + + public static final int ACCELERATORS_FIELD_NUMBER = 11; + private java.util.List accelerators_; + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public java.util.List getAcceleratorsList() { + return accelerators_; + } + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsOrBuilderList() { + return accelerators_; + } + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public int getAcceleratorsCount() { + return accelerators_.size(); + } + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1alpha1.AcceleratorConfig getAccelerators(int index) { + return accelerators_.get(index); + } + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1alpha1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { + return accelerators_.get(index); + } + + public static final int DISK_TYPE_FIELD_NUMBER = 12; + private volatile java.lang.Object diskType_; + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + public com.google.protobuf.ByteString + getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; + private volatile java.lang.Object minCpuPlatform_; + /** + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+   * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + */ + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } + } + /** + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+   * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + */ + public com.google.protobuf.ByteString + getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAINTS_FIELD_NUMBER = 15; + private java.util.List taints_; + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public java.util.List getTaintsList() { + return taints_; + } + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public java.util.List + getTaintsOrBuilderList() { + return taints_; + } + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public int getTaintsCount() { + return taints_.size(); + } + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public com.google.container.v1alpha1.NodeTaint getTaints(int index) { + return taints_.get(index); + } + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public com.google.container.v1alpha1.NodeTaintOrBuilder getTaintsOrBuilder( + int index) { + return taints_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getMachineTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); + } + if (diskSizeGb_ != 0) { + output.writeInt32(2, diskSizeGb_); + } + for (int i = 0; i < oauthScopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauthScopes_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 4); + if (!getImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, imageType_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); + if (localSsdCount_ != 0) { + output.writeInt32(7, localSsdCount_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, tags_.getRaw(i)); + } + if (!getServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); + } + if (preemptible_ != false) { + output.writeBool(10, preemptible_); + } + for (int i = 0; i < accelerators_.size(); i++) { + output.writeMessage(11, accelerators_.get(i)); + } + if (!getDiskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, diskType_); + } + if (!getMinCpuPlatformBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); + } + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(15, taints_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMachineTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); + } + if (diskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, diskSizeGb_); + } + { + int dataSize = 0; + for (int i = 0; i < oauthScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(oauthScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getOauthScopesList().size(); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metadata__); + } + if (!getImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, imageType_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); + } + if (localSsdCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, localSsdCount_); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + if (!getServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); + } + if (preemptible_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, preemptible_); + } + for (int i = 0; i < accelerators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, accelerators_.get(i)); + } + if (!getDiskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, diskType_); + } + if (!getMinCpuPlatformBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); + } + for (int i = 0; i < taints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, taints_.get(i)); + } + 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.container.v1alpha1.NodeConfig)) { + return super.equals(obj); + } + com.google.container.v1alpha1.NodeConfig other = (com.google.container.v1alpha1.NodeConfig) obj; + + boolean result = true; + result = result && getMachineType() + .equals(other.getMachineType()); + result = result && (getDiskSizeGb() + == other.getDiskSizeGb()); + result = result && getOauthScopesList() + .equals(other.getOauthScopesList()); + result = result && getServiceAccount() + .equals(other.getServiceAccount()); + result = result && internalGetMetadata().equals( + other.internalGetMetadata()); + result = result && getImageType() + .equals(other.getImageType()); + result = result && internalGetLabels().equals( + other.internalGetLabels()); + result = result && (getLocalSsdCount() + == other.getLocalSsdCount()); + result = result && getTagsList() + .equals(other.getTagsList()); + result = result && (getPreemptible() + == other.getPreemptible()); + result = result && getAcceleratorsList() + .equals(other.getAcceleratorsList()); + result = result && getDiskType() + .equals(other.getDiskType()); + result = result && getMinCpuPlatform() + .equals(other.getMinCpuPlatform()); + result = result && getTaintsList() + .equals(other.getTaintsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDiskSizeGb(); + if (getOauthScopesCount() > 0) { + hash = (37 * hash) + OAUTH_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getOauthScopesList().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getImageType().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + LOCAL_SSD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getLocalSsdCount(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPreemptible()); + if (getAcceleratorsCount() > 0) { + hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; + hash = (53 * hash) + getAcceleratorsList().hashCode(); + } + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); + hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getMinCpuPlatform().hashCode(); + if (getTaintsCount() > 0) { + hash = (37 * hash) + TAINTS_FIELD_NUMBER; + hash = (53 * hash) + getTaintsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.NodeConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodeConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodeConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodeConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodeConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.NodeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Parameters that describe the nodes in a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.NodeConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.NodeConfig) + com.google.container.v1alpha1.NodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableMetadata(); + case 6: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NodeConfig.class, com.google.container.v1alpha1.NodeConfig.Builder.class); + } + + // Construct using com.google.container.v1alpha1.NodeConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAcceleratorsFieldBuilder(); + getTaintsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + machineType_ = ""; + + diskSizeGb_ = 0; + + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + serviceAccount_ = ""; + + internalGetMutableMetadata().clear(); + imageType_ = ""; + + internalGetMutableLabels().clear(); + localSsdCount_ = 0; + + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + preemptible_ = false; + + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + acceleratorsBuilder_.clear(); + } + diskType_ = ""; + + minCpuPlatform_ = ""; + + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + } else { + taintsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeConfig getDefaultInstanceForType() { + return com.google.container.v1alpha1.NodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeConfig build() { + com.google.container.v1alpha1.NodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeConfig buildPartial() { + com.google.container.v1alpha1.NodeConfig result = new com.google.container.v1alpha1.NodeConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.machineType_ = machineType_; + result.diskSizeGb_ = diskSizeGb_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.oauthScopes_ = oauthScopes_; + result.serviceAccount_ = serviceAccount_; + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + result.imageType_ = imageType_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.localSsdCount_ = localSsdCount_; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.tags_ = tags_; + result.preemptible_ = preemptible_; + if (acceleratorsBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.accelerators_ = accelerators_; + } else { + result.accelerators_ = acceleratorsBuilder_.build(); + } + result.diskType_ = diskType_; + result.minCpuPlatform_ = minCpuPlatform_; + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.NodeConfig) { + return mergeFrom((com.google.container.v1alpha1.NodeConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.NodeConfig other) { + if (other == com.google.container.v1alpha1.NodeConfig.getDefaultInstance()) return this; + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.oauthScopes_.isEmpty()) { + if (oauthScopes_.isEmpty()) { + oauthScopes_ = other.oauthScopes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.getPreemptible() != false) { + setPreemptible(other.getPreemptible()); + } + if (acceleratorsBuilder_ == null) { + if (!other.accelerators_.isEmpty()) { + if (accelerators_.isEmpty()) { + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureAcceleratorsIsMutable(); + accelerators_.addAll(other.accelerators_); + } + onChanged(); + } + } else { + if (!other.accelerators_.isEmpty()) { + if (acceleratorsBuilder_.isEmpty()) { + acceleratorsBuilder_.dispose(); + acceleratorsBuilder_ = null; + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000400); + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAcceleratorsFieldBuilder() : null; + } else { + acceleratorsBuilder_.addAllMessages(other.accelerators_); + } + } + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + onChanged(); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + onChanged(); + } + if (taintsBuilder_ == null) { + if (!other.taints_.isEmpty()) { + if (taints_.isEmpty()) { + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureTaintsIsMutable(); + taints_.addAll(other.taints_); + } + onChanged(); + } + } else { + if (!other.taints_.isEmpty()) { + if (taintsBuilder_.isEmpty()) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00002000); + taintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaintsFieldBuilder() : null; + } else { + taintsBuilder_.addAllMessages(other.taints_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.NodeConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.NodeConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object machineType_ = ""; + /** + *
+     * The name of a Google Compute Engine [machine
+     * type](/compute/docs/machine-types) (e.g.
+     * `n1-standard-1`).
+     * If unspecified, the default machine type is
+     * `n1-standard-1`.
+     * 
+ * + * string machine_type = 1; + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of a Google Compute Engine [machine
+     * type](/compute/docs/machine-types) (e.g.
+     * `n1-standard-1`).
+     * If unspecified, the default machine type is
+     * `n1-standard-1`.
+     * 
+ * + * string machine_type = 1; + */ + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of a Google Compute Engine [machine
+     * type](/compute/docs/machine-types) (e.g.
+     * `n1-standard-1`).
+     * If unspecified, the default machine type is
+     * `n1-standard-1`.
+     * 
+ * + * string machine_type = 1; + */ + public Builder setMachineType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + machineType_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of a Google Compute Engine [machine
+     * type](/compute/docs/machine-types) (e.g.
+     * `n1-standard-1`).
+     * If unspecified, the default machine type is
+     * `n1-standard-1`.
+     * 
+ * + * string machine_type = 1; + */ + public Builder clearMachineType() { + + machineType_ = getDefaultInstance().getMachineType(); + onChanged(); + return this; + } + /** + *
+     * The name of a Google Compute Engine [machine
+     * type](/compute/docs/machine-types) (e.g.
+     * `n1-standard-1`).
+     * If unspecified, the default machine type is
+     * `n1-standard-1`.
+     * 
+ * + * string machine_type = 1; + */ + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + machineType_ = value; + onChanged(); + return this; + } + + private int diskSizeGb_ ; + /** + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + */ + public int getDiskSizeGb() { + return diskSizeGb_; + } + /** + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + */ + public Builder setDiskSizeGb(int value) { + + diskSizeGb_ = value; + onChanged(); + return this; + } + /** + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureOauthScopesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public com.google.protobuf.ProtocolStringList + getOauthScopesList() { + return oauthScopes_.getUnmodifiableView(); + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public com.google.protobuf.ByteString + getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public Builder setOauthScopes( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public Builder addOauthScopes( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public Builder addAllOauthScopes( + java.lang.Iterable values) { + ensureOauthScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oauthScopes_); + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public Builder clearOauthScopes() { + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public Builder addOauthScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs. If
+     * no Service Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs. If
+     * no Service Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + */ + public com.google.protobuf.ByteString + getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs. If
+     * no Service Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + */ + public Builder setServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs. If
+     * no Service Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs. If
+     * no Service Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + */ + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-os-login"
+     *  "gci-update-strategy"
+     *  "gci-ensure-gke-docker"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-os-login"
+     *  "gci-update-strategy"
+     *  "gci-ensure-gke-docker"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-os-login"
+     *  "gci-update-strategy"
+     *  "gci-ensure-gke-docker"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-os-login"
+     *  "gci-update-strategy"
+     *  "gci-ensure-gke-docker"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-os-login"
+     *  "gci-update-strategy"
+     *  "gci-ensure-gke-docker"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-os-login"
+     *  "gci-update-strategy"
+     *  "gci-ensure-gke-docker"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-os-login"
+     *  "gci-update-strategy"
+     *  "gci-ensure-gke-docker"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + */ + public com.google.protobuf.ByteString + getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + */ + public Builder setImageType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + */ + public Builder setImageTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + 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.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + 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 + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + 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; + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private int localSsdCount_ ; + /** + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependant upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + */ + public int getLocalSsdCount() { + return localSsdCount_; + } + /** + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependant upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + onChanged(); + return this; + } + /** + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependant upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + */ + public Builder clearLocalSsdCount() { + + localSsdCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000100; + } + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private boolean preemptible_ ; + /** + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + */ + public boolean getPreemptible() { + return preemptible_; + } + /** + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + */ + public Builder setPreemptible(boolean value) { + + preemptible_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + */ + public Builder clearPreemptible() { + + preemptible_ = false; + onChanged(); + return this; + } + + private java.util.List accelerators_ = + java.util.Collections.emptyList(); + private void ensureAcceleratorsIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + accelerators_ = new java.util.ArrayList(accelerators_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.AcceleratorConfig, com.google.container.v1alpha1.AcceleratorConfig.Builder, com.google.container.v1alpha1.AcceleratorConfigOrBuilder> acceleratorsBuilder_; + + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public java.util.List getAcceleratorsList() { + if (acceleratorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accelerators_); + } else { + return acceleratorsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public int getAcceleratorsCount() { + if (acceleratorsBuilder_ == null) { + return accelerators_.size(); + } else { + return acceleratorsBuilder_.getCount(); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1alpha1.AcceleratorConfig getAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1alpha1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.set(index, value); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1alpha1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.set(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators(com.google.container.v1alpha1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1alpha1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(index, value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + com.google.container.v1alpha1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1alpha1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public Builder addAllAccelerators( + java.lang.Iterable values) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, accelerators_); + onChanged(); + } else { + acceleratorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public Builder clearAccelerators() { + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + acceleratorsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public Builder removeAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.remove(index); + onChanged(); + } else { + acceleratorsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1alpha1.AcceleratorConfig.Builder getAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1alpha1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); } else { + return acceleratorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsOrBuilderList() { + if (acceleratorsBuilder_ != null) { + return acceleratorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accelerators_); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1alpha1.AcceleratorConfig.Builder addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder().addBuilder( + com.google.container.v1alpha1.AcceleratorConfig.getDefaultInstance()); + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1alpha1.AcceleratorConfig.Builder addAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.AcceleratorConfig.getDefaultInstance()); + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsBuilderList() { + return getAcceleratorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.AcceleratorConfig, com.google.container.v1alpha1.AcceleratorConfig.Builder, com.google.container.v1alpha1.AcceleratorConfigOrBuilder> + getAcceleratorsFieldBuilder() { + if (acceleratorsBuilder_ == null) { + acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.AcceleratorConfig, com.google.container.v1alpha1.AcceleratorConfig.Builder, com.google.container.v1alpha1.AcceleratorConfigOrBuilder>( + accelerators_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + accelerators_ = null; + } + return acceleratorsBuilder_; + } + + private java.lang.Object diskType_ = ""; + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public com.google.protobuf.ByteString + getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public Builder setDiskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + diskType_ = value; + onChanged(); + return this; + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public Builder clearDiskType() { + + diskType_ = getDefaultInstance().getDiskType(); + onChanged(); + return this; + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public Builder setDiskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diskType_ = value; + onChanged(); + return this; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+     * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + */ + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+     * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + */ + public com.google.protobuf.ByteString + getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+     * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + */ + public Builder setMinCpuPlatform( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + minCpuPlatform_ = value; + onChanged(); + return this; + } + /** + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+     * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + */ + public Builder clearMinCpuPlatform() { + + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + onChanged(); + return this; + } + /** + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+     * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + */ + public Builder setMinCpuPlatformBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minCpuPlatform_ = value; + onChanged(); + return this; + } + + private java.util.List taints_ = + java.util.Collections.emptyList(); + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.NodeTaint, com.google.container.v1alpha1.NodeTaint.Builder, com.google.container.v1alpha1.NodeTaintOrBuilder> taintsBuilder_; + + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public java.util.List getTaintsList() { + if (taintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taints_); + } else { + return taintsBuilder_.getMessageList(); + } + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public int getTaintsCount() { + if (taintsBuilder_ == null) { + return taints_.size(); + } else { + return taintsBuilder_.getCount(); + } + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public com.google.container.v1alpha1.NodeTaint getTaints(int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); + } else { + return taintsBuilder_.getMessage(index); + } + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public Builder setTaints( + int index, com.google.container.v1alpha1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.set(index, value); + onChanged(); + } else { + taintsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public Builder setTaints( + int index, com.google.container.v1alpha1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.set(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public Builder addTaints(com.google.container.v1alpha1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(value); + onChanged(); + } else { + taintsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public Builder addTaints( + int index, com.google.container.v1alpha1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(index, value); + onChanged(); + } else { + taintsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public Builder addTaints( + com.google.container.v1alpha1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public Builder addTaints( + int index, com.google.container.v1alpha1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public Builder addAllTaints( + java.lang.Iterable values) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, taints_); + onChanged(); + } else { + taintsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public Builder clearTaints() { + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + taintsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public Builder removeTaints(int index) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.remove(index); + onChanged(); + } else { + taintsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public com.google.container.v1alpha1.NodeTaint.Builder getTaintsBuilder( + int index) { + return getTaintsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public com.google.container.v1alpha1.NodeTaintOrBuilder getTaintsOrBuilder( + int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); } else { + return taintsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public java.util.List + getTaintsOrBuilderList() { + if (taintsBuilder_ != null) { + return taintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taints_); + } + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public com.google.container.v1alpha1.NodeTaint.Builder addTaintsBuilder() { + return getTaintsFieldBuilder().addBuilder( + com.google.container.v1alpha1.NodeTaint.getDefaultInstance()); + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public com.google.container.v1alpha1.NodeTaint.Builder addTaintsBuilder( + int index) { + return getTaintsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.NodeTaint.getDefaultInstance()); + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + public java.util.List + getTaintsBuilderList() { + return getTaintsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.NodeTaint, com.google.container.v1alpha1.NodeTaint.Builder, com.google.container.v1alpha1.NodeTaintOrBuilder> + getTaintsFieldBuilder() { + if (taintsBuilder_ == null) { + taintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.NodeTaint, com.google.container.v1alpha1.NodeTaint.Builder, com.google.container.v1alpha1.NodeTaintOrBuilder>( + taints_, + ((bitField0_ & 0x00002000) == 0x00002000), + getParentForChildren(), + isClean()); + taints_ = null; + } + return taintsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.NodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.NodeConfig) + private static final com.google.container.v1alpha1.NodeConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.NodeConfig(); + } + + public static com.google.container.v1alpha1.NodeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeConfigOrBuilder.java new file mode 100644 index 000000000000..bde9bd7cc6c2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeConfigOrBuilder.java @@ -0,0 +1,628 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface NodeConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.NodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of a Google Compute Engine [machine
+   * type](/compute/docs/machine-types) (e.g.
+   * `n1-standard-1`).
+   * If unspecified, the default machine type is
+   * `n1-standard-1`.
+   * 
+ * + * string machine_type = 1; + */ + java.lang.String getMachineType(); + /** + *
+   * The name of a Google Compute Engine [machine
+   * type](/compute/docs/machine-types) (e.g.
+   * `n1-standard-1`).
+   * If unspecified, the default machine type is
+   * `n1-standard-1`.
+   * 
+ * + * string machine_type = 1; + */ + com.google.protobuf.ByteString + getMachineTypeBytes(); + + /** + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 2; + */ + int getDiskSizeGb(); + + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + java.util.List + getOauthScopesList(); + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + int getOauthScopesCount(); + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + java.lang.String getOauthScopes(int index); + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + com.google.protobuf.ByteString + getOauthScopesBytes(int index); + + /** + *
+   * The Google Cloud Platform Service Account to be used by the node VMs. If
+   * no Service Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + */ + java.lang.String getServiceAccount(); + /** + *
+   * The Google Cloud Platform Service Account to be used by the node VMs. If
+   * no Service Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + */ + com.google.protobuf.ByteString + getServiceAccountBytes(); + + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-os-login"
+   *  "gci-update-strategy"
+   *  "gci-ensure-gke-docker"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + int getMetadataCount(); + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-os-login"
+   *  "gci-update-strategy"
+   *  "gci-ensure-gke-docker"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getMetadata(); + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-os-login"
+   *  "gci-update-strategy"
+   *  "gci-ensure-gke-docker"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + java.util.Map + getMetadataMap(); + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-os-login"
+   *  "gci-update-strategy"
+   *  "gci-ensure-gke-docker"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + java.lang.String getMetadataOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-os-login"
+   *  "gci-update-strategy"
+   *  "gci-ensure-gke-docker"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + java.lang.String getMetadataOrThrow( + java.lang.String key); + + /** + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + */ + java.lang.String getImageType(); + /** + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + */ + com.google.protobuf.ByteString + getImageTypeBytes(); + + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + int getLabelsCount(); + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * The number of local SSD disks to be attached to the node.
+   * The limit for this value is dependant upon the maximum number of
+   * disks available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+   * for more information.
+   * 
+ * + * int32 local_ssd_count = 7; + */ + int getLocalSsdCount(); + + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + java.util.List + getTagsList(); + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + int getTagsCount(); + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + java.lang.String getTags(int index); + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + *
+   * Whether the nodes are created as preemptible VM instances. See:
+   * https://cloud.google.com/compute/docs/instances/preemptible for more
+   * inforamtion about preemptible VM instances.
+   * 
+ * + * bool preemptible = 10; + */ + boolean getPreemptible(); + + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + java.util.List + getAcceleratorsList(); + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + com.google.container.v1alpha1.AcceleratorConfig getAccelerators(int index); + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + int getAcceleratorsCount(); + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + java.util.List + getAcceleratorsOrBuilderList(); + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1alpha1.AcceleratorConfig accelerators = 11; + */ + com.google.container.v1alpha1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index); + + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + java.lang.String getDiskType(); + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + com.google.protobuf.ByteString + getDiskTypeBytes(); + + /** + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+   * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + */ + java.lang.String getMinCpuPlatform(); + /** + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+   * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + */ + com.google.protobuf.ByteString + getMinCpuPlatformBytes(); + + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + java.util.List + getTaintsList(); + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + com.google.container.v1alpha1.NodeTaint getTaints(int index); + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + int getTaintsCount(); + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + java.util.List + getTaintsOrBuilderList(); + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1alpha1.NodeTaint taints = 15; + */ + com.google.container.v1alpha1.NodeTaintOrBuilder getTaintsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeManagement.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeManagement.java new file mode 100644 index 000000000000..30a1e52b4715 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeManagement.java @@ -0,0 +1,803 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * NodeManagement defines the set of node management services turned on for the
+ * node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.NodeManagement} + */ +public final class NodeManagement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.NodeManagement) + NodeManagementOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeManagement.newBuilder() to construct. + private NodeManagement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeManagement() { + autoUpgrade_ = false; + autoRepair_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeManagement( + 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 8: { + + autoUpgrade_ = input.readBool(); + break; + } + case 16: { + + autoRepair_ = input.readBool(); + break; + } + case 82: { + com.google.container.v1alpha1.AutoUpgradeOptions.Builder subBuilder = null; + if (upgradeOptions_ != null) { + subBuilder = upgradeOptions_.toBuilder(); + } + upgradeOptions_ = input.readMessage(com.google.container.v1alpha1.AutoUpgradeOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(upgradeOptions_); + upgradeOptions_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NodeManagement.class, com.google.container.v1alpha1.NodeManagement.Builder.class); + } + + public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; + private boolean autoUpgrade_; + /** + *
+   * Whether the nodes will be automatically upgraded.
+   * 
+ * + * bool auto_upgrade = 1; + */ + public boolean getAutoUpgrade() { + return autoUpgrade_; + } + + public static final int AUTO_REPAIR_FIELD_NUMBER = 2; + private boolean autoRepair_; + /** + *
+   * Whether the nodes will be automatically repaired.
+   * 
+ * + * bool auto_repair = 2; + */ + public boolean getAutoRepair() { + return autoRepair_; + } + + public static final int UPGRADE_OPTIONS_FIELD_NUMBER = 10; + private com.google.container.v1alpha1.AutoUpgradeOptions upgradeOptions_; + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public boolean hasUpgradeOptions() { + return upgradeOptions_ != null; + } + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1alpha1.AutoUpgradeOptions getUpgradeOptions() { + return upgradeOptions_ == null ? com.google.container.v1alpha1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1alpha1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { + return getUpgradeOptions(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (autoUpgrade_ != false) { + output.writeBool(1, autoUpgrade_); + } + if (autoRepair_ != false) { + output.writeBool(2, autoRepair_); + } + if (upgradeOptions_ != null) { + output.writeMessage(10, getUpgradeOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (autoUpgrade_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, autoUpgrade_); + } + if (autoRepair_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, autoRepair_); + } + if (upgradeOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getUpgradeOptions()); + } + 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.container.v1alpha1.NodeManagement)) { + return super.equals(obj); + } + com.google.container.v1alpha1.NodeManagement other = (com.google.container.v1alpha1.NodeManagement) obj; + + boolean result = true; + result = result && (getAutoUpgrade() + == other.getAutoUpgrade()); + result = result && (getAutoRepair() + == other.getAutoRepair()); + result = result && (hasUpgradeOptions() == other.hasUpgradeOptions()); + if (hasUpgradeOptions()) { + result = result && getUpgradeOptions() + .equals(other.getUpgradeOptions()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUTO_UPGRADE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutoUpgrade()); + hash = (37 * hash) + AUTO_REPAIR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutoRepair()); + if (hasUpgradeOptions()) { + hash = (37 * hash) + UPGRADE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.NodeManagement parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodeManagement parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeManagement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodeManagement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeManagement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodeManagement parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeManagement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodeManagement parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeManagement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodeManagement parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeManagement parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodeManagement parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.NodeManagement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NodeManagement defines the set of node management services turned on for the
+   * node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.NodeManagement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.NodeManagement) + com.google.container.v1alpha1.NodeManagementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NodeManagement.class, com.google.container.v1alpha1.NodeManagement.Builder.class); + } + + // Construct using com.google.container.v1alpha1.NodeManagement.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + autoUpgrade_ = false; + + autoRepair_ = false; + + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = null; + } else { + upgradeOptions_ = null; + upgradeOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeManagement_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeManagement getDefaultInstanceForType() { + return com.google.container.v1alpha1.NodeManagement.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeManagement build() { + com.google.container.v1alpha1.NodeManagement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeManagement buildPartial() { + com.google.container.v1alpha1.NodeManagement result = new com.google.container.v1alpha1.NodeManagement(this); + result.autoUpgrade_ = autoUpgrade_; + result.autoRepair_ = autoRepair_; + if (upgradeOptionsBuilder_ == null) { + result.upgradeOptions_ = upgradeOptions_; + } else { + result.upgradeOptions_ = upgradeOptionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.NodeManagement) { + return mergeFrom((com.google.container.v1alpha1.NodeManagement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.NodeManagement other) { + if (other == com.google.container.v1alpha1.NodeManagement.getDefaultInstance()) return this; + if (other.getAutoUpgrade() != false) { + setAutoUpgrade(other.getAutoUpgrade()); + } + if (other.getAutoRepair() != false) { + setAutoRepair(other.getAutoRepair()); + } + if (other.hasUpgradeOptions()) { + mergeUpgradeOptions(other.getUpgradeOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.NodeManagement parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.NodeManagement) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean autoUpgrade_ ; + /** + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + */ + public boolean getAutoUpgrade() { + return autoUpgrade_; + } + /** + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + */ + public Builder setAutoUpgrade(boolean value) { + + autoUpgrade_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + */ + public Builder clearAutoUpgrade() { + + autoUpgrade_ = false; + onChanged(); + return this; + } + + private boolean autoRepair_ ; + /** + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + */ + public boolean getAutoRepair() { + return autoRepair_; + } + /** + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + */ + public Builder setAutoRepair(boolean value) { + + autoRepair_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + */ + public Builder clearAutoRepair() { + + autoRepair_ = false; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.AutoUpgradeOptions upgradeOptions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AutoUpgradeOptions, com.google.container.v1alpha1.AutoUpgradeOptions.Builder, com.google.container.v1alpha1.AutoUpgradeOptionsOrBuilder> upgradeOptionsBuilder_; + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public boolean hasUpgradeOptions() { + return upgradeOptionsBuilder_ != null || upgradeOptions_ != null; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1alpha1.AutoUpgradeOptions getUpgradeOptions() { + if (upgradeOptionsBuilder_ == null) { + return upgradeOptions_ == null ? com.google.container.v1alpha1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } else { + return upgradeOptionsBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder setUpgradeOptions(com.google.container.v1alpha1.AutoUpgradeOptions value) { + if (upgradeOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeOptions_ = value; + onChanged(); + } else { + upgradeOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder setUpgradeOptions( + com.google.container.v1alpha1.AutoUpgradeOptions.Builder builderForValue) { + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = builderForValue.build(); + onChanged(); + } else { + upgradeOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder mergeUpgradeOptions(com.google.container.v1alpha1.AutoUpgradeOptions value) { + if (upgradeOptionsBuilder_ == null) { + if (upgradeOptions_ != null) { + upgradeOptions_ = + com.google.container.v1alpha1.AutoUpgradeOptions.newBuilder(upgradeOptions_).mergeFrom(value).buildPartial(); + } else { + upgradeOptions_ = value; + } + onChanged(); + } else { + upgradeOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder clearUpgradeOptions() { + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = null; + onChanged(); + } else { + upgradeOptions_ = null; + upgradeOptionsBuilder_ = null; + } + + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1alpha1.AutoUpgradeOptions.Builder getUpgradeOptionsBuilder() { + + onChanged(); + return getUpgradeOptionsFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1alpha1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { + if (upgradeOptionsBuilder_ != null) { + return upgradeOptionsBuilder_.getMessageOrBuilder(); + } else { + return upgradeOptions_ == null ? + com.google.container.v1alpha1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AutoUpgradeOptions, com.google.container.v1alpha1.AutoUpgradeOptions.Builder, com.google.container.v1alpha1.AutoUpgradeOptionsOrBuilder> + getUpgradeOptionsFieldBuilder() { + if (upgradeOptionsBuilder_ == null) { + upgradeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AutoUpgradeOptions, com.google.container.v1alpha1.AutoUpgradeOptions.Builder, com.google.container.v1alpha1.AutoUpgradeOptionsOrBuilder>( + getUpgradeOptions(), + getParentForChildren(), + isClean()); + upgradeOptions_ = null; + } + return upgradeOptionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.NodeManagement) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.NodeManagement) + private static final com.google.container.v1alpha1.NodeManagement DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.NodeManagement(); + } + + public static com.google.container.v1alpha1.NodeManagement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeManagement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeManagement(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeManagement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeManagementOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeManagementOrBuilder.java new file mode 100644 index 000000000000..dfd8f5398251 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeManagementOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface NodeManagementOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.NodeManagement) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the nodes will be automatically upgraded.
+   * 
+ * + * bool auto_upgrade = 1; + */ + boolean getAutoUpgrade(); + + /** + *
+   * Whether the nodes will be automatically repaired.
+   * 
+ * + * bool auto_repair = 2; + */ + boolean getAutoRepair(); + + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + boolean hasUpgradeOptions(); + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + com.google.container.v1alpha1.AutoUpgradeOptions getUpgradeOptions(); + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1alpha1.AutoUpgradeOptions upgrade_options = 10; + */ + com.google.container.v1alpha1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePool.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePool.java new file mode 100644 index 000000000000..9b5a106e47d4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePool.java @@ -0,0 +1,2869 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * NodePool contains the name and configuration for a cluster's node pool.
+ * Node pools are a set of nodes (i.e. VM's), with a common configuration and
+ * specification, under the control of the cluster master. They may have a set
+ * of Kubernetes labels applied to them, which may be used to reference them
+ * during pod scheduling. They may also be resized up or down, to accommodate
+ * the workload.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.NodePool} + */ +public final class NodePool extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.NodePool) + NodePoolOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodePool.newBuilder() to construct. + private NodePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodePool() { + name_ = ""; + initialNodeCount_ = 0; + selfLink_ = ""; + version_ = ""; + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + status_ = 0; + statusMessage_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodePool( + 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: { + com.google.container.v1alpha1.NodeConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = input.readMessage(com.google.container.v1alpha1.NodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + initialNodeCount_ = input.readInt32(); + break; + } + case 34: { + com.google.container.v1alpha1.NodePoolAutoscaling.Builder subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = input.readMessage(com.google.container.v1alpha1.NodePoolAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.container.v1alpha1.NodeManagement.Builder subBuilder = null; + if (management_ != null) { + subBuilder = management_.toBuilder(); + } + management_ = input.readMessage(com.google.container.v1alpha1.NodeManagement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(management_); + management_ = subBuilder.buildPartial(); + } + + break; + } + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + + selfLink_ = s; + break; + } + case 810: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 818: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000080; + } + instanceGroupUrls_.add(s); + break; + } + case 824: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 834: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 842: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + conditions_.add( + input.readMessage(com.google.container.v1alpha1.StatusCondition.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NodePool.class, com.google.container.v1alpha1.NodePool.Builder.class); + } + + /** + *
+   * The current status of the node pool instance.
+   * 
+ * + * Protobuf enum {@code google.container.v1alpha1.NodePool.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + *
+     * The PROVISIONING state indicates the node pool is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + *
+     * The RUNNING state indicates the node pool has been created
+     * and is fully usable.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + *
+     * The RUNNING_WITH_ERROR state indicates the node pool has been created
+     * and is partially usable. Some error state has occurred and some
+     * functionality may be impaired. Customer may need to reissue a request
+     * or trigger a new update.
+     * 
+ * + * RUNNING_WITH_ERROR = 3; + */ + RUNNING_WITH_ERROR(3), + /** + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the node pool, such as upgrading node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 4; + */ + RECONCILING(4), + /** + *
+     * The STOPPING state indicates the node pool is being deleted.
+     * 
+ * + * STOPPING = 5; + */ + STOPPING(5), + /** + *
+     * The ERROR state indicates the node pool may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 6; + */ + ERROR(6), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+     * The PROVISIONING state indicates the node pool is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + *
+     * The RUNNING state indicates the node pool has been created
+     * and is fully usable.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + *
+     * The RUNNING_WITH_ERROR state indicates the node pool has been created
+     * and is partially usable. Some error state has occurred and some
+     * functionality may be impaired. Customer may need to reissue a request
+     * or trigger a new update.
+     * 
+ * + * RUNNING_WITH_ERROR = 3; + */ + public static final int RUNNING_WITH_ERROR_VALUE = 3; + /** + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the node pool, such as upgrading node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 4; + */ + public static final int RECONCILING_VALUE = 4; + /** + *
+     * The STOPPING state indicates the node pool is being deleted.
+     * 
+ * + * STOPPING = 5; + */ + public static final int STOPPING_VALUE = 5; + /** + *
+     * The ERROR state indicates the node pool may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 6; + */ + public static final int ERROR_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return RUNNING; + case 3: return RUNNING_WITH_ERROR; + case 4: return RECONCILING; + case 5: return STOPPING; + case 6: return ERROR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1alpha1.NodePool.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1alpha1.NodePool.Status) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + */ + 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 CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1alpha1.NodeConfig config_; + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public boolean hasConfig() { + return config_ != null; + } + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public com.google.container.v1alpha1.NodeConfig getConfig() { + return config_ == null ? com.google.container.v1alpha1.NodeConfig.getDefaultInstance() : config_; + } + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public com.google.container.v1alpha1.NodeConfigOrBuilder getConfigOrBuilder() { + return getConfig(); + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_; + /** + *
+   * The initial node count for the pool. You must ensure that your
+   * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * 
+ * + * int32 initial_node_count = 3; + */ + public int getInitialNodeCount() { + return initialNodeCount_; + } + + public static final int AUTOSCALING_FIELD_NUMBER = 4; + private com.google.container.v1alpha1.NodePoolAutoscaling autoscaling_; + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1alpha1.NodePoolAutoscaling getAutoscaling() { + return autoscaling_ == null ? com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int MANAGEMENT_FIELD_NUMBER = 5; + private com.google.container.v1alpha1.NodeManagement management_; + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public boolean hasManagement() { + return management_ != null; + } + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public com.google.container.v1alpha1.NodeManagement getManagement() { + return management_ == null ? com.google.container.v1alpha1.NodeManagement.getDefaultInstance() : management_; + } + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public com.google.container.v1alpha1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + private volatile java.lang.Object selfLink_; + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 101; + private volatile java.lang.Object version_; + /** + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 102; + private com.google.protobuf.LazyStringList instanceGroupUrls_; + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + return instanceGroupUrls_; + } + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + public com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + + public static final int STATUS_FIELD_NUMBER = 103; + private int status_; + /** + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1alpha1.NodePool.Status status = 103; + */ + public int getStatusValue() { + return status_; + } + /** + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1alpha1.NodePool.Status status = 103; + */ + public com.google.container.v1alpha1.NodePool.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.NodePool.Status result = com.google.container.v1alpha1.NodePool.Status.valueOf(status_); + return result == null ? com.google.container.v1alpha1.NodePool.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; + private volatile java.lang.Object statusMessage_; + /** + *
+   * [Output only] Additional information about the current status of this
+   * node pool instance, if available.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 104 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + *
+   * [Output only] Additional information about the current status of this
+   * node pool instance, if available.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 104 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONDITIONS_FIELD_NUMBER = 105; + private java.util.List conditions_; + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public com.google.container.v1alpha1.StatusCondition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public com.google.container.v1alpha1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (config_ != null) { + output.writeMessage(2, getConfig()); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (autoscaling_ != null) { + output.writeMessage(4, getAutoscaling()); + } + if (management_ != null) { + output.writeMessage(5, getManagement()); + } + if (!getSelfLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, version_); + } + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, instanceGroupUrls_.getRaw(i)); + } + if (status_ != com.google.container.v1alpha1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(103, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 104, statusMessage_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(105, conditions_.get(i)); + } + 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 (config_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfig()); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, initialNodeCount_); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAutoscaling()); + } + if (management_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getManagement()); + } + if (!getSelfLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, version_); + } + { + int dataSize = 0; + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(instanceGroupUrls_.getRaw(i)); + } + size += dataSize; + size += 2 * getInstanceGroupUrlsList().size(); + } + if (status_ != com.google.container.v1alpha1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(103, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, statusMessage_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(105, conditions_.get(i)); + } + 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.container.v1alpha1.NodePool)) { + return super.equals(obj); + } + com.google.container.v1alpha1.NodePool other = (com.google.container.v1alpha1.NodePool) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && (hasConfig() == other.hasConfig()); + if (hasConfig()) { + result = result && getConfig() + .equals(other.getConfig()); + } + result = result && (getInitialNodeCount() + == other.getInitialNodeCount()); + result = result && (hasAutoscaling() == other.hasAutoscaling()); + if (hasAutoscaling()) { + result = result && getAutoscaling() + .equals(other.getAutoscaling()); + } + result = result && (hasManagement() == other.hasManagement()); + if (hasManagement()) { + result = result && getManagement() + .equals(other.getManagement()); + } + result = result && getSelfLink() + .equals(other.getSelfLink()); + result = result && getVersion() + .equals(other.getVersion()); + result = result && getInstanceGroupUrlsList() + .equals(other.getInstanceGroupUrlsList()); + result = result && status_ == other.status_; + result = result && getStatusMessage() + .equals(other.getStatusMessage()); + result = result && getConditionsList() + .equals(other.getConditionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInitialNodeCount(); + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().hashCode(); + } + if (hasManagement()) { + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getManagement().hashCode(); + } + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + if (getInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.NodePool parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodePool parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodePool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodePool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodePool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodePool parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodePool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodePool parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NodePool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodePool parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NodePool parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodePool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.NodePool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NodePool contains the name and configuration for a cluster's node pool.
+   * Node pools are a set of nodes (i.e. VM's), with a common configuration and
+   * specification, under the control of the cluster master. They may have a set
+   * of Kubernetes labels applied to them, which may be used to reference them
+   * during pod scheduling. They may also be resized up or down, to accommodate
+   * the workload.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.NodePool} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.NodePool) + com.google.container.v1alpha1.NodePoolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NodePool.class, com.google.container.v1alpha1.NodePool.Builder.class); + } + + // Construct using com.google.container.v1alpha1.NodePool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (configBuilder_ == null) { + config_ = null; + } else { + config_ = null; + configBuilder_ = null; + } + initialNodeCount_ = 0; + + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + selfLink_ = ""; + + version_ = ""; + + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + status_ = 0; + + statusMessage_ = ""; + + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + conditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodePool_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodePool getDefaultInstanceForType() { + return com.google.container.v1alpha1.NodePool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.NodePool build() { + com.google.container.v1alpha1.NodePool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodePool buildPartial() { + com.google.container.v1alpha1.NodePool result = new com.google.container.v1alpha1.NodePool(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (configBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + result.initialNodeCount_ = initialNodeCount_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + result.selfLink_ = selfLink_; + result.version_ = version_; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.instanceGroupUrls_ = instanceGroupUrls_; + result.status_ = status_; + result.statusMessage_ = statusMessage_; + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.NodePool) { + return mergeFrom((com.google.container.v1alpha1.NodePool)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.NodePool other) { + if (other == com.google.container.v1alpha1.NodePool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.getInitialNodeCount() != 0) { + setInitialNodeCount(other.getInitialNodeCount()); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000400); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.NodePool parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.NodePool) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.NodeConfig config_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeConfig, com.google.container.v1alpha1.NodeConfig.Builder, com.google.container.v1alpha1.NodeConfigOrBuilder> configBuilder_; + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public boolean hasConfig() { + return configBuilder_ != null || config_ != null; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public com.google.container.v1alpha1.NodeConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null ? com.google.container.v1alpha1.NodeConfig.getDefaultInstance() : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public Builder setConfig(com.google.container.v1alpha1.NodeConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + configBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public Builder setConfig( + com.google.container.v1alpha1.NodeConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public Builder mergeConfig(com.google.container.v1alpha1.NodeConfig value) { + if (configBuilder_ == null) { + if (config_ != null) { + config_ = + com.google.container.v1alpha1.NodeConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + configBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = null; + onChanged(); + } else { + config_ = null; + configBuilder_ = null; + } + + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public com.google.container.v1alpha1.NodeConfig.Builder getConfigBuilder() { + + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + public com.google.container.v1alpha1.NodeConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null ? + com.google.container.v1alpha1.NodeConfig.getDefaultInstance() : config_; + } + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeConfig, com.google.container.v1alpha1.NodeConfig.Builder, com.google.container.v1alpha1.NodeConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeConfig, com.google.container.v1alpha1.NodeConfig.Builder, com.google.container.v1alpha1.NodeConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + private int initialNodeCount_ ; + /** + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public int getInitialNodeCount() { + return initialNodeCount_; + } + /** + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public Builder clearInitialNodeCount() { + + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.NodePoolAutoscaling autoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePoolAutoscaling, com.google.container.v1alpha1.NodePoolAutoscaling.Builder, com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder> autoscalingBuilder_; + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1alpha1.NodePoolAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null ? com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder setAutoscaling(com.google.container.v1alpha1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder setAutoscaling( + com.google.container.v1alpha1.NodePoolAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder mergeAutoscaling(com.google.container.v1alpha1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1alpha1.NodePoolAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1alpha1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null ? + com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePoolAutoscaling, com.google.container.v1alpha1.NodePoolAutoscaling.Builder, com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePoolAutoscaling, com.google.container.v1alpha1.NodePoolAutoscaling.Builder, com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder>( + getAutoscaling(), + getParentForChildren(), + isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private com.google.container.v1alpha1.NodeManagement management_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeManagement, com.google.container.v1alpha1.NodeManagement.Builder, com.google.container.v1alpha1.NodeManagementOrBuilder> managementBuilder_; + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public com.google.container.v1alpha1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null ? com.google.container.v1alpha1.NodeManagement.getDefaultInstance() : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public Builder setManagement(com.google.container.v1alpha1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public Builder setManagement( + com.google.container.v1alpha1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public Builder mergeManagement(com.google.container.v1alpha1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1alpha1.NodeManagement.newBuilder(management_).mergeFrom(value).buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public com.google.container.v1alpha1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public com.google.container.v1alpha1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null ? + com.google.container.v1alpha1.NodeManagement.getDefaultInstance() : management_; + } + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeManagement, com.google.container.v1alpha1.NodeManagement.Builder, com.google.container.v1alpha1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeManagement, com.google.container.v1alpha1.NodeManagement.Builder, com.google.container.v1alpha1.NodeManagementOrBuilder>( + getManagement(), + getParentForChildren(), + isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object selfLink_ = ""; + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder setSelfLink( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder setSelfLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + bitField0_ |= 0x00000080; + } + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + return instanceGroupUrls_.getUnmodifiableView(); + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public Builder setInstanceGroupUrls( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public Builder addInstanceGroupUrls( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public Builder addAllInstanceGroupUrls( + java.lang.Iterable values) { + ensureInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instanceGroupUrls_); + onChanged(); + return this; + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public Builder addInstanceGroupUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1alpha1.NodePool.Status status = 103; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1alpha1.NodePool.Status status = 103; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1alpha1.NodePool.Status status = 103; + */ + public com.google.container.v1alpha1.NodePool.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.NodePool.Status result = com.google.container.v1alpha1.NodePool.Status.valueOf(status_); + return result == null ? com.google.container.v1alpha1.NodePool.Status.UNRECOGNIZED : result; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1alpha1.NodePool.Status status = 103; + */ + public Builder setStatus(com.google.container.v1alpha1.NodePool.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1alpha1.NodePool.Status status = 103; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * [Output only] Additional information about the current status of this
+     * node pool instance, if available.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * node pool instance, if available.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * node pool instance, if available.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * node pool instance, if available.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * node pool instance, if available.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder> conditionsBuilder_; + + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public com.google.container.v1alpha1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public Builder setConditions( + int index, com.google.container.v1alpha1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public Builder setConditions( + int index, com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public Builder addConditions(com.google.container.v1alpha1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public Builder addConditions( + int index, com.google.container.v1alpha1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public Builder addConditions( + com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public Builder addConditions( + int index, com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public com.google.container.v1alpha1.StatusCondition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public com.google.container.v1alpha1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public com.google.container.v1alpha1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + com.google.container.v1alpha1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public com.google.container.v1alpha1.StatusCondition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.NodePool) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.NodePool) + private static final com.google.container.v1alpha1.NodePool DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.NodePool(); + } + + public static com.google.container.v1alpha1.NodePool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodePool(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodePool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolAutoscaling.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolAutoscaling.java new file mode 100644 index 000000000000..24919cb2f679 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolAutoscaling.java @@ -0,0 +1,730 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * NodePoolAutoscaling contains information required by cluster autoscaler to
+ * adjust the size of the node pool to the current cluster usage.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.NodePoolAutoscaling} + */ +public final class NodePoolAutoscaling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.NodePoolAutoscaling) + NodePoolAutoscalingOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodePoolAutoscaling.newBuilder() to construct. + private NodePoolAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodePoolAutoscaling() { + enabled_ = false; + minNodeCount_ = 0; + maxNodeCount_ = 0; + autoprovisioned_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodePoolAutoscaling( + 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 8: { + + enabled_ = input.readBool(); + break; + } + case 16: { + + minNodeCount_ = input.readInt32(); + break; + } + case 24: { + + maxNodeCount_ = input.readInt32(); + break; + } + case 32: { + + autoprovisioned_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodePoolAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NodePoolAutoscaling.class, com.google.container.v1alpha1.NodePoolAutoscaling.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+   * Is autoscaling enabled for this node pool.
+   * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; + private int minNodeCount_; + /** + *
+   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+   * max_node_count.
+   * 
+ * + * int32 min_node_count = 2; + */ + public int getMinNodeCount() { + return minNodeCount_; + } + + public static final int MAX_NODE_COUNT_FIELD_NUMBER = 3; + private int maxNodeCount_; + /** + *
+   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+   * has to enough quota to scale up the cluster.
+   * 
+ * + * int32 max_node_count = 3; + */ + public int getMaxNodeCount() { + return maxNodeCount_; + } + + public static final int AUTOPROVISIONED_FIELD_NUMBER = 4; + private boolean autoprovisioned_; + /** + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + */ + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (minNodeCount_ != 0) { + output.writeInt32(2, minNodeCount_); + } + if (maxNodeCount_ != 0) { + output.writeInt32(3, maxNodeCount_); + } + if (autoprovisioned_ != false) { + output.writeBool(4, autoprovisioned_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (minNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minNodeCount_); + } + if (maxNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxNodeCount_); + } + if (autoprovisioned_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, autoprovisioned_); + } + 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.container.v1alpha1.NodePoolAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1alpha1.NodePoolAutoscaling other = (com.google.container.v1alpha1.NodePoolAutoscaling) obj; + + boolean result = true; + result = result && (getEnabled() + == other.getEnabled()); + result = result && (getMinNodeCount() + == other.getMinNodeCount()); + result = result && (getMaxNodeCount() + == other.getMaxNodeCount()); + result = result && (getAutoprovisioned() + == other.getAutoprovisioned()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + MIN_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinNodeCount(); + hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxNodeCount(); + hash = (37 * hash) + AUTOPROVISIONED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutoprovisioned()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.NodePoolAutoscaling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodePoolAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.NodePoolAutoscaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NodePoolAutoscaling contains information required by cluster autoscaler to
+   * adjust the size of the node pool to the current cluster usage.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.NodePoolAutoscaling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.NodePoolAutoscaling) + com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodePoolAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NodePoolAutoscaling.class, com.google.container.v1alpha1.NodePoolAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1alpha1.NodePoolAutoscaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + minNodeCount_ = 0; + + maxNodeCount_ = 0; + + autoprovisioned_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodePoolAutoscaling getDefaultInstanceForType() { + return com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.NodePoolAutoscaling build() { + com.google.container.v1alpha1.NodePoolAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodePoolAutoscaling buildPartial() { + com.google.container.v1alpha1.NodePoolAutoscaling result = new com.google.container.v1alpha1.NodePoolAutoscaling(this); + result.enabled_ = enabled_; + result.minNodeCount_ = minNodeCount_; + result.maxNodeCount_ = maxNodeCount_; + result.autoprovisioned_ = autoprovisioned_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.NodePoolAutoscaling) { + return mergeFrom((com.google.container.v1alpha1.NodePoolAutoscaling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.NodePoolAutoscaling other) { + if (other == com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getMinNodeCount() != 0) { + setMinNodeCount(other.getMinNodeCount()); + } + if (other.getMaxNodeCount() != 0) { + setMaxNodeCount(other.getMaxNodeCount()); + } + if (other.getAutoprovisioned() != false) { + setAutoprovisioned(other.getAutoprovisioned()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.NodePoolAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.NodePoolAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private int minNodeCount_ ; + /** + *
+     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + */ + public int getMinNodeCount() { + return minNodeCount_; + } + /** + *
+     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + */ + public Builder setMinNodeCount(int value) { + + minNodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + */ + public Builder clearMinNodeCount() { + + minNodeCount_ = 0; + onChanged(); + return this; + } + + private int maxNodeCount_ ; + /** + *
+     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+     * has to enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + */ + public int getMaxNodeCount() { + return maxNodeCount_; + } + /** + *
+     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+     * has to enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + */ + public Builder setMaxNodeCount(int value) { + + maxNodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+     * has to enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + */ + public Builder clearMaxNodeCount() { + + maxNodeCount_ = 0; + onChanged(); + return this; + } + + private boolean autoprovisioned_ ; + /** + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + */ + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + /** + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + */ + public Builder setAutoprovisioned(boolean value) { + + autoprovisioned_ = value; + onChanged(); + return this; + } + /** + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + */ + public Builder clearAutoprovisioned() { + + autoprovisioned_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.NodePoolAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.NodePoolAutoscaling) + private static final com.google.container.v1alpha1.NodePoolAutoscaling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.NodePoolAutoscaling(); + } + + public static com.google.container.v1alpha1.NodePoolAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodePoolAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodePoolAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolAutoscalingOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolAutoscalingOrBuilder.java new file mode 100644 index 000000000000..476dc8a98563 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolAutoscalingOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface NodePoolAutoscalingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.NodePoolAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Is autoscaling enabled for this node pool.
+   * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); + + /** + *
+   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+   * max_node_count.
+   * 
+ * + * int32 min_node_count = 2; + */ + int getMinNodeCount(); + + /** + *
+   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+   * has to enough quota to scale up the cluster.
+   * 
+ * + * int32 max_node_count = 3; + */ + int getMaxNodeCount(); + + /** + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + */ + boolean getAutoprovisioned(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolName.java new file mode 100644 index 000000000000..aac30dcdd8bf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolName.java @@ -0,0 +1,235 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1alpha1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class NodePoolName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + private final String cluster; + private final String nodePool; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getNodePool() { + return nodePool; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private NodePoolName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + nodePool = Preconditions.checkNotNull(builder.getNodePool()); + } + + public static NodePoolName of(String project, String location, String cluster, String nodePool) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setNodePool(nodePool) + .build(); + } + + public static String format(String project, String location, String cluster, String nodePool) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setNodePool(nodePool) + .build() + .toString(); + } + + public static NodePoolName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "NodePoolName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster"), matchMap.get("node_pool")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (NodePoolName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldMapBuilder.put("cluster", cluster); + fieldMapBuilder.put("nodePool", nodePool); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location, "cluster", cluster, "node_pool", nodePool); + } + + /** Builder for NodePoolName. */ + public static class Builder { + + private String project; + private String location; + private String cluster; + private String nodePool; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getNodePool() { + return nodePool; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + public Builder setNodePool(String nodePool) { + this.nodePool = nodePool; + return this; + } + + private Builder() { + } + + private Builder(NodePoolName nodePoolName) { + project = nodePoolName.project; + location = nodePoolName.location; + cluster = nodePoolName.cluster; + nodePool = nodePoolName.nodePool; + } + + public NodePoolName build() { + return new NodePoolName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof NodePoolName) { + NodePoolName that = (NodePoolName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)) + && (this.cluster.equals(that.cluster)) + && (this.nodePool.equals(that.nodePool)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + h *= 1000003; + h ^= cluster.hashCode(); + h *= 1000003; + h ^= nodePool.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolOrBuilder.java new file mode 100644 index 000000000000..fd60a135221e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodePoolOrBuilder.java @@ -0,0 +1,279 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface NodePoolOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.NodePool) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + boolean hasConfig(); + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + com.google.container.v1alpha1.NodeConfig getConfig(); + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1alpha1.NodeConfig config = 2; + */ + com.google.container.v1alpha1.NodeConfigOrBuilder getConfigOrBuilder(); + + /** + *
+   * The initial node count for the pool. You must ensure that your
+   * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * 
+ * + * int32 initial_node_count = 3; + */ + int getInitialNodeCount(); + + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + boolean hasAutoscaling(); + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + com.google.container.v1alpha1.NodePoolAutoscaling getAutoscaling(); + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 4; + */ + com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + boolean hasManagement(); + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + com.google.container.v1alpha1.NodeManagement getManagement(); + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + com.google.container.v1alpha1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + java.lang.String getSelfLink(); + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + com.google.protobuf.ByteString + getSelfLinkBytes(); + + /** + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + */ + java.lang.String getVersion(); + /** + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + java.util.List + getInstanceGroupUrlsList(); + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + int getInstanceGroupUrlsCount(); + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + java.lang.String getInstanceGroupUrls(int index); + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index); + + /** + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1alpha1.NodePool.Status status = 103; + */ + int getStatusValue(); + /** + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1alpha1.NodePool.Status status = 103; + */ + com.google.container.v1alpha1.NodePool.Status getStatus(); + + /** + *
+   * [Output only] Additional information about the current status of this
+   * node pool instance, if available.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 104 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getStatusMessage(); + /** + *
+   * [Output only] Additional information about the current status of this
+   * node pool instance, if available.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 104 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getStatusMessageBytes(); + + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + java.util.List + getConditionsList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + com.google.container.v1alpha1.StatusCondition getConditions(int index); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + int getConditionsCount(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition conditions = 105; + */ + com.google.container.v1alpha1.StatusConditionOrBuilder getConditionsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeTaint.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeTaint.java new file mode 100644 index 000000000000..7af976670f9f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeTaint.java @@ -0,0 +1,1003 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
+ * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
+ * For more information, including usage and the valid values, see:
+ * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.NodeTaint} + */ +public final class NodeTaint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.NodeTaint) + NodeTaintOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeTaint.newBuilder() to construct. + private NodeTaint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeTaint() { + key_ = ""; + value_ = ""; + effect_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeTaint( + 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(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + effect_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NodeTaint.class, com.google.container.v1alpha1.NodeTaint.Builder.class); + } + + /** + *
+   * Possible values for Effect in taint.
+   * 
+ * + * Protobuf enum {@code google.container.v1alpha1.NodeTaint.Effect} + */ + public enum Effect + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set
+     * 
+ * + * EFFECT_UNSPECIFIED = 0; + */ + EFFECT_UNSPECIFIED(0), + /** + *
+     * NoSchedule
+     * 
+ * + * NO_SCHEDULE = 1; + */ + NO_SCHEDULE(1), + /** + *
+     * PreferNoSchedule
+     * 
+ * + * PREFER_NO_SCHEDULE = 2; + */ + PREFER_NO_SCHEDULE(2), + /** + *
+     * NoExecute
+     * 
+ * + * NO_EXECUTE = 3; + */ + NO_EXECUTE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set
+     * 
+ * + * EFFECT_UNSPECIFIED = 0; + */ + public static final int EFFECT_UNSPECIFIED_VALUE = 0; + /** + *
+     * NoSchedule
+     * 
+ * + * NO_SCHEDULE = 1; + */ + public static final int NO_SCHEDULE_VALUE = 1; + /** + *
+     * PreferNoSchedule
+     * 
+ * + * PREFER_NO_SCHEDULE = 2; + */ + public static final int PREFER_NO_SCHEDULE_VALUE = 2; + /** + *
+     * NoExecute
+     * 
+ * + * NO_EXECUTE = 3; + */ + public static final int NO_EXECUTE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Effect valueOf(int value) { + return forNumber(value); + } + + public static Effect forNumber(int value) { + switch (value) { + case 0: return EFFECT_UNSPECIFIED; + case 1: return NO_SCHEDULE; + case 2: return PREFER_NO_SCHEDULE; + case 3: return NO_EXECUTE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Effect> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Effect findValueByNumber(int number) { + return Effect.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1alpha1.NodeTaint.getDescriptor().getEnumTypes().get(0); + } + + private static final Effect[] VALUES = values(); + + public static Effect valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Effect(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1alpha1.NodeTaint.Effect) + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECT_FIELD_NUMBER = 3; + private int effect_; + /** + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1alpha1.NodeTaint.Effect effect = 3; + */ + public int getEffectValue() { + return effect_; + } + /** + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1alpha1.NodeTaint.Effect effect = 3; + */ + public com.google.container.v1alpha1.NodeTaint.Effect getEffect() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.NodeTaint.Effect result = com.google.container.v1alpha1.NodeTaint.Effect.valueOf(effect_); + return result == null ? com.google.container.v1alpha1.NodeTaint.Effect.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (effect_ != com.google.container.v1alpha1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + output.writeEnum(3, effect_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (effect_ != com.google.container.v1alpha1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, effect_); + } + 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.container.v1alpha1.NodeTaint)) { + return super.equals(obj); + } + com.google.container.v1alpha1.NodeTaint other = (com.google.container.v1alpha1.NodeTaint) obj; + + boolean result = true; + result = result && getKey() + .equals(other.getKey()); + result = result && getValue() + .equals(other.getValue()); + result = result && effect_ == other.effect_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + EFFECT_FIELD_NUMBER; + hash = (53 * hash) + effect_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.NodeTaint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodeTaint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeTaint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodeTaint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeTaint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.NodeTaint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeTaint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodeTaint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeTaint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodeTaint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.NodeTaint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.NodeTaint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.NodeTaint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
+   * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.NodeTaint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.NodeTaint) + com.google.container.v1alpha1.NodeTaintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.NodeTaint.class, com.google.container.v1alpha1.NodeTaint.Builder.class); + } + + // Construct using com.google.container.v1alpha1.NodeTaint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + effect_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_NodeTaint_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeTaint getDefaultInstanceForType() { + return com.google.container.v1alpha1.NodeTaint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeTaint build() { + com.google.container.v1alpha1.NodeTaint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeTaint buildPartial() { + com.google.container.v1alpha1.NodeTaint result = new com.google.container.v1alpha1.NodeTaint(this); + result.key_ = key_; + result.value_ = value_; + result.effect_ = effect_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.NodeTaint) { + return mergeFrom((com.google.container.v1alpha1.NodeTaint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.NodeTaint other) { + if (other == com.google.container.v1alpha1.NodeTaint.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.effect_ != 0) { + setEffectValue(other.getEffectValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.NodeTaint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.NodeTaint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private int effect_ = 0; + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1alpha1.NodeTaint.Effect effect = 3; + */ + public int getEffectValue() { + return effect_; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1alpha1.NodeTaint.Effect effect = 3; + */ + public Builder setEffectValue(int value) { + effect_ = value; + onChanged(); + return this; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1alpha1.NodeTaint.Effect effect = 3; + */ + public com.google.container.v1alpha1.NodeTaint.Effect getEffect() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.NodeTaint.Effect result = com.google.container.v1alpha1.NodeTaint.Effect.valueOf(effect_); + return result == null ? com.google.container.v1alpha1.NodeTaint.Effect.UNRECOGNIZED : result; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1alpha1.NodeTaint.Effect effect = 3; + */ + public Builder setEffect(com.google.container.v1alpha1.NodeTaint.Effect value) { + if (value == null) { + throw new NullPointerException(); + } + + effect_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1alpha1.NodeTaint.Effect effect = 3; + */ + public Builder clearEffect() { + + effect_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.NodeTaint) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.NodeTaint) + private static final com.google.container.v1alpha1.NodeTaint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.NodeTaint(); + } + + public static com.google.container.v1alpha1.NodeTaint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeTaint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeTaint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.NodeTaint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeTaintOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeTaintOrBuilder.java new file mode 100644 index 000000000000..81848e723105 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/NodeTaintOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface NodeTaintOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.NodeTaint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + */ + java.lang.String getKey(); + /** + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + */ + java.lang.String getValue(); + /** + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1alpha1.NodeTaint.Effect effect = 3; + */ + int getEffectValue(); + /** + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1alpha1.NodeTaint.Effect effect = 3; + */ + com.google.container.v1alpha1.NodeTaint.Effect getEffect(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/Operation.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/Operation.java new file mode 100644 index 000000000000..a40b801771ce --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/Operation.java @@ -0,0 +1,3771 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * This operation resource represents operations that may have happened or are
+ * happening on the cluster. All fields are output only.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.Operation} + */ +public final class Operation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.Operation) + OperationOrBuilder { +private static final long serialVersionUID = 0L; + // Use Operation.newBuilder() to construct. + private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Operation() { + name_ = ""; + zone_ = ""; + operationType_ = 0; + status_ = 0; + detail_ = ""; + statusMessage_ = ""; + selfLink_ = ""; + targetLink_ = ""; + location_ = ""; + startTime_ = ""; + endTime_ = ""; + clusterConditions_ = java.util.Collections.emptyList(); + nodepoolConditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Operation( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + operationType_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + selfLink_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + targetLink_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + detail_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + startTime_ = s; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + endTime_ = s; + break; + } + case 98: { + com.google.container.v1alpha1.OperationProgress.Builder subBuilder = null; + if (progress_ != null) { + subBuilder = progress_.toBuilder(); + } + progress_ = input.readMessage(com.google.container.v1alpha1.OperationProgress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progress_); + progress_ = subBuilder.buildPartial(); + } + + break; + } + case 106: { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + clusterConditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + clusterConditions_.add( + input.readMessage(com.google.container.v1alpha1.StatusCondition.parser(), extensionRegistry)); + break; + } + case 114: { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + nodepoolConditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00002000; + } + nodepoolConditions_.add( + input.readMessage(com.google.container.v1alpha1.StatusCondition.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + } + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.Operation.class, com.google.container.v1alpha1.Operation.Builder.class); + } + + /** + *
+   * Current status of the operation.
+   * 
+ * + * Protobuf enum {@code google.container.v1alpha1.Operation.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + *
+     * The operation has been created.
+     * 
+ * + * PENDING = 1; + */ + PENDING(1), + /** + *
+     * The operation is currently running.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + *
+     * The operation is done, either cancelled or completed.
+     * 
+ * + * DONE = 3; + */ + DONE(3), + /** + *
+     * The operation is aborting.
+     * 
+ * + * ABORTING = 4; + */ + ABORTING(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+     * The operation has been created.
+     * 
+ * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + *
+     * The operation is currently running.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + *
+     * The operation is done, either cancelled or completed.
+     * 
+ * + * DONE = 3; + */ + public static final int DONE_VALUE = 3; + /** + *
+     * The operation is aborting.
+     * 
+ * + * ABORTING = 4; + */ + public static final int ABORTING_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return PENDING; + case 2: return RUNNING; + case 3: return DONE; + case 4: return ABORTING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1alpha1.Operation.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1alpha1.Operation.Status) + } + + /** + *
+   * Operation type.
+   * 
+ * + * Protobuf enum {@code google.container.v1alpha1.Operation.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + *
+     * Cluster create.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + CREATE_CLUSTER(1), + /** + *
+     * Cluster delete.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + DELETE_CLUSTER(2), + /** + *
+     * A master upgrade.
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + UPGRADE_MASTER(3), + /** + *
+     * A node upgrade.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + UPGRADE_NODES(4), + /** + *
+     * Cluster repair.
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + REPAIR_CLUSTER(5), + /** + *
+     * Cluster update.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + UPDATE_CLUSTER(6), + /** + *
+     * Node pool create.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + CREATE_NODE_POOL(7), + /** + *
+     * Node pool delete.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + DELETE_NODE_POOL(8), + /** + *
+     * Set node pool management.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + SET_NODE_POOL_MANAGEMENT(9), + /** + *
+     * Automatic node pool repair.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + AUTO_REPAIR_NODES(10), + /** + *
+     * Automatic node upgrade.
+     * 
+ * + * AUTO_UPGRADE_NODES = 11; + */ + AUTO_UPGRADE_NODES(11), + /** + *
+     * Set labels.
+     * 
+ * + * SET_LABELS = 12; + */ + SET_LABELS(12), + /** + *
+     * Set/generate master auth materials
+     * 
+ * + * SET_MASTER_AUTH = 13; + */ + SET_MASTER_AUTH(13), + /** + *
+     * Set node pool size.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + SET_NODE_POOL_SIZE(14), + /** + *
+     * Updates network policy for a cluster.
+     * 
+ * + * SET_NETWORK_POLICY = 15; + */ + SET_NETWORK_POLICY(15), + /** + *
+     * Set the maintenance policy.
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16; + */ + SET_MAINTENANCE_POLICY(16), + /** + *
+     * Update cluster IP allocation policy.
+     * 
+ * + * UPDATE_IP_ALLOCATION_POLICY = 17; + */ + UPDATE_IP_ALLOCATION_POLICY(17), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Cluster create.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + public static final int CREATE_CLUSTER_VALUE = 1; + /** + *
+     * Cluster delete.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + public static final int DELETE_CLUSTER_VALUE = 2; + /** + *
+     * A master upgrade.
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + public static final int UPGRADE_MASTER_VALUE = 3; + /** + *
+     * A node upgrade.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + public static final int UPGRADE_NODES_VALUE = 4; + /** + *
+     * Cluster repair.
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + public static final int REPAIR_CLUSTER_VALUE = 5; + /** + *
+     * Cluster update.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + public static final int UPDATE_CLUSTER_VALUE = 6; + /** + *
+     * Node pool create.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + public static final int CREATE_NODE_POOL_VALUE = 7; + /** + *
+     * Node pool delete.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + public static final int DELETE_NODE_POOL_VALUE = 8; + /** + *
+     * Set node pool management.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; + /** + *
+     * Automatic node pool repair.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + public static final int AUTO_REPAIR_NODES_VALUE = 10; + /** + *
+     * Automatic node upgrade.
+     * 
+ * + * AUTO_UPGRADE_NODES = 11; + */ + public static final int AUTO_UPGRADE_NODES_VALUE = 11; + /** + *
+     * Set labels.
+     * 
+ * + * SET_LABELS = 12; + */ + public static final int SET_LABELS_VALUE = 12; + /** + *
+     * Set/generate master auth materials
+     * 
+ * + * SET_MASTER_AUTH = 13; + */ + public static final int SET_MASTER_AUTH_VALUE = 13; + /** + *
+     * Set node pool size.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + public static final int SET_NODE_POOL_SIZE_VALUE = 14; + /** + *
+     * Updates network policy for a cluster.
+     * 
+ * + * SET_NETWORK_POLICY = 15; + */ + public static final int SET_NETWORK_POLICY_VALUE = 15; + /** + *
+     * Set the maintenance policy.
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16; + */ + public static final int SET_MAINTENANCE_POLICY_VALUE = 16; + /** + *
+     * Update cluster IP allocation policy.
+     * 
+ * + * UPDATE_IP_ALLOCATION_POLICY = 17; + */ + public static final int UPDATE_IP_ALLOCATION_POLICY_VALUE = 17; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type forNumber(int value) { + switch (value) { + case 0: return TYPE_UNSPECIFIED; + case 1: return CREATE_CLUSTER; + case 2: return DELETE_CLUSTER; + case 3: return UPGRADE_MASTER; + case 4: return UPGRADE_NODES; + case 5: return REPAIR_CLUSTER; + case 6: return UPDATE_CLUSTER; + case 7: return CREATE_NODE_POOL; + case 8: return DELETE_NODE_POOL; + case 9: return SET_NODE_POOL_MANAGEMENT; + case 10: return AUTO_REPAIR_NODES; + case 11: return AUTO_UPGRADE_NODES; + case 12: return SET_LABELS; + case 13: return SET_MASTER_AUTH; + case 14: return SET_NODE_POOL_SIZE; + case 15: return SET_NETWORK_POLICY; + case 16: return SET_MAINTENANCE_POLICY; + case 17: return UPDATE_IP_ALLOCATION_POLICY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1alpha1.Operation.getDescriptor().getEnumTypes().get(1); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1alpha1.Operation.Type) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + */ + 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 server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + */ + 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 ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation
+   * is taking place.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation
+   * is taking place.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 3; + private int operationType_; + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1alpha1.Operation.Type operation_type = 3; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1alpha1.Operation.Type operation_type = 3; + */ + public com.google.container.v1alpha1.Operation.Type getOperationType() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.Operation.Type result = com.google.container.v1alpha1.Operation.Type.valueOf(operationType_); + return result == null ? com.google.container.v1alpha1.Operation.Type.UNRECOGNIZED : result; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_; + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1alpha1.Operation.Status status = 4; + */ + public int getStatusValue() { + return status_; + } + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1alpha1.Operation.Status status = 4; + */ + public com.google.container.v1alpha1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.Operation.Status result = com.google.container.v1alpha1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1alpha1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int DETAIL_FIELD_NUMBER = 8; + private volatile java.lang.Object detail_; + /** + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } + } + /** + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + */ + public com.google.protobuf.ByteString + getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object statusMessage_; + /** + *
+   * If an error has occurred, a textual description of the error.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + *
+   * If an error has occurred, a textual description of the error.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELF_LINK_FIELD_NUMBER = 6; + private volatile java.lang.Object selfLink_; + /** + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_LINK_FIELD_NUMBER = 7; + private volatile java.lang.Object targetLink_; + /** + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + */ + public java.lang.String getTargetLink() { + java.lang.Object ref = targetLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLink_ = s; + return s; + } + } + /** + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + */ + public com.google.protobuf.ByteString + getTargetLinkBytes() { + java.lang.Object ref = targetLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 9; + private volatile java.lang.Object location_; + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 10; + private volatile java.lang.Object startTime_; + /** + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } + } + /** + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + */ + public com.google.protobuf.ByteString + getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int END_TIME_FIELD_NUMBER = 11; + private volatile java.lang.Object endTime_; + /** + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + */ + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } + } + /** + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + */ + public com.google.protobuf.ByteString + getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_FIELD_NUMBER = 12; + private com.google.container.v1alpha1.OperationProgress progress_; + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public boolean hasProgress() { + return progress_ != null; + } + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public com.google.container.v1alpha1.OperationProgress getProgress() { + return progress_ == null ? com.google.container.v1alpha1.OperationProgress.getDefaultInstance() : progress_; + } + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public com.google.container.v1alpha1.OperationProgressOrBuilder getProgressOrBuilder() { + return getProgress(); + } + + public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; + private java.util.List clusterConditions_; + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public java.util.List getClusterConditionsList() { + return clusterConditions_; + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public java.util.List + getClusterConditionsOrBuilderList() { + return clusterConditions_; + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public int getClusterConditionsCount() { + return clusterConditions_.size(); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1alpha1.StatusCondition getClusterConditions(int index) { + return clusterConditions_.get(index); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1alpha1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index) { + return clusterConditions_.get(index); + } + + public static final int NODEPOOL_CONDITIONS_FIELD_NUMBER = 14; + private java.util.List nodepoolConditions_; + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List getNodepoolConditionsList() { + return nodepoolConditions_; + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List + getNodepoolConditionsOrBuilderList() { + return nodepoolConditions_; + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public int getNodepoolConditionsCount() { + return nodepoolConditions_.size(); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1alpha1.StatusCondition getNodepoolConditions(int index) { + return nodepoolConditions_.get(index); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1alpha1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index) { + return nodepoolConditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (operationType_ != com.google.container.v1alpha1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, operationType_); + } + if (status_ != com.google.container.v1alpha1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(4, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (!getSelfLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selfLink_); + } + if (!getTargetLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetLink_); + } + if (!getDetailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_); + } + if (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_); + } + if (!getStartTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); + } + if (!getEndTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_); + } + if (progress_ != null) { + output.writeMessage(12, getProgress()); + } + for (int i = 0; i < clusterConditions_.size(); i++) { + output.writeMessage(13, clusterConditions_.get(i)); + } + for (int i = 0; i < nodepoolConditions_.size(); i++) { + output.writeMessage(14, nodepoolConditions_.get(i)); + } + 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 (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (operationType_ != com.google.container.v1alpha1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, operationType_); + } + if (status_ != com.google.container.v1alpha1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (!getSelfLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selfLink_); + } + if (!getTargetLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetLink_); + } + if (!getDetailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_); + } + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_); + } + if (!getStartTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); + } + if (!getEndTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_); + } + if (progress_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getProgress()); + } + for (int i = 0; i < clusterConditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, clusterConditions_.get(i)); + } + for (int i = 0; i < nodepoolConditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, nodepoolConditions_.get(i)); + } + 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.container.v1alpha1.Operation)) { + return super.equals(obj); + } + com.google.container.v1alpha1.Operation other = (com.google.container.v1alpha1.Operation) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getZone() + .equals(other.getZone()); + result = result && operationType_ == other.operationType_; + result = result && status_ == other.status_; + result = result && getDetail() + .equals(other.getDetail()); + result = result && getStatusMessage() + .equals(other.getStatusMessage()); + result = result && getSelfLink() + .equals(other.getSelfLink()); + result = result && getTargetLink() + .equals(other.getTargetLink()); + result = result && getLocation() + .equals(other.getLocation()); + result = result && getStartTime() + .equals(other.getStartTime()); + result = result && getEndTime() + .equals(other.getEndTime()); + result = result && (hasProgress() == other.hasProgress()); + if (hasProgress()) { + result = result && getProgress() + .equals(other.getProgress()); + } + result = result && getClusterConditionsList() + .equals(other.getClusterConditionsList()); + result = result && getNodepoolConditionsList() + .equals(other.getNodepoolConditionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + operationType_; + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getDetail().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + TARGET_LINK_FIELD_NUMBER; + hash = (53 * hash) + getTargetLink().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + if (hasProgress()) { + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + getProgress().hashCode(); + } + if (getClusterConditionsCount() > 0) { + hash = (37 * hash) + CLUSTER_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getClusterConditionsList().hashCode(); + } + if (getNodepoolConditionsCount() > 0) { + hash = (37 * hash) + NODEPOOL_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getNodepoolConditionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.Operation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.Operation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.Operation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.Operation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.Operation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.Operation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.Operation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.Operation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.Operation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.Operation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.Operation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.Operation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.Operation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * This operation resource represents operations that may have happened or are
+   * happening on the cluster. All fields are output only.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.Operation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.Operation) + com.google.container.v1alpha1.OperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.Operation.class, com.google.container.v1alpha1.Operation.Builder.class); + } + + // Construct using com.google.container.v1alpha1.Operation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getClusterConditionsFieldBuilder(); + getNodepoolConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + zone_ = ""; + + operationType_ = 0; + + status_ = 0; + + detail_ = ""; + + statusMessage_ = ""; + + selfLink_ = ""; + + targetLink_ = ""; + + location_ = ""; + + startTime_ = ""; + + endTime_ = ""; + + if (progressBuilder_ == null) { + progress_ = null; + } else { + progress_ = null; + progressBuilder_ = null; + } + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + } else { + clusterConditionsBuilder_.clear(); + } + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + } else { + nodepoolConditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_Operation_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.Operation getDefaultInstanceForType() { + return com.google.container.v1alpha1.Operation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.Operation build() { + com.google.container.v1alpha1.Operation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.Operation buildPartial() { + com.google.container.v1alpha1.Operation result = new com.google.container.v1alpha1.Operation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.zone_ = zone_; + result.operationType_ = operationType_; + result.status_ = status_; + result.detail_ = detail_; + result.statusMessage_ = statusMessage_; + result.selfLink_ = selfLink_; + result.targetLink_ = targetLink_; + result.location_ = location_; + result.startTime_ = startTime_; + result.endTime_ = endTime_; + if (progressBuilder_ == null) { + result.progress_ = progress_; + } else { + result.progress_ = progressBuilder_.build(); + } + if (clusterConditionsBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.clusterConditions_ = clusterConditions_; + } else { + result.clusterConditions_ = clusterConditionsBuilder_.build(); + } + if (nodepoolConditionsBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.nodepoolConditions_ = nodepoolConditions_; + } else { + result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.Operation) { + return mergeFrom((com.google.container.v1alpha1.Operation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.Operation other) { + if (other == com.google.container.v1alpha1.Operation.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getTargetLink().isEmpty()) { + targetLink_ = other.targetLink_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + onChanged(); + } + if (!other.getEndTime().isEmpty()) { + endTime_ = other.endTime_; + onChanged(); + } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } + if (clusterConditionsBuilder_ == null) { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditions_.isEmpty()) { + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureClusterConditionsIsMutable(); + clusterConditions_.addAll(other.clusterConditions_); + } + onChanged(); + } + } else { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditionsBuilder_.isEmpty()) { + clusterConditionsBuilder_.dispose(); + clusterConditionsBuilder_ = null; + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00001000); + clusterConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClusterConditionsFieldBuilder() : null; + } else { + clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); + } + } + } + if (nodepoolConditionsBuilder_ == null) { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditions_.isEmpty()) { + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.addAll(other.nodepoolConditions_); + } + onChanged(); + } + } else { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditionsBuilder_.isEmpty()) { + nodepoolConditionsBuilder_.dispose(); + nodepoolConditionsBuilder_ = null; + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00002000); + nodepoolConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodepoolConditionsFieldBuilder() : null; + } else { + nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.Operation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.Operation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + */ + 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 server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + */ + 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 server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + */ + 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 zone_ = ""; + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation
+     * is taking place.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation
+     * is taking place.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation
+     * is taking place.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation
+     * is taking place.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation
+     * is taking place.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private int operationType_ = 0; + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1alpha1.Operation.Type operation_type = 3; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1alpha1.Operation.Type operation_type = 3; + */ + public Builder setOperationTypeValue(int value) { + operationType_ = value; + onChanged(); + return this; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1alpha1.Operation.Type operation_type = 3; + */ + public com.google.container.v1alpha1.Operation.Type getOperationType() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.Operation.Type result = com.google.container.v1alpha1.Operation.Type.valueOf(operationType_); + return result == null ? com.google.container.v1alpha1.Operation.Type.UNRECOGNIZED : result; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1alpha1.Operation.Type operation_type = 3; + */ + public Builder setOperationType(com.google.container.v1alpha1.Operation.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1alpha1.Operation.Type operation_type = 3; + */ + public Builder clearOperationType() { + + operationType_ = 0; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1alpha1.Operation.Status status = 4; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1alpha1.Operation.Status status = 4; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1alpha1.Operation.Status status = 4; + */ + public com.google.container.v1alpha1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.Operation.Status result = com.google.container.v1alpha1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1alpha1.Operation.Status.UNRECOGNIZED : result; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1alpha1.Operation.Status status = 4; + */ + public Builder setStatus(com.google.container.v1alpha1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1alpha1.Operation.Status status = 4; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object detail_ = ""; + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + */ + public com.google.protobuf.ByteString + getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + */ + public Builder setDetail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + detail_ = value; + onChanged(); + return this; + } + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + */ + public Builder clearDetail() { + + detail_ = getDefaultInstance().getDetail(); + onChanged(); + return this; + } + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + */ + public Builder setDetailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + detail_ = value; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * If an error has occurred, a textual description of the error.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If an error has occurred, a textual description of the error.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If an error has occurred, a textual description of the error.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + *
+     * If an error has occurred, a textual description of the error.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + *
+     * If an error has occurred, a textual description of the error.
+     * Deprecated, use the field conditions instead.
+     * 
+ * + * string status_message = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + */ + public Builder setSelfLink( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + */ + public Builder setSelfLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetLink_ = ""; + /** + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + */ + public java.lang.String getTargetLink() { + java.lang.Object ref = targetLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + */ + public com.google.protobuf.ByteString + getTargetLinkBytes() { + java.lang.Object ref = targetLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + */ + public Builder setTargetLink( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetLink_ = value; + onChanged(); + return this; + } + /** + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + */ + public Builder clearTargetLink() { + + targetLink_ = getDefaultInstance().getTargetLink(); + onChanged(); + return this; + } + /** + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + */ + public Builder setTargetLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public Builder setLocation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private java.lang.Object startTime_ = ""; + /** + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + */ + public com.google.protobuf.ByteString + getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + */ + public Builder setStartTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startTime_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + */ + public Builder clearStartTime() { + + startTime_ = getDefaultInstance().getStartTime(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + */ + public Builder setStartTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object endTime_ = ""; + /** + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + */ + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + */ + public com.google.protobuf.ByteString + getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + */ + public Builder setEndTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endTime_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + */ + public Builder clearEndTime() { + + endTime_ = getDefaultInstance().getEndTime(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + */ + public Builder setEndTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endTime_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.OperationProgress progress_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.OperationProgress, com.google.container.v1alpha1.OperationProgress.Builder, com.google.container.v1alpha1.OperationProgressOrBuilder> progressBuilder_; + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public boolean hasProgress() { + return progressBuilder_ != null || progress_ != null; + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public com.google.container.v1alpha1.OperationProgress getProgress() { + if (progressBuilder_ == null) { + return progress_ == null ? com.google.container.v1alpha1.OperationProgress.getDefaultInstance() : progress_; + } else { + return progressBuilder_.getMessage(); + } + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public Builder setProgress(com.google.container.v1alpha1.OperationProgress value) { + if (progressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progress_ = value; + onChanged(); + } else { + progressBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public Builder setProgress( + com.google.container.v1alpha1.OperationProgress.Builder builderForValue) { + if (progressBuilder_ == null) { + progress_ = builderForValue.build(); + onChanged(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public Builder mergeProgress(com.google.container.v1alpha1.OperationProgress value) { + if (progressBuilder_ == null) { + if (progress_ != null) { + progress_ = + com.google.container.v1alpha1.OperationProgress.newBuilder(progress_).mergeFrom(value).buildPartial(); + } else { + progress_ = value; + } + onChanged(); + } else { + progressBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public Builder clearProgress() { + if (progressBuilder_ == null) { + progress_ = null; + onChanged(); + } else { + progress_ = null; + progressBuilder_ = null; + } + + return this; + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public com.google.container.v1alpha1.OperationProgress.Builder getProgressBuilder() { + + onChanged(); + return getProgressFieldBuilder().getBuilder(); + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + public com.google.container.v1alpha1.OperationProgressOrBuilder getProgressOrBuilder() { + if (progressBuilder_ != null) { + return progressBuilder_.getMessageOrBuilder(); + } else { + return progress_ == null ? + com.google.container.v1alpha1.OperationProgress.getDefaultInstance() : progress_; + } + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.OperationProgress, com.google.container.v1alpha1.OperationProgress.Builder, com.google.container.v1alpha1.OperationProgressOrBuilder> + getProgressFieldBuilder() { + if (progressBuilder_ == null) { + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.OperationProgress, com.google.container.v1alpha1.OperationProgress.Builder, com.google.container.v1alpha1.OperationProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); + progress_ = null; + } + return progressBuilder_; + } + + private java.util.List clusterConditions_ = + java.util.Collections.emptyList(); + private void ensureClusterConditionsIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + clusterConditions_ = new java.util.ArrayList(clusterConditions_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder> clusterConditionsBuilder_; + + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public java.util.List getClusterConditionsList() { + if (clusterConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusterConditions_); + } else { + return clusterConditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public int getClusterConditionsCount() { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.size(); + } else { + return clusterConditionsBuilder_.getCount(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1alpha1.StatusCondition getClusterConditions(int index) { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.get(index); + } else { + return clusterConditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public Builder setClusterConditions( + int index, com.google.container.v1alpha1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.set(index, value); + onChanged(); + } else { + clusterConditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public Builder setClusterConditions( + int index, com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public Builder addClusterConditions(com.google.container.v1alpha1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.add(value); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public Builder addClusterConditions( + int index, com.google.container.v1alpha1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.add(index, value); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public Builder addClusterConditions( + com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.add(builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public Builder addClusterConditions( + int index, com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public Builder addAllClusterConditions( + java.lang.Iterable values) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clusterConditions_); + onChanged(); + } else { + clusterConditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public Builder clearClusterConditions() { + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + clusterConditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public Builder removeClusterConditions(int index) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.remove(index); + onChanged(); + } else { + clusterConditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1alpha1.StatusCondition.Builder getClusterConditionsBuilder( + int index) { + return getClusterConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1alpha1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index) { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.get(index); } else { + return clusterConditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public java.util.List + getClusterConditionsOrBuilderList() { + if (clusterConditionsBuilder_ != null) { + return clusterConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusterConditions_); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1alpha1.StatusCondition.Builder addClusterConditionsBuilder() { + return getClusterConditionsFieldBuilder().addBuilder( + com.google.container.v1alpha1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1alpha1.StatusCondition.Builder addClusterConditionsBuilder( + int index) { + return getClusterConditionsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + public java.util.List + getClusterConditionsBuilderList() { + return getClusterConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder> + getClusterConditionsFieldBuilder() { + if (clusterConditionsBuilder_ == null) { + clusterConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder>( + clusterConditions_, + ((bitField0_ & 0x00001000) == 0x00001000), + getParentForChildren(), + isClean()); + clusterConditions_ = null; + } + return clusterConditionsBuilder_; + } + + private java.util.List nodepoolConditions_ = + java.util.Collections.emptyList(); + private void ensureNodepoolConditionsIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + nodepoolConditions_ = new java.util.ArrayList(nodepoolConditions_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder> nodepoolConditionsBuilder_; + + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List getNodepoolConditionsList() { + if (nodepoolConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodepoolConditions_); + } else { + return nodepoolConditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public int getNodepoolConditionsCount() { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.size(); + } else { + return nodepoolConditionsBuilder_.getCount(); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1alpha1.StatusCondition getNodepoolConditions(int index) { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.get(index); + } else { + return nodepoolConditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public Builder setNodepoolConditions( + int index, com.google.container.v1alpha1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.set(index, value); + onChanged(); + } else { + nodepoolConditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public Builder setNodepoolConditions( + int index, com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public Builder addNodepoolConditions(com.google.container.v1alpha1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(value); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public Builder addNodepoolConditions( + int index, com.google.container.v1alpha1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(index, value); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public Builder addNodepoolConditions( + com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public Builder addNodepoolConditions( + int index, com.google.container.v1alpha1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public Builder addAllNodepoolConditions( + java.lang.Iterable values) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodepoolConditions_); + onChanged(); + } else { + nodepoolConditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public Builder clearNodepoolConditions() { + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + nodepoolConditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public Builder removeNodepoolConditions(int index) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.remove(index); + onChanged(); + } else { + nodepoolConditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1alpha1.StatusCondition.Builder getNodepoolConditionsBuilder( + int index) { + return getNodepoolConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1alpha1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index) { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.get(index); } else { + return nodepoolConditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List + getNodepoolConditionsOrBuilderList() { + if (nodepoolConditionsBuilder_ != null) { + return nodepoolConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodepoolConditions_); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1alpha1.StatusCondition.Builder addNodepoolConditionsBuilder() { + return getNodepoolConditionsFieldBuilder().addBuilder( + com.google.container.v1alpha1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1alpha1.StatusCondition.Builder addNodepoolConditionsBuilder( + int index) { + return getNodepoolConditionsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List + getNodepoolConditionsBuilderList() { + return getNodepoolConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder> + getNodepoolConditionsFieldBuilder() { + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.StatusCondition, com.google.container.v1alpha1.StatusCondition.Builder, com.google.container.v1alpha1.StatusConditionOrBuilder>( + nodepoolConditions_, + ((bitField0_ & 0x00002000) == 0x00002000), + getParentForChildren(), + isClean()); + nodepoolConditions_ = null; + } + return nodepoolConditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.Operation) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.Operation) + private static final com.google.container.v1alpha1.Operation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.Operation(); + } + + public static com.google.container.v1alpha1.Operation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Operation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Operation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.Operation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationName.java new file mode 100644 index 000000000000..d8e89f543876 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationName.java @@ -0,0 +1,212 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1alpha1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class OperationName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/operations/{operation}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + private final String operation; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOperation() { + return operation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private OperationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + operation = Preconditions.checkNotNull(builder.getOperation()); + } + + public static OperationName of(String project, String location, String operation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOperation(operation) + .build(); + } + + public static String format(String project, String location, String operation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOperation(operation) + .build() + .toString(); + } + + public static OperationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "OperationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("operation")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (OperationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldMapBuilder.put("operation", operation); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location, "operation", operation); + } + + /** Builder for OperationName. */ + public static class Builder { + + private String project; + private String location; + private String operation; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOperation() { + return operation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOperation(String operation) { + this.operation = operation; + return this; + } + + private Builder() { + } + + private Builder(OperationName operationName) { + project = operationName.project; + location = operationName.location; + operation = operationName.operation; + } + + public OperationName build() { + return new OperationName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof OperationName) { + OperationName that = (OperationName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)) + && (this.operation.equals(that.operation)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + h *= 1000003; + h ^= operation.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationOrBuilder.java new file mode 100644 index 000000000000..75c6774af187 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationOrBuilder.java @@ -0,0 +1,336 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface OperationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.Operation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation
+   * is taking place.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation
+   * is taking place.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1alpha1.Operation.Type operation_type = 3; + */ + int getOperationTypeValue(); + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1alpha1.Operation.Type operation_type = 3; + */ + com.google.container.v1alpha1.Operation.Type getOperationType(); + + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1alpha1.Operation.Status status = 4; + */ + int getStatusValue(); + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1alpha1.Operation.Status status = 4; + */ + com.google.container.v1alpha1.Operation.Status getStatus(); + + /** + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + */ + java.lang.String getDetail(); + /** + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + */ + com.google.protobuf.ByteString + getDetailBytes(); + + /** + *
+   * If an error has occurred, a textual description of the error.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 5 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getStatusMessage(); + /** + *
+   * If an error has occurred, a textual description of the error.
+   * Deprecated, use the field conditions instead.
+   * 
+ * + * string status_message = 5 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getStatusMessageBytes(); + + /** + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + */ + java.lang.String getSelfLink(); + /** + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + */ + com.google.protobuf.ByteString + getSelfLinkBytes(); + + /** + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + */ + java.lang.String getTargetLink(); + /** + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + */ + com.google.protobuf.ByteString + getTargetLinkBytes(); + + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + java.lang.String getLocation(); + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + com.google.protobuf.ByteString + getLocationBytes(); + + /** + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + */ + java.lang.String getStartTime(); + /** + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + */ + com.google.protobuf.ByteString + getStartTimeBytes(); + + /** + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + */ + java.lang.String getEndTime(); + /** + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + */ + com.google.protobuf.ByteString + getEndTimeBytes(); + + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + boolean hasProgress(); + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + com.google.container.v1alpha1.OperationProgress getProgress(); + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1alpha1.OperationProgress progress = 12; + */ + com.google.container.v1alpha1.OperationProgressOrBuilder getProgressOrBuilder(); + + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + java.util.List + getClusterConditionsList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + com.google.container.v1alpha1.StatusCondition getClusterConditions(int index); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + int getClusterConditionsCount(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + java.util.List + getClusterConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition cluster_conditions = 13; + */ + com.google.container.v1alpha1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index); + + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + java.util.List + getNodepoolConditionsList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + com.google.container.v1alpha1.StatusCondition getNodepoolConditions(int index); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + int getNodepoolConditionsCount(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + java.util.List + getNodepoolConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1alpha1.StatusCondition nodepool_conditions = 14; + */ + com.google.container.v1alpha1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationProgress.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationProgress.java new file mode 100644 index 000000000000..70f17bc3fc2d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationProgress.java @@ -0,0 +1,2765 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Information about operation (or operation stage) progress.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.OperationProgress} + */ +public final class OperationProgress extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.OperationProgress) + OperationProgressOrBuilder { +private static final long serialVersionUID = 0L; + // Use OperationProgress.newBuilder() to construct. + private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OperationProgress() { + name_ = ""; + status_ = 0; + metrics_ = java.util.Collections.emptyList(); + stages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OperationProgress( + 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 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + metrics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + metrics_.add( + input.readMessage(com.google.container.v1alpha1.OperationProgress.Metric.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + stages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + stages_.add( + input.readMessage(com.google.container.v1alpha1.OperationProgress.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.OperationProgress.class, com.google.container.v1alpha1.OperationProgress.Builder.class); + } + + public interface MetricOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.OperationProgress.Metric) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Metric name, required.
+     * e.g., "nodes total", "percent done"
+     * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+     * Metric name, required.
+     * e.g., "nodes total", "percent done"
+     * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + */ + long getIntValue(); + + /** + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + */ + double getDoubleValue(); + + /** + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + */ + java.lang.String getStringValue(); + /** + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + */ + com.google.protobuf.ByteString + getStringValueBytes(); + + public com.google.container.v1alpha1.OperationProgress.Metric.ValueCase getValueCase(); + } + /** + *
+   * Progress metric is (string, int|float|string) pair.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.OperationProgress.Metric} + */ + public static final class Metric extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.OperationProgress.Metric) + MetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metric.newBuilder() to construct. + private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Metric() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Metric( + 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 16: { + valueCase_ = 2; + value_ = input.readInt64(); + break; + } + case 25: { + valueCase_ = 3; + value_ = input.readDouble(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 4; + value_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.OperationProgress.Metric.class, com.google.container.v1alpha1.OperationProgress.Metric.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + INT_VALUE(2), + DOUBLE_VALUE(3), + STRING_VALUE(4), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 2: return INT_VALUE; + case 3: return DOUBLE_VALUE; + case 4: return STRING_VALUE; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Metric name, required.
+     * e.g., "nodes total", "percent done"
+     * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+     * Metric name, required.
+     * e.g., "nodes total", "percent done"
+     * 
+ * + * string name = 1; + */ + 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 INT_VALUE_FIELD_NUMBER = 2; + /** + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + */ + public long getIntValue() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; + /** + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + */ + public double getDoubleValue() { + if (valueCase_ == 3) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 4; + /** + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 4) { + value_ = s; + } + return s; + } + } + /** + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 4) { + value_ = 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 (valueCase_ == 2) { + output.writeInt64( + 2, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 3) { + output.writeDouble( + 3, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); + } + 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 (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 2, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 3, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); + } + 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.container.v1alpha1.OperationProgress.Metric)) { + return super.equals(obj); + } + com.google.container.v1alpha1.OperationProgress.Metric other = (com.google.container.v1alpha1.OperationProgress.Metric) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getValueCase().equals( + other.getValueCase()); + if (!result) return false; + switch (valueCase_) { + case 2: + result = result && (getIntValue() + == other.getIntValue()); + break; + case 3: + result = result && ( + java.lang.Double.doubleToLongBits(getDoubleValue()) + == java.lang.Double.doubleToLongBits( + other.getDoubleValue())); + break; + case 4: + result = result && getStringValue() + .equals(other.getStringValue()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + switch (valueCase_) { + case 2: + hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIntValue()); + break; + case 3: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 4: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.OperationProgress.Metric parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.OperationProgress.Metric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.OperationProgress.Metric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Progress metric is (string, int|float|string) pair.
+     * 
+ * + * Protobuf type {@code google.container.v1alpha1.OperationProgress.Metric} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.OperationProgress.Metric) + com.google.container.v1alpha1.OperationProgress.MetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.OperationProgress.Metric.class, com.google.container.v1alpha1.OperationProgress.Metric.Builder.class); + } + + // Construct using com.google.container.v1alpha1.OperationProgress.Metric.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.OperationProgress.Metric getDefaultInstanceForType() { + return com.google.container.v1alpha1.OperationProgress.Metric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.OperationProgress.Metric build() { + com.google.container.v1alpha1.OperationProgress.Metric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.OperationProgress.Metric buildPartial() { + com.google.container.v1alpha1.OperationProgress.Metric result = new com.google.container.v1alpha1.OperationProgress.Metric(this); + result.name_ = name_; + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.OperationProgress.Metric) { + return mergeFrom((com.google.container.v1alpha1.OperationProgress.Metric)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.OperationProgress.Metric other) { + if (other == com.google.container.v1alpha1.OperationProgress.Metric.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + switch (other.getValueCase()) { + case INT_VALUE: { + setIntValue(other.getIntValue()); + break; + } + case DOUBLE_VALUE: { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: { + valueCase_ = 4; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.OperationProgress.Metric parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.OperationProgress.Metric) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private java.lang.Object name_ = ""; + /** + *
+       * Metric name, required.
+       * e.g., "nodes total", "percent done"
+       * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+       * Metric name, required.
+       * e.g., "nodes total", "percent done"
+       * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+       * Metric name, required.
+       * e.g., "nodes total", "percent done"
+       * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Metric name, required.
+       * e.g., "nodes total", "percent done"
+       * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Metric name, required.
+       * e.g., "nodes total", "percent done"
+       * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + /** + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + */ + public long getIntValue() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + */ + public Builder setIntValue(long value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + */ + public Builder clearIntValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + */ + public double getDoubleValue() { + if (valueCase_ == 3) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + */ + public Builder setDoubleValue(double value) { + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + */ + public Builder clearDoubleValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 4) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 4) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + */ + public Builder setStringValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + */ + public Builder clearStringValue() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + */ + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.OperationProgress.Metric) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.OperationProgress.Metric) + private static final com.google.container.v1alpha1.OperationProgress.Metric DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.OperationProgress.Metric(); + } + + public static com.google.container.v1alpha1.OperationProgress.Metric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Metric(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.OperationProgress.Metric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + */ + 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 STATUS_FIELD_NUMBER = 2; + private int status_; + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1alpha1.Operation.Status status = 2; + */ + public int getStatusValue() { + return status_; + } + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1alpha1.Operation.Status status = 2; + */ + public com.google.container.v1alpha1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.Operation.Status result = com.google.container.v1alpha1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1alpha1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int METRICS_FIELD_NUMBER = 3; + private java.util.List metrics_; + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public java.util.List getMetricsList() { + return metrics_; + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public int getMetricsCount() { + return metrics_.size(); + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1alpha1.OperationProgress.Metric getMetrics(int index) { + return metrics_.get(index); + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1alpha1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + return metrics_.get(index); + } + + public static final int STAGES_FIELD_NUMBER = 4; + private java.util.List stages_; + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public java.util.List getStagesList() { + return stages_; + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public java.util.List + getStagesOrBuilderList() { + return stages_; + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public int getStagesCount() { + return stages_.size(); + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public com.google.container.v1alpha1.OperationProgress getStages(int index) { + return stages_.get(index); + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public com.google.container.v1alpha1.OperationProgressOrBuilder getStagesOrBuilder( + int index) { + return stages_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (status_ != com.google.container.v1alpha1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(2, status_); + } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(3, metrics_.get(i)); + } + for (int i = 0; i < stages_.size(); i++) { + output.writeMessage(4, stages_.get(i)); + } + 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 (status_ != com.google.container.v1alpha1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); + } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, metrics_.get(i)); + } + for (int i = 0; i < stages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, stages_.get(i)); + } + 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.container.v1alpha1.OperationProgress)) { + return super.equals(obj); + } + com.google.container.v1alpha1.OperationProgress other = (com.google.container.v1alpha1.OperationProgress) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && status_ == other.status_; + result = result && getMetricsList() + .equals(other.getMetricsList()); + result = result && getStagesList() + .equals(other.getStagesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (getStagesCount() > 0) { + hash = (37 * hash) + STAGES_FIELD_NUMBER; + hash = (53 * hash) + getStagesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.OperationProgress parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.OperationProgress parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.OperationProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.OperationProgress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.OperationProgress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.OperationProgress parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.OperationProgress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.OperationProgress parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.OperationProgress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.OperationProgress parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.OperationProgress parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.OperationProgress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.OperationProgress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Information about operation (or operation stage) progress.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.OperationProgress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.OperationProgress) + com.google.container.v1alpha1.OperationProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.OperationProgress.class, com.google.container.v1alpha1.OperationProgress.Builder.class); + } + + // Construct using com.google.container.v1alpha1.OperationProgress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetricsFieldBuilder(); + getStagesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + status_ = 0; + + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + metricsBuilder_.clear(); + } + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + stagesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_OperationProgress_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.OperationProgress getDefaultInstanceForType() { + return com.google.container.v1alpha1.OperationProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.OperationProgress build() { + com.google.container.v1alpha1.OperationProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.OperationProgress buildPartial() { + com.google.container.v1alpha1.OperationProgress result = new com.google.container.v1alpha1.OperationProgress(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.status_ = status_; + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (stagesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.stages_ = stages_; + } else { + result.stages_ = stagesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.OperationProgress) { + return mergeFrom((com.google.container.v1alpha1.OperationProgress)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.OperationProgress other) { + if (other == com.google.container.v1alpha1.OperationProgress.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricsFieldBuilder() : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (stagesBuilder_ == null) { + if (!other.stages_.isEmpty()) { + if (stages_.isEmpty()) { + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureStagesIsMutable(); + stages_.addAll(other.stages_); + } + onChanged(); + } + } else { + if (!other.stages_.isEmpty()) { + if (stagesBuilder_.isEmpty()) { + stagesBuilder_.dispose(); + stagesBuilder_ = null; + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000008); + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStagesFieldBuilder() : null; + } else { + stagesBuilder_.addAllMessages(other.stages_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.OperationProgress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.OperationProgress) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1alpha1.Operation.Status status = 2; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1alpha1.Operation.Status status = 2; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1alpha1.Operation.Status status = 2; + */ + public com.google.container.v1alpha1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.Operation.Status result = com.google.container.v1alpha1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1alpha1.Operation.Status.UNRECOGNIZED : result; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1alpha1.Operation.Status status = 2; + */ + public Builder setStatus(com.google.container.v1alpha1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1alpha1.Operation.Status status = 2; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + metrics_ = new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.OperationProgress.Metric, com.google.container.v1alpha1.OperationProgress.Metric.Builder, com.google.container.v1alpha1.OperationProgress.MetricOrBuilder> metricsBuilder_; + + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1alpha1.OperationProgress.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1alpha1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1alpha1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics(com.google.container.v1alpha1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1alpha1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + com.google.container.v1alpha1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1alpha1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1alpha1.OperationProgress.Metric.Builder getMetricsBuilder( + int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1alpha1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1alpha1.OperationProgress.Metric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder().addBuilder( + com.google.container.v1alpha1.OperationProgress.Metric.getDefaultInstance()); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1alpha1.OperationProgress.Metric.Builder addMetricsBuilder( + int index) { + return getMetricsFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.OperationProgress.Metric.getDefaultInstance()); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.OperationProgress.Metric, com.google.container.v1alpha1.OperationProgress.Metric.Builder, com.google.container.v1alpha1.OperationProgress.MetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.OperationProgress.Metric, com.google.container.v1alpha1.OperationProgress.Metric.Builder, com.google.container.v1alpha1.OperationProgress.MetricOrBuilder>( + metrics_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List stages_ = + java.util.Collections.emptyList(); + private void ensureStagesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + stages_ = new java.util.ArrayList(stages_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.OperationProgress, com.google.container.v1alpha1.OperationProgress.Builder, com.google.container.v1alpha1.OperationProgressOrBuilder> stagesBuilder_; + + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public java.util.List getStagesList() { + if (stagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stages_); + } else { + return stagesBuilder_.getMessageList(); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public int getStagesCount() { + if (stagesBuilder_ == null) { + return stages_.size(); + } else { + return stagesBuilder_.getCount(); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public com.google.container.v1alpha1.OperationProgress getStages(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessage(index); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1alpha1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.set(index, value); + onChanged(); + } else { + stagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1alpha1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.set(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public Builder addStages(com.google.container.v1alpha1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(value); + onChanged(); + } else { + stagesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1alpha1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(index, value); + onChanged(); + } else { + stagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public Builder addStages( + com.google.container.v1alpha1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1alpha1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public Builder addAllStages( + java.lang.Iterable values) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stages_); + onChanged(); + } else { + stagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public Builder clearStages() { + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + stagesBuilder_.clear(); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public Builder removeStages(int index) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.remove(index); + onChanged(); + } else { + stagesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public com.google.container.v1alpha1.OperationProgress.Builder getStagesBuilder( + int index) { + return getStagesFieldBuilder().getBuilder(index); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public com.google.container.v1alpha1.OperationProgressOrBuilder getStagesOrBuilder( + int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); } else { + return stagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public java.util.List + getStagesOrBuilderList() { + if (stagesBuilder_ != null) { + return stagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stages_); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public com.google.container.v1alpha1.OperationProgress.Builder addStagesBuilder() { + return getStagesFieldBuilder().addBuilder( + com.google.container.v1alpha1.OperationProgress.getDefaultInstance()); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public com.google.container.v1alpha1.OperationProgress.Builder addStagesBuilder( + int index) { + return getStagesFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.OperationProgress.getDefaultInstance()); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + public java.util.List + getStagesBuilderList() { + return getStagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.OperationProgress, com.google.container.v1alpha1.OperationProgress.Builder, com.google.container.v1alpha1.OperationProgressOrBuilder> + getStagesFieldBuilder() { + if (stagesBuilder_ == null) { + stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.OperationProgress, com.google.container.v1alpha1.OperationProgress.Builder, com.google.container.v1alpha1.OperationProgressOrBuilder>( + stages_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + stages_ = null; + } + return stagesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.OperationProgress) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.OperationProgress) + private static final com.google.container.v1alpha1.OperationProgress DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.OperationProgress(); + } + + public static com.google.container.v1alpha1.OperationProgress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationProgress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.OperationProgress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationProgressOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationProgressOrBuilder.java new file mode 100644 index 000000000000..69d0f1e173a3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/OperationProgressOrBuilder.java @@ -0,0 +1,161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface OperationProgressOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.OperationProgress) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1alpha1.Operation.Status status = 2; + */ + int getStatusValue(); + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1alpha1.Operation.Status status = 2; + */ + com.google.container.v1alpha1.Operation.Status getStatus(); + + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + java.util.List + getMetricsList(); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1alpha1.OperationProgress.Metric getMetrics(int index); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + int getMetricsCount(); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + java.util.List + getMetricsOrBuilderList(); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1alpha1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index); + + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + java.util.List + getStagesList(); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + com.google.container.v1alpha1.OperationProgress getStages(int index); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + int getStagesCount(); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + java.util.List + getStagesOrBuilderList(); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1alpha1.OperationProgress stages = 4; + */ + com.google.container.v1alpha1.OperationProgressOrBuilder getStagesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PodSecurityPolicyConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PodSecurityPolicyConfig.java new file mode 100644 index 000000000000..e12d093d74ee --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PodSecurityPolicyConfig.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration for the PodSecurityPolicy feature.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.PodSecurityPolicyConfig} + */ +public final class PodSecurityPolicyConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.PodSecurityPolicyConfig) + PodSecurityPolicyConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use PodSecurityPolicyConfig.newBuilder() to construct. + private PodSecurityPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PodSecurityPolicyConfig() { + enabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PodSecurityPolicyConfig( + 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 8: { + + enabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_PodSecurityPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.PodSecurityPolicyConfig.class, com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+   * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+   * must be valid under a PodSecurityPolicy to be created.
+   * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + size += 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.container.v1alpha1.PodSecurityPolicyConfig)) { + return super.equals(obj); + } + com.google.container.v1alpha1.PodSecurityPolicyConfig other = (com.google.container.v1alpha1.PodSecurityPolicyConfig) obj; + + boolean result = true; + result = result && (getEnabled() + == other.getEnabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.PodSecurityPolicyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.PodSecurityPolicyConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.PodSecurityPolicyConfig) + com.google.container.v1alpha1.PodSecurityPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_PodSecurityPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.PodSecurityPolicyConfig.class, com.google.container.v1alpha1.PodSecurityPolicyConfig.Builder.class); + } + + // Construct using com.google.container.v1alpha1.PodSecurityPolicyConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.PodSecurityPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1alpha1.PodSecurityPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.PodSecurityPolicyConfig build() { + com.google.container.v1alpha1.PodSecurityPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.PodSecurityPolicyConfig buildPartial() { + com.google.container.v1alpha1.PodSecurityPolicyConfig result = new com.google.container.v1alpha1.PodSecurityPolicyConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.PodSecurityPolicyConfig) { + return mergeFrom((com.google.container.v1alpha1.PodSecurityPolicyConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.PodSecurityPolicyConfig other) { + if (other == com.google.container.v1alpha1.PodSecurityPolicyConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.PodSecurityPolicyConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.PodSecurityPolicyConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.PodSecurityPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.PodSecurityPolicyConfig) + private static final com.google.container.v1alpha1.PodSecurityPolicyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.PodSecurityPolicyConfig(); + } + + public static com.google.container.v1alpha1.PodSecurityPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PodSecurityPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PodSecurityPolicyConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.PodSecurityPolicyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PodSecurityPolicyConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PodSecurityPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..2e63b99cd598 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PodSecurityPolicyConfigOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface PodSecurityPolicyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.PodSecurityPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+   * must be valid under a PodSecurityPolicy to be created.
+   * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PrivateClusterConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PrivateClusterConfig.java new file mode 100644 index 000000000000..3d151736dd63 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PrivateClusterConfig.java @@ -0,0 +1,1055 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Configuration options for private clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.PrivateClusterConfig} + */ +public final class PrivateClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.PrivateClusterConfig) + PrivateClusterConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use PrivateClusterConfig.newBuilder() to construct. + private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PrivateClusterConfig() { + enablePrivateNodes_ = false; + enablePrivateEndpoint_ = false; + masterIpv4CidrBlock_ = ""; + privateEndpoint_ = ""; + publicEndpoint_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrivateClusterConfig( + 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 8: { + + enablePrivateNodes_ = input.readBool(); + break; + } + case 16: { + + enablePrivateEndpoint_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + masterIpv4CidrBlock_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + privateEndpoint_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + publicEndpoint_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.PrivateClusterConfig.class, com.google.container.v1alpha1.PrivateClusterConfig.Builder.class); + } + + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; + private boolean enablePrivateNodes_; + /** + *
+   * Whether nodes have only private IP addresses, and communicate with the
+   * master via private networking.
+   * 
+ * + * bool enable_private_nodes = 1; + */ + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + + public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 2; + private boolean enablePrivateEndpoint_; + /** + *
+   * Whether the master's internal IP address is used as the cluster endpoint.
+   * 
+ * + * bool enable_private_endpoint = 2; + */ + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + private volatile java.lang.Object masterIpv4CidrBlock_; + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network. This
+   * prefix will be used for assigning private IP addresses to the master or
+   * set of masters, as well as the ILB VIP.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network. This
+   * prefix will be used for assigning private IP addresses to the master or
+   * set of masters, as well as the ILB VIP.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public com.google.protobuf.ByteString + getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_ENDPOINT_FIELD_NUMBER = 4; + private volatile java.lang.Object privateEndpoint_; + /** + *
+   * Output only. The internal IP address of this cluster's endpoint.
+   * 
+ * + * string private_endpoint = 4; + */ + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } + } + /** + *
+   * Output only. The internal IP address of this cluster's endpoint.
+   * 
+ * + * string private_endpoint = 4; + */ + public com.google.protobuf.ByteString + getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLIC_ENDPOINT_FIELD_NUMBER = 5; + private volatile java.lang.Object publicEndpoint_; + /** + *
+   * Output only. The external IP address of this cluster's endpoint.
+   * 
+ * + * string public_endpoint = 5; + */ + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } + } + /** + *
+   * Output only. The external IP address of this cluster's endpoint.
+   * 
+ * + * string public_endpoint = 5; + */ + public com.google.protobuf.ByteString + getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicEndpoint_ = 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 (enablePrivateNodes_ != false) { + output.writeBool(1, enablePrivateNodes_); + } + if (enablePrivateEndpoint_ != false) { + output.writeBool(2, enablePrivateEndpoint_); + } + if (!getMasterIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); + } + if (!getPrivateEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateEndpoint_); + } + if (!getPublicEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicEndpoint_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enablePrivateNodes_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enablePrivateNodes_); + } + if (enablePrivateEndpoint_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enablePrivateEndpoint_); + } + if (!getMasterIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); + } + if (!getPrivateEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateEndpoint_); + } + if (!getPublicEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicEndpoint_); + } + 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.container.v1alpha1.PrivateClusterConfig)) { + return super.equals(obj); + } + com.google.container.v1alpha1.PrivateClusterConfig other = (com.google.container.v1alpha1.PrivateClusterConfig) obj; + + boolean result = true; + result = result && (getEnablePrivateNodes() + == other.getEnablePrivateNodes()); + result = result && (getEnablePrivateEndpoint() + == other.getEnablePrivateEndpoint()); + result = result && getMasterIpv4CidrBlock() + .equals(other.getMasterIpv4CidrBlock()); + result = result && getPrivateEndpoint() + .equals(other.getPrivateEndpoint()); + result = result && getPublicEndpoint() + .equals(other.getPublicEndpoint()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_PRIVATE_NODES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrivateNodes()); + hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrivateEndpoint()); + hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); + hash = (37 * hash) + PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpoint().hashCode(); + hash = (37 * hash) + PUBLIC_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getPublicEndpoint().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.PrivateClusterConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for private clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.PrivateClusterConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.PrivateClusterConfig) + com.google.container.v1alpha1.PrivateClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.PrivateClusterConfig.class, com.google.container.v1alpha1.PrivateClusterConfig.Builder.class); + } + + // Construct using com.google.container.v1alpha1.PrivateClusterConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enablePrivateNodes_ = false; + + enablePrivateEndpoint_ = false; + + masterIpv4CidrBlock_ = ""; + + privateEndpoint_ = ""; + + publicEndpoint_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.PrivateClusterConfig getDefaultInstanceForType() { + return com.google.container.v1alpha1.PrivateClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.PrivateClusterConfig build() { + com.google.container.v1alpha1.PrivateClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.PrivateClusterConfig buildPartial() { + com.google.container.v1alpha1.PrivateClusterConfig result = new com.google.container.v1alpha1.PrivateClusterConfig(this); + result.enablePrivateNodes_ = enablePrivateNodes_; + result.enablePrivateEndpoint_ = enablePrivateEndpoint_; + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + result.privateEndpoint_ = privateEndpoint_; + result.publicEndpoint_ = publicEndpoint_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.PrivateClusterConfig) { + return mergeFrom((com.google.container.v1alpha1.PrivateClusterConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.PrivateClusterConfig other) { + if (other == com.google.container.v1alpha1.PrivateClusterConfig.getDefaultInstance()) return this; + if (other.getEnablePrivateNodes() != false) { + setEnablePrivateNodes(other.getEnablePrivateNodes()); + } + if (other.getEnablePrivateEndpoint() != false) { + setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + onChanged(); + } + if (!other.getPrivateEndpoint().isEmpty()) { + privateEndpoint_ = other.privateEndpoint_; + onChanged(); + } + if (!other.getPublicEndpoint().isEmpty()) { + publicEndpoint_ = other.publicEndpoint_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.PrivateClusterConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.PrivateClusterConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enablePrivateNodes_ ; + /** + *
+     * Whether nodes have only private IP addresses, and communicate with the
+     * master via private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + */ + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + /** + *
+     * Whether nodes have only private IP addresses, and communicate with the
+     * master via private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + */ + public Builder setEnablePrivateNodes(boolean value) { + + enablePrivateNodes_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether nodes have only private IP addresses, and communicate with the
+     * master via private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + */ + public Builder clearEnablePrivateNodes() { + + enablePrivateNodes_ = false; + onChanged(); + return this; + } + + private boolean enablePrivateEndpoint_ ; + /** + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + */ + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + /** + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + */ + public Builder setEnablePrivateEndpoint(boolean value) { + + enablePrivateEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + */ + public Builder clearEnablePrivateEndpoint() { + + enablePrivateEndpoint_ = false; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network. This
+     * prefix will be used for assigning private IP addresses to the master or
+     * set of masters, as well as the ILB VIP.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network. This
+     * prefix will be used for assigning private IP addresses to the master or
+     * set of masters, as well as the ILB VIP.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public com.google.protobuf.ByteString + getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network. This
+     * prefix will be used for assigning private IP addresses to the master or
+     * set of masters, as well as the ILB VIP.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public Builder setMasterIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network. This
+     * prefix will be used for assigning private IP addresses to the master or
+     * set of masters, as well as the ILB VIP.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public Builder clearMasterIpv4CidrBlock() { + + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network. This
+     * prefix will be used for assigning private IP addresses to the master or
+     * set of masters, as well as the ILB VIP.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public Builder setMasterIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object privateEndpoint_ = ""; + /** + *
+     * Output only. The internal IP address of this cluster's endpoint.
+     * 
+ * + * string private_endpoint = 4; + */ + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The internal IP address of this cluster's endpoint.
+     * 
+ * + * string private_endpoint = 4; + */ + public com.google.protobuf.ByteString + getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The internal IP address of this cluster's endpoint.
+     * 
+ * + * string private_endpoint = 4; + */ + public Builder setPrivateEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The internal IP address of this cluster's endpoint.
+     * 
+ * + * string private_endpoint = 4; + */ + public Builder clearPrivateEndpoint() { + + privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); + onChanged(); + return this; + } + /** + *
+     * Output only. The internal IP address of this cluster's endpoint.
+     * 
+ * + * string private_endpoint = 4; + */ + public Builder setPrivateEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object publicEndpoint_ = ""; + /** + *
+     * Output only. The external IP address of this cluster's endpoint.
+     * 
+ * + * string public_endpoint = 5; + */ + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The external IP address of this cluster's endpoint.
+     * 
+ * + * string public_endpoint = 5; + */ + public com.google.protobuf.ByteString + getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The external IP address of this cluster's endpoint.
+     * 
+ * + * string public_endpoint = 5; + */ + public Builder setPublicEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publicEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The external IP address of this cluster's endpoint.
+     * 
+ * + * string public_endpoint = 5; + */ + public Builder clearPublicEndpoint() { + + publicEndpoint_ = getDefaultInstance().getPublicEndpoint(); + onChanged(); + return this; + } + /** + *
+     * Output only. The external IP address of this cluster's endpoint.
+     * 
+ * + * string public_endpoint = 5; + */ + public Builder setPublicEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicEndpoint_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.PrivateClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.PrivateClusterConfig) + private static final com.google.container.v1alpha1.PrivateClusterConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.PrivateClusterConfig(); + } + + public static com.google.container.v1alpha1.PrivateClusterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrivateClusterConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.PrivateClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PrivateClusterConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PrivateClusterConfigOrBuilder.java new file mode 100644 index 000000000000..c09e2bf67378 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/PrivateClusterConfigOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface PrivateClusterConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.PrivateClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether nodes have only private IP addresses, and communicate with the
+   * master via private networking.
+   * 
+ * + * bool enable_private_nodes = 1; + */ + boolean getEnablePrivateNodes(); + + /** + *
+   * Whether the master's internal IP address is used as the cluster endpoint.
+   * 
+ * + * bool enable_private_endpoint = 2; + */ + boolean getEnablePrivateEndpoint(); + + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network. This
+   * prefix will be used for assigning private IP addresses to the master or
+   * set of masters, as well as the ILB VIP.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + */ + java.lang.String getMasterIpv4CidrBlock(); + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network. This
+   * prefix will be used for assigning private IP addresses to the master or
+   * set of masters, as well as the ILB VIP.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + */ + com.google.protobuf.ByteString + getMasterIpv4CidrBlockBytes(); + + /** + *
+   * Output only. The internal IP address of this cluster's endpoint.
+   * 
+ * + * string private_endpoint = 4; + */ + java.lang.String getPrivateEndpoint(); + /** + *
+   * Output only. The internal IP address of this cluster's endpoint.
+   * 
+ * + * string private_endpoint = 4; + */ + com.google.protobuf.ByteString + getPrivateEndpointBytes(); + + /** + *
+   * Output only. The external IP address of this cluster's endpoint.
+   * 
+ * + * string public_endpoint = 5; + */ + java.lang.String getPublicEndpoint(); + /** + *
+   * Output only. The external IP address of this cluster's endpoint.
+   * 
+ * + * string public_endpoint = 5; + */ + com.google.protobuf.ByteString + getPublicEndpointBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ProjectName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ProjectName.java new file mode 100644 index 000000000000..0610717b1464 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ProjectName.java @@ -0,0 +1,166 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1alpha1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + + private volatile Map fieldValuesMap; + + private final String project; + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public static ProjectName of(String project) { + return newBuilder() + .setProject(project) + .build(); + } + + public static String format(String project) { + return newBuilder() + .setProject(project) + .build() + .toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project); + } + + /** Builder for ProjectName. */ + public static class Builder { + + private String project; + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder() { + } + + private Builder(ProjectName projectName) { + project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectName) { + ProjectName that = (ProjectName) o; + return (this.project.equals(that.project)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ProjectPathName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ProjectPathName.java new file mode 100644 index 000000000000..8c5514775723 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ProjectPathName.java @@ -0,0 +1,166 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1alpha1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectPathName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project_path=**}"); + + private volatile Map fieldValuesMap; + + private final String projectPath; + + public String getProjectPath() { + return projectPath; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectPathName(Builder builder) { + projectPath = Preconditions.checkNotNull(builder.getProjectPath()); + } + + public static ProjectPathName of(String projectPath) { + return newBuilder() + .setProjectPath(projectPath) + .build(); + } + + public static String format(String projectPath) { + return newBuilder() + .setProjectPath(projectPath) + .build() + .toString(); + } + + public static ProjectPathName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ProjectPathName.parse: formattedString not in valid format"); + return of(matchMap.get("project_path")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectPathName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("projectPath", projectPath); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project_path", projectPath); + } + + /** Builder for ProjectPathName. */ + public static class Builder { + + private String projectPath; + + public String getProjectPath() { + return projectPath; + } + + public Builder setProjectPath(String projectPath) { + this.projectPath = projectPath; + return this; + } + + private Builder() { + } + + private Builder(ProjectPathName projectPathName) { + projectPath = projectPathName.projectPath; + } + + public ProjectPathName build() { + return new ProjectPathName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectPathName) { + ProjectPathName that = (ProjectPathName) o; + return (this.projectPath.equals(that.projectPath)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= projectPath.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ResourceLimit.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ResourceLimit.java new file mode 100644 index 000000000000..9760cfa35ab5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ResourceLimit.java @@ -0,0 +1,729 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Contains information about amount of some resource in the cluster.
+ * For memory, value should be in GB.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ResourceLimit} + */ +public final class ResourceLimit extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ResourceLimit) + ResourceLimitOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResourceLimit.newBuilder() to construct. + private ResourceLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceLimit() { + resourceType_ = ""; + minimum_ = 0L; + maximum_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceLimit( + 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(); + + resourceType_ = s; + break; + } + case 16: { + + minimum_ = input.readInt64(); + break; + } + case 24: { + + maximum_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ResourceLimit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ResourceLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ResourceLimit.class, com.google.container.v1alpha1.ResourceLimit.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceType_; + /** + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + /** + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + */ + public com.google.protobuf.ByteString + getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MINIMUM_FIELD_NUMBER = 2; + private long minimum_; + /** + *
+   * Minimum amount of the resource in the cluster.
+   * 
+ * + * int64 minimum = 2; + */ + public long getMinimum() { + return minimum_; + } + + public static final int MAXIMUM_FIELD_NUMBER = 3; + private long maximum_; + /** + *
+   * Maximum amount of the resource in the cluster.
+   * 
+ * + * int64 maximum = 3; + */ + public long getMaximum() { + return maximum_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); + } + if (minimum_ != 0L) { + output.writeInt64(2, minimum_); + } + if (maximum_ != 0L) { + output.writeInt64(3, maximum_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceType_); + } + if (minimum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, minimum_); + } + if (maximum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maximum_); + } + 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.container.v1alpha1.ResourceLimit)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ResourceLimit other = (com.google.container.v1alpha1.ResourceLimit) obj; + + boolean result = true; + result = result && getResourceType() + .equals(other.getResourceType()); + result = result && (getMinimum() + == other.getMinimum()); + result = result && (getMaximum() + == other.getMaximum()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().hashCode(); + hash = (37 * hash) + MINIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinimum()); + hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaximum()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ResourceLimit parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ResourceLimit parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ResourceLimit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ResourceLimit parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ResourceLimit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ResourceLimit parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ResourceLimit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ResourceLimit parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ResourceLimit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ResourceLimit parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ResourceLimit parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ResourceLimit parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ResourceLimit prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Contains information about amount of some resource in the cluster.
+   * For memory, value should be in GB.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ResourceLimit} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ResourceLimit) + com.google.container.v1alpha1.ResourceLimitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ResourceLimit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ResourceLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ResourceLimit.class, com.google.container.v1alpha1.ResourceLimit.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ResourceLimit.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = ""; + + minimum_ = 0L; + + maximum_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ResourceLimit_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ResourceLimit getDefaultInstanceForType() { + return com.google.container.v1alpha1.ResourceLimit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ResourceLimit build() { + com.google.container.v1alpha1.ResourceLimit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ResourceLimit buildPartial() { + com.google.container.v1alpha1.ResourceLimit result = new com.google.container.v1alpha1.ResourceLimit(this); + result.resourceType_ = resourceType_; + result.minimum_ = minimum_; + result.maximum_ = maximum_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ResourceLimit) { + return mergeFrom((com.google.container.v1alpha1.ResourceLimit)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ResourceLimit other) { + if (other == com.google.container.v1alpha1.ResourceLimit.getDefaultInstance()) return this; + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + onChanged(); + } + if (other.getMinimum() != 0L) { + setMinimum(other.getMinimum()); + } + if (other.getMaximum() != 0L) { + setMaximum(other.getMaximum()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ResourceLimit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ResourceLimit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceType_ = ""; + /** + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + */ + public com.google.protobuf.ByteString + getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + */ + public Builder setResourceType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = getDefaultInstance().getResourceType(); + onChanged(); + return this; + } + /** + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + */ + public Builder setResourceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceType_ = value; + onChanged(); + return this; + } + + private long minimum_ ; + /** + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + */ + public long getMinimum() { + return minimum_; + } + /** + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + */ + public Builder setMinimum(long value) { + + minimum_ = value; + onChanged(); + return this; + } + /** + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + */ + public Builder clearMinimum() { + + minimum_ = 0L; + onChanged(); + return this; + } + + private long maximum_ ; + /** + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + */ + public long getMaximum() { + return maximum_; + } + /** + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + */ + public Builder setMaximum(long value) { + + maximum_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + */ + public Builder clearMaximum() { + + maximum_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ResourceLimit) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ResourceLimit) + private static final com.google.container.v1alpha1.ResourceLimit DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ResourceLimit(); + } + + public static com.google.container.v1alpha1.ResourceLimit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceLimit(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ResourceLimit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ResourceLimitOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ResourceLimitOrBuilder.java new file mode 100644 index 000000000000..1a4e8fa2283e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ResourceLimitOrBuilder.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ResourceLimitOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ResourceLimit) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + */ + java.lang.String getResourceType(); + /** + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + */ + com.google.protobuf.ByteString + getResourceTypeBytes(); + + /** + *
+   * Minimum amount of the resource in the cluster.
+   * 
+ * + * int64 minimum = 2; + */ + long getMinimum(); + + /** + *
+   * Maximum amount of the resource in the cluster.
+   * 
+ * + * int64 maximum = 3; + */ + long getMaximum(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/RollbackNodePoolUpgradeRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/RollbackNodePoolUpgradeRequest.java new file mode 100644 index 000000000000..ea5b924b8be6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/RollbackNodePoolUpgradeRequest.java @@ -0,0 +1,1264 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
+ * NodePool upgrade. This will be an no-op if the last upgrade successfully
+ * completed.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.RollbackNodePoolUpgradeRequest} + */ +public final class RollbackNodePoolUpgradeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.RollbackNodePoolUpgradeRequest) + RollbackNodePoolUpgradeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use RollbackNodePoolUpgradeRequest.newBuilder() to construct. + private RollbackNodePoolUpgradeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RollbackNodePoolUpgradeRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RollbackNodePoolUpgradeRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_RollbackNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest.class, com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1alpha1.RollbackNodePoolUpgradeRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest other = (com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().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.container.v1alpha1.RollbackNodePoolUpgradeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
+   * NodePool upgrade. This will be an no-op if the last upgrade successfully
+   * completed.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.RollbackNodePoolUpgradeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.RollbackNodePoolUpgradeRequest) + com.google.container.v1alpha1.RollbackNodePoolUpgradeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_RollbackNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest.class, com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest build() { + com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest buildPartial() { + com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest result = new com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest) { + return mergeFrom((com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest other) { + if (other == com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.RollbackNodePoolUpgradeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.RollbackNodePoolUpgradeRequest) + private static final com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest(); + } + + public static com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackNodePoolUpgradeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RollbackNodePoolUpgradeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/RollbackNodePoolUpgradeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/RollbackNodePoolUpgradeRequestOrBuilder.java new file mode 100644 index 000000000000..170a6b10a2fa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface RollbackNodePoolUpgradeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.RollbackNodePoolUpgradeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ServerConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ServerConfig.java new file mode 100644 index 000000000000..c3d8bb393ef3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ServerConfig.java @@ -0,0 +1,1403 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Kubernetes Engine service configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.ServerConfig} + */ +public final class ServerConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.ServerConfig) + ServerConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ServerConfig.newBuilder() to construct. + private ServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ServerConfig() { + defaultClusterVersion_ = ""; + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + defaultImageType_ = ""; + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ServerConfig( + 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(); + + defaultClusterVersion_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + validNodeVersions_.add(s); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + defaultImageType_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + validImageTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + validImageTypes_.add(s); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + validMasterVersions_.add(s); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + validImageTypes_ = validImageTypes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ServerConfig.class, com.google.container.v1alpha1.ServerConfig.Builder.class); + } + + private int bitField0_; + public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object defaultClusterVersion_; + /** + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + */ + public java.lang.String getDefaultClusterVersion() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultClusterVersion_ = s; + return s; + } + } + /** + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + */ + public com.google.protobuf.ByteString + getDefaultClusterVersionBytes() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_NODE_VERSIONS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList validNodeVersions_; + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + public com.google.protobuf.ProtocolStringList + getValidNodeVersionsList() { + return validNodeVersions_; + } + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + public int getValidNodeVersionsCount() { + return validNodeVersions_.size(); + } + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + public java.lang.String getValidNodeVersions(int index) { + return validNodeVersions_.get(index); + } + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + public com.google.protobuf.ByteString + getValidNodeVersionsBytes(int index) { + return validNodeVersions_.getByteString(index); + } + + public static final int DEFAULT_IMAGE_TYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object defaultImageType_; + /** + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + */ + public java.lang.String getDefaultImageType() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultImageType_ = s; + return s; + } + } + /** + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + */ + public com.google.protobuf.ByteString + getDefaultImageTypeBytes() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_IMAGE_TYPES_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList validImageTypes_; + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + public com.google.protobuf.ProtocolStringList + getValidImageTypesList() { + return validImageTypes_; + } + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + public int getValidImageTypesCount() { + return validImageTypes_.size(); + } + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + public com.google.protobuf.ByteString + getValidImageTypesBytes(int index) { + return validImageTypes_.getByteString(index); + } + + public static final int VALID_MASTER_VERSIONS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList validMasterVersions_; + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + public com.google.protobuf.ProtocolStringList + getValidMasterVersionsList() { + return validMasterVersions_; + } + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + public com.google.protobuf.ByteString + getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getDefaultClusterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultClusterVersion_); + } + for (int i = 0; i < validNodeVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validNodeVersions_.getRaw(i)); + } + if (!getDefaultImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultImageType_); + } + for (int i = 0; i < validImageTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validImageTypes_.getRaw(i)); + } + for (int i = 0; i < validMasterVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, validMasterVersions_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDefaultClusterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultClusterVersion_); + } + { + int dataSize = 0; + for (int i = 0; i < validNodeVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(validNodeVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidNodeVersionsList().size(); + } + if (!getDefaultImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultImageType_); + } + { + int dataSize = 0; + for (int i = 0; i < validImageTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(validImageTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidImageTypesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < validMasterVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(validMasterVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidMasterVersionsList().size(); + } + 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.container.v1alpha1.ServerConfig)) { + return super.equals(obj); + } + com.google.container.v1alpha1.ServerConfig other = (com.google.container.v1alpha1.ServerConfig) obj; + + boolean result = true; + result = result && getDefaultClusterVersion() + .equals(other.getDefaultClusterVersion()); + result = result && getValidNodeVersionsList() + .equals(other.getValidNodeVersionsList()); + result = result && getDefaultImageType() + .equals(other.getDefaultImageType()); + result = result && getValidImageTypesList() + .equals(other.getValidImageTypesList()); + result = result && getValidMasterVersionsList() + .equals(other.getValidMasterVersionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_CLUSTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDefaultClusterVersion().hashCode(); + if (getValidNodeVersionsCount() > 0) { + hash = (37 * hash) + VALID_NODE_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidNodeVersionsList().hashCode(); + } + hash = (37 * hash) + DEFAULT_IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultImageType().hashCode(); + if (getValidImageTypesCount() > 0) { + hash = (37 * hash) + VALID_IMAGE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getValidImageTypesList().hashCode(); + } + if (getValidMasterVersionsCount() > 0) { + hash = (37 * hash) + VALID_MASTER_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidMasterVersionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.ServerConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ServerConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ServerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ServerConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ServerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.ServerConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.ServerConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ServerConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ServerConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ServerConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.ServerConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.ServerConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.ServerConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Kubernetes Engine service configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.ServerConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.ServerConfig) + com.google.container.v1alpha1.ServerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.ServerConfig.class, com.google.container.v1alpha1.ServerConfig.Builder.class); + } + + // Construct using com.google.container.v1alpha1.ServerConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + defaultClusterVersion_ = ""; + + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + defaultImageType_ = ""; + + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_ServerConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.ServerConfig getDefaultInstanceForType() { + return com.google.container.v1alpha1.ServerConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.ServerConfig build() { + com.google.container.v1alpha1.ServerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.ServerConfig buildPartial() { + com.google.container.v1alpha1.ServerConfig result = new com.google.container.v1alpha1.ServerConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.defaultClusterVersion_ = defaultClusterVersion_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.validNodeVersions_ = validNodeVersions_; + result.defaultImageType_ = defaultImageType_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + validImageTypes_ = validImageTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.validImageTypes_ = validImageTypes_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.validMasterVersions_ = validMasterVersions_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.ServerConfig) { + return mergeFrom((com.google.container.v1alpha1.ServerConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.ServerConfig other) { + if (other == com.google.container.v1alpha1.ServerConfig.getDefaultInstance()) return this; + if (!other.getDefaultClusterVersion().isEmpty()) { + defaultClusterVersion_ = other.defaultClusterVersion_; + onChanged(); + } + if (!other.validNodeVersions_.isEmpty()) { + if (validNodeVersions_.isEmpty()) { + validNodeVersions_ = other.validNodeVersions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.addAll(other.validNodeVersions_); + } + onChanged(); + } + if (!other.getDefaultImageType().isEmpty()) { + defaultImageType_ = other.defaultImageType_; + onChanged(); + } + if (!other.validImageTypes_.isEmpty()) { + if (validImageTypes_.isEmpty()) { + validImageTypes_ = other.validImageTypes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureValidImageTypesIsMutable(); + validImageTypes_.addAll(other.validImageTypes_); + } + onChanged(); + } + if (!other.validMasterVersions_.isEmpty()) { + if (validMasterVersions_.isEmpty()) { + validMasterVersions_ = other.validMasterVersions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.addAll(other.validMasterVersions_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.ServerConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.ServerConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object defaultClusterVersion_ = ""; + /** + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + */ + public java.lang.String getDefaultClusterVersion() { + java.lang.Object ref = defaultClusterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultClusterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + */ + public com.google.protobuf.ByteString + getDefaultClusterVersionBytes() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + */ + public Builder setDefaultClusterVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultClusterVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + */ + public Builder clearDefaultClusterVersion() { + + defaultClusterVersion_ = getDefaultInstance().getDefaultClusterVersion(); + onChanged(); + return this; + } + /** + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + */ + public Builder setDefaultClusterVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultClusterVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValidNodeVersionsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public com.google.protobuf.ProtocolStringList + getValidNodeVersionsList() { + return validNodeVersions_.getUnmodifiableView(); + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public int getValidNodeVersionsCount() { + return validNodeVersions_.size(); + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public java.lang.String getValidNodeVersions(int index) { + return validNodeVersions_.get(index); + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public com.google.protobuf.ByteString + getValidNodeVersionsBytes(int index) { + return validNodeVersions_.getByteString(index); + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public Builder setValidNodeVersions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public Builder addValidNodeVersions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public Builder addAllValidNodeVersions( + java.lang.Iterable values) { + ensureValidNodeVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validNodeVersions_); + onChanged(); + return this; + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public Builder clearValidNodeVersions() { + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public Builder addValidNodeVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object defaultImageType_ = ""; + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + */ + public java.lang.String getDefaultImageType() { + java.lang.Object ref = defaultImageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultImageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + */ + public com.google.protobuf.ByteString + getDefaultImageTypeBytes() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + */ + public Builder setDefaultImageType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultImageType_ = value; + onChanged(); + return this; + } + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + */ + public Builder clearDefaultImageType() { + + defaultImageType_ = getDefaultInstance().getDefaultImageType(); + onChanged(); + return this; + } + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + */ + public Builder setDefaultImageTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultImageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValidImageTypesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); + bitField0_ |= 0x00000008; + } + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public com.google.protobuf.ProtocolStringList + getValidImageTypesList() { + return validImageTypes_.getUnmodifiableView(); + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public int getValidImageTypesCount() { + return validImageTypes_.size(); + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public com.google.protobuf.ByteString + getValidImageTypesBytes(int index) { + return validImageTypes_.getByteString(index); + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public Builder setValidImageTypes( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidImageTypesIsMutable(); + validImageTypes_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public Builder addValidImageTypes( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidImageTypesIsMutable(); + validImageTypes_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public Builder addAllValidImageTypes( + java.lang.Iterable values) { + ensureValidImageTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validImageTypes_); + onChanged(); + return this; + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public Builder clearValidImageTypes() { + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public Builder addValidImageTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidImageTypesIsMutable(); + validImageTypes_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValidMasterVersionsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); + bitField0_ |= 0x00000010; + } + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public com.google.protobuf.ProtocolStringList + getValidMasterVersionsList() { + return validMasterVersions_.getUnmodifiableView(); + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public com.google.protobuf.ByteString + getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public Builder setValidMasterVersions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public Builder addValidMasterVersions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public Builder addAllValidMasterVersions( + java.lang.Iterable values) { + ensureValidMasterVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validMasterVersions_); + onChanged(); + return this; + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public Builder clearValidMasterVersions() { + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public Builder addValidMasterVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.ServerConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.ServerConfig) + private static final com.google.container.v1alpha1.ServerConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.ServerConfig(); + } + + public static com.google.container.v1alpha1.ServerConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.ServerConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ServerConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ServerConfigOrBuilder.java new file mode 100644 index 000000000000..2904d6f309cc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/ServerConfigOrBuilder.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface ServerConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.ServerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + */ + java.lang.String getDefaultClusterVersion(); + /** + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + */ + com.google.protobuf.ByteString + getDefaultClusterVersionBytes(); + + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + java.util.List + getValidNodeVersionsList(); + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + int getValidNodeVersionsCount(); + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + java.lang.String getValidNodeVersions(int index); + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + com.google.protobuf.ByteString + getValidNodeVersionsBytes(int index); + + /** + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + */ + java.lang.String getDefaultImageType(); + /** + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + */ + com.google.protobuf.ByteString + getDefaultImageTypeBytes(); + + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + java.util.List + getValidImageTypesList(); + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + int getValidImageTypesCount(); + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + java.lang.String getValidImageTypes(int index); + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + com.google.protobuf.ByteString + getValidImageTypesBytes(int index); + + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + java.util.List + getValidMasterVersionsList(); + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + int getValidMasterVersionsCount(); + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + java.lang.String getValidMasterVersions(int index); + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + com.google.protobuf.ByteString + getValidMasterVersionsBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetAddonsConfigRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetAddonsConfigRequest.java new file mode 100644 index 000000000000..ae161cc1964e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetAddonsConfigRequest.java @@ -0,0 +1,1332 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetAddonsRequest sets the addons associated with the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetAddonsConfigRequest} + */ +public final class SetAddonsConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetAddonsConfigRequest) + SetAddonsConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetAddonsConfigRequest.newBuilder() to construct. + private SetAddonsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetAddonsConfigRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetAddonsConfigRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + com.google.container.v1alpha1.AddonsConfig.Builder subBuilder = null; + if (addonsConfig_ != null) { + subBuilder = addonsConfig_.toBuilder(); + } + addonsConfig_ = input.readMessage(com.google.container.v1alpha1.AddonsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(addonsConfig_); + addonsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetAddonsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetAddonsConfigRequest.class, com.google.container.v1alpha1.SetAddonsConfigRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDONS_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1alpha1.AddonsConfig addonsConfig_; + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public boolean hasAddonsConfig() { + return addonsConfig_ != null; + } + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public com.google.container.v1alpha1.AddonsConfig getAddonsConfig() { + return addonsConfig_ == null ? com.google.container.v1alpha1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public com.google.container.v1alpha1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + return getAddonsConfig(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (addonsConfig_ != null) { + output.writeMessage(4, getAddonsConfig()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (addonsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAddonsConfig()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1alpha1.SetAddonsConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetAddonsConfigRequest other = (com.google.container.v1alpha1.SetAddonsConfigRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (hasAddonsConfig() == other.hasAddonsConfig()); + if (hasAddonsConfig()) { + result = result && getAddonsConfig() + .equals(other.getAddonsConfig()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasAddonsConfig()) { + hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAddonsConfig().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.container.v1alpha1.SetAddonsConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetAddonsConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetAddonsRequest sets the addons associated with the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetAddonsConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetAddonsConfigRequest) + com.google.container.v1alpha1.SetAddonsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetAddonsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetAddonsConfigRequest.class, com.google.container.v1alpha1.SetAddonsConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetAddonsConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetAddonsConfigRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetAddonsConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetAddonsConfigRequest build() { + com.google.container.v1alpha1.SetAddonsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetAddonsConfigRequest buildPartial() { + com.google.container.v1alpha1.SetAddonsConfigRequest result = new com.google.container.v1alpha1.SetAddonsConfigRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (addonsConfigBuilder_ == null) { + result.addonsConfig_ = addonsConfig_; + } else { + result.addonsConfig_ = addonsConfigBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetAddonsConfigRequest) { + return mergeFrom((com.google.container.v1alpha1.SetAddonsConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetAddonsConfigRequest other) { + if (other == com.google.container.v1alpha1.SetAddonsConfigRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetAddonsConfigRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetAddonsConfigRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.AddonsConfig addonsConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AddonsConfig, com.google.container.v1alpha1.AddonsConfig.Builder, com.google.container.v1alpha1.AddonsConfigOrBuilder> addonsConfigBuilder_; + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public boolean hasAddonsConfig() { + return addonsConfigBuilder_ != null || addonsConfig_ != null; + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public com.google.container.v1alpha1.AddonsConfig getAddonsConfig() { + if (addonsConfigBuilder_ == null) { + return addonsConfig_ == null ? com.google.container.v1alpha1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } else { + return addonsConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public Builder setAddonsConfig(com.google.container.v1alpha1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addonsConfig_ = value; + onChanged(); + } else { + addonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public Builder setAddonsConfig( + com.google.container.v1alpha1.AddonsConfig.Builder builderForValue) { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = builderForValue.build(); + onChanged(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public Builder mergeAddonsConfig(com.google.container.v1alpha1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (addonsConfig_ != null) { + addonsConfig_ = + com.google.container.v1alpha1.AddonsConfig.newBuilder(addonsConfig_).mergeFrom(value).buildPartial(); + } else { + addonsConfig_ = value; + } + onChanged(); + } else { + addonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public Builder clearAddonsConfig() { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + onChanged(); + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public com.google.container.v1alpha1.AddonsConfig.Builder getAddonsConfigBuilder() { + + onChanged(); + return getAddonsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + public com.google.container.v1alpha1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + if (addonsConfigBuilder_ != null) { + return addonsConfigBuilder_.getMessageOrBuilder(); + } else { + return addonsConfig_ == null ? + com.google.container.v1alpha1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AddonsConfig, com.google.container.v1alpha1.AddonsConfig.Builder, com.google.container.v1alpha1.AddonsConfigOrBuilder> + getAddonsConfigFieldBuilder() { + if (addonsConfigBuilder_ == null) { + addonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.AddonsConfig, com.google.container.v1alpha1.AddonsConfig.Builder, com.google.container.v1alpha1.AddonsConfigOrBuilder>( + getAddonsConfig(), + getParentForChildren(), + isClean()); + addonsConfig_ = null; + } + return addonsConfigBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetAddonsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetAddonsConfigRequest) + private static final com.google.container.v1alpha1.SetAddonsConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetAddonsConfigRequest(); + } + + public static com.google.container.v1alpha1.SetAddonsConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetAddonsConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetAddonsConfigRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetAddonsConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetAddonsConfigRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetAddonsConfigRequestOrBuilder.java new file mode 100644 index 000000000000..c86f22a6574d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetAddonsConfigRequestOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetAddonsConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetAddonsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + boolean hasAddonsConfig(); + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + com.google.container.v1alpha1.AddonsConfig getAddonsConfig(); + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1alpha1.AddonsConfig addons_config = 4; + */ + com.google.container.v1alpha1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLabelsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLabelsRequest.java new file mode 100644 index 000000000000..728ceb66c96a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLabelsRequest.java @@ -0,0 +1,1607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
+ * Engine cluster, which will in turn set them for Google Compute Engine
+ * resources used by that cluster
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetLabelsRequest} + */ +public final class SetLabelsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetLabelsRequest) + SetLabelsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetLabelsRequest.newBuilder() to construct. + private SetLabelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetLabelsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + labelFingerprint_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetLabelsRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry + resourceLabels__ = input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + resourceLabels_.getMutableMap().put( + resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + labelFingerprint_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLabelsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetLabelsRequest.class, com.google.container.v1alpha1.SetLabelsRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 4; + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLabelsRequest_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.lang.String getResourceLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABEL_FINGERPRINT_FIELD_NUMBER = 5; + private volatile java.lang.Object labelFingerprint_; + /** + *
+   * The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a <code>get()</code> request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5; + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } + } + /** + *
+   * The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a <code>get()</code> request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5; + */ + public com.google.protobuf.ByteString + getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResourceLabels(), + ResourceLabelsDefaultEntryHolder.defaultEntry, + 4); + if (!getLabelFingerprintBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, labelFingerprint_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + for (java.util.Map.Entry entry + : internalGetResourceLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + resourceLabels__ = ResourceLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, resourceLabels__); + } + if (!getLabelFingerprintBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, labelFingerprint_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1alpha1.SetLabelsRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetLabelsRequest other = (com.google.container.v1alpha1.SetLabelsRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && internalGetResourceLabels().equals( + other.internalGetResourceLabels()); + result = result && getLabelFingerprint() + .equals(other.getLabelFingerprint()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (!internalGetResourceLabels().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceLabels().hashCode(); + } + hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; + hash = (53 * hash) + getLabelFingerprint().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.container.v1alpha1.SetLabelsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLabelsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetLabelsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
+   * Engine cluster, which will in turn set them for Google Compute Engine
+   * resources used by that cluster
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetLabelsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetLabelsRequest) + com.google.container.v1alpha1.SetLabelsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLabelsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetLabelsRequest.class, com.google.container.v1alpha1.SetLabelsRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetLabelsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLabelsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLabelsRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetLabelsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLabelsRequest build() { + com.google.container.v1alpha1.SetLabelsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLabelsRequest buildPartial() { + com.google.container.v1alpha1.SetLabelsRequest result = new com.google.container.v1alpha1.SetLabelsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + result.labelFingerprint_ = labelFingerprint_; + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetLabelsRequest) { + return mergeFrom((com.google.container.v1alpha1.SetLabelsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetLabelsRequest other) { + if (other == com.google.container.v1alpha1.SetLabelsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + internalGetMutableResourceLabels().mergeFrom( + other.internalGetResourceLabels()); + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetLabelsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetLabelsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged();; + if (resourceLabels_ == null) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.lang.String getResourceLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceLabels() { + internalGetMutableResourceLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public Builder removeResourceLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableResourceLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceLabels() { + return internalGetMutableResourceLabels().getMutableMap(); + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + public Builder putResourceLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableResourceLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public Builder putAllResourceLabels( + java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object labelFingerprint_ = ""; + /** + *
+     * The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a <code>get()</code> request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5; + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a <code>get()</code> request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5; + */ + public com.google.protobuf.ByteString + getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a <code>get()</code> request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5; + */ + public Builder setLabelFingerprint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + labelFingerprint_ = value; + onChanged(); + return this; + } + /** + *
+     * The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a <code>get()</code> request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5; + */ + public Builder clearLabelFingerprint() { + + labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); + onChanged(); + return this; + } + /** + *
+     * The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a <code>get()</code> request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5; + */ + public Builder setLabelFingerprintBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + labelFingerprint_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetLabelsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetLabelsRequest) + private static final com.google.container.v1alpha1.SetLabelsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetLabelsRequest(); + } + + public static com.google.container.v1alpha1.SetLabelsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLabelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLabelsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLabelsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLabelsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLabelsRequestOrBuilder.java new file mode 100644 index 000000000000..7042cd6209d6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLabelsRequestOrBuilder.java @@ -0,0 +1,177 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetLabelsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetLabelsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + int getResourceLabelsCount(); + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + boolean containsResourceLabels( + java.lang.String key); + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getResourceLabels(); + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + java.util.Map + getResourceLabelsMap(); + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + java.lang.String getResourceLabelsOrThrow( + java.lang.String key); + + /** + *
+   * The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a <code>get()</code> request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5; + */ + java.lang.String getLabelFingerprint(); + /** + *
+   * The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a <code>get()</code> request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5; + */ + com.google.protobuf.ByteString + getLabelFingerprintBytes(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLegacyAbacRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLegacyAbacRequest.java new file mode 100644 index 000000000000..7b6ada3a7c0e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLegacyAbacRequest.java @@ -0,0 +1,1168 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
+ * a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetLegacyAbacRequest} + */ +public final class SetLegacyAbacRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetLegacyAbacRequest) + SetLegacyAbacRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetLegacyAbacRequest.newBuilder() to construct. + private SetLegacyAbacRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetLegacyAbacRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + enabled_ = false; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetLegacyAbacRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 32: { + + enabled_ = input.readBool(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLegacyAbacRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetLegacyAbacRequest.class, com.google.container.v1alpha1.SetLegacyAbacRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLED_FIELD_NUMBER = 4; + private boolean enabled_; + /** + *
+   * Whether ABAC authorization will be enabled in the cluster.
+   * 
+ * + * bool enabled = 4; + */ + public boolean getEnabled() { + return enabled_; + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (enabled_ != false) { + output.writeBool(4, enabled_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enabled_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1alpha1.SetLegacyAbacRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetLegacyAbacRequest other = (com.google.container.v1alpha1.SetLegacyAbacRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (getEnabled() + == other.getEnabled()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetLegacyAbacRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
+   * a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetLegacyAbacRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetLegacyAbacRequest) + com.google.container.v1alpha1.SetLegacyAbacRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLegacyAbacRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetLegacyAbacRequest.class, com.google.container.v1alpha1.SetLegacyAbacRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetLegacyAbacRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + enabled_ = false; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLegacyAbacRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetLegacyAbacRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLegacyAbacRequest build() { + com.google.container.v1alpha1.SetLegacyAbacRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLegacyAbacRequest buildPartial() { + com.google.container.v1alpha1.SetLegacyAbacRequest result = new com.google.container.v1alpha1.SetLegacyAbacRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.enabled_ = enabled_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetLegacyAbacRequest) { + return mergeFrom((com.google.container.v1alpha1.SetLegacyAbacRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetLegacyAbacRequest other) { + if (other == com.google.container.v1alpha1.SetLegacyAbacRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetLegacyAbacRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetLegacyAbacRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private boolean enabled_ ; + /** + *
+     * Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetLegacyAbacRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetLegacyAbacRequest) + private static final com.google.container.v1alpha1.SetLegacyAbacRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetLegacyAbacRequest(); + } + + public static com.google.container.v1alpha1.SetLegacyAbacRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLegacyAbacRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLegacyAbacRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLegacyAbacRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLegacyAbacRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLegacyAbacRequestOrBuilder.java new file mode 100644 index 000000000000..464fe4c2aefe --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLegacyAbacRequestOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetLegacyAbacRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetLegacyAbacRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Whether ABAC authorization will be enabled in the cluster.
+   * 
+ * + * bool enabled = 4; + */ + boolean getEnabled(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLocationsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLocationsRequest.java new file mode 100644 index 000000000000..72408ee1f28d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLocationsRequest.java @@ -0,0 +1,1383 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetLocationsRequest sets the locations of the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetLocationsRequest} + */ +public final class SetLocationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetLocationsRequest) + SetLocationsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetLocationsRequest.newBuilder() to construct. + private SetLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetLocationsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetLocationsRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + locations_.add(s); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + locations_ = locations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetLocationsRequest.class, com.google.container.v1alpha1.SetLocationsRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList locations_; + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + public com.google.protobuf.ProtocolStringList + getLocationsList() { + return locations_; + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + public com.google.protobuf.ByteString + getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locations_.getRaw(i)); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1alpha1.SetLocationsRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetLocationsRequest other = (com.google.container.v1alpha1.SetLocationsRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getLocationsList() + .equals(other.getLocationsList()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().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.container.v1alpha1.SetLocationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLocationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetLocationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetLocationsRequest sets the locations of the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetLocationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetLocationsRequest) + com.google.container.v1alpha1.SetLocationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetLocationsRequest.class, com.google.container.v1alpha1.SetLocationsRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetLocationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLocationsRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetLocationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLocationsRequest build() { + com.google.container.v1alpha1.SetLocationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLocationsRequest buildPartial() { + com.google.container.v1alpha1.SetLocationsRequest result = new com.google.container.v1alpha1.SetLocationsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.locations_ = locations_; + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetLocationsRequest) { + return mergeFrom((com.google.container.v1alpha1.SetLocationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetLocationsRequest other) { + if (other == com.google.container.v1alpha1.SetLocationsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetLocationsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetLocationsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000008; + } + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public com.google.protobuf.ProtocolStringList + getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public com.google.protobuf.ByteString + getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public Builder setLocations( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public Builder addLocations( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public Builder addAllLocations( + java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, locations_); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public Builder addLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetLocationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetLocationsRequest) + private static final com.google.container.v1alpha1.SetLocationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetLocationsRequest(); + } + + public static com.google.container.v1alpha1.SetLocationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLocationsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLocationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLocationsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLocationsRequestOrBuilder.java new file mode 100644 index 000000000000..a34f9ada7bb9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLocationsRequestOrBuilder.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetLocationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetLocationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + java.util.List + getLocationsList(); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + int getLocationsCount(); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + java.lang.String getLocations(int index); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + com.google.protobuf.ByteString + getLocationsBytes(int index); + + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLoggingServiceRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLoggingServiceRequest.java new file mode 100644 index 000000000000..a14360232210 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLoggingServiceRequest.java @@ -0,0 +1,1267 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetLoggingServiceRequest sets the logging service of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetLoggingServiceRequest} + */ +public final class SetLoggingServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetLoggingServiceRequest) + SetLoggingServiceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetLoggingServiceRequest.newBuilder() to construct. + private SetLoggingServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetLoggingServiceRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + loggingService_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetLoggingServiceRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + loggingService_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLoggingServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetLoggingServiceRequest.class, com.google.container.v1alpha1.SetLoggingServiceRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2; + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2; + */ + public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object loggingService_; + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string logging_service = 4; + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } + } + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string logging_service = 4; + */ + public com.google.protobuf.ByteString + getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getLoggingServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, loggingService_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getLoggingServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, loggingService_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1alpha1.SetLoggingServiceRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetLoggingServiceRequest other = (com.google.container.v1alpha1.SetLoggingServiceRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getLoggingService() + .equals(other.getLoggingService()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getLoggingService().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.container.v1alpha1.SetLoggingServiceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetLoggingServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetLoggingServiceRequest sets the logging service of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetLoggingServiceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetLoggingServiceRequest) + com.google.container.v1alpha1.SetLoggingServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLoggingServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetLoggingServiceRequest.class, com.google.container.v1alpha1.SetLoggingServiceRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetLoggingServiceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + loggingService_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLoggingServiceRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetLoggingServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLoggingServiceRequest build() { + com.google.container.v1alpha1.SetLoggingServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLoggingServiceRequest buildPartial() { + com.google.container.v1alpha1.SetLoggingServiceRequest result = new com.google.container.v1alpha1.SetLoggingServiceRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.loggingService_ = loggingService_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetLoggingServiceRequest) { + return mergeFrom((com.google.container.v1alpha1.SetLoggingServiceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetLoggingServiceRequest other) { + if (other == com.google.container.v1alpha1.SetLoggingServiceRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetLoggingServiceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetLoggingServiceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2; + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2; + */ + public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2; + */ + public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2; + */ + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2; + */ + public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object loggingService_ = ""; + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string logging_service = 4; + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string logging_service = 4; + */ + public com.google.protobuf.ByteString + getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string logging_service = 4; + */ + public Builder setLoggingService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + loggingService_ = value; + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string logging_service = 4; + */ + public Builder clearLoggingService() { + + loggingService_ = getDefaultInstance().getLoggingService(); + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string logging_service = 4; + */ + public Builder setLoggingServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + loggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetLoggingServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetLoggingServiceRequest) + private static final com.google.container.v1alpha1.SetLoggingServiceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetLoggingServiceRequest(); + } + + public static com.google.container.v1alpha1.SetLoggingServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLoggingServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLoggingServiceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetLoggingServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLoggingServiceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLoggingServiceRequestOrBuilder.java new file mode 100644 index 000000000000..c0dc1bb40f7f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetLoggingServiceRequestOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetLoggingServiceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetLoggingServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2; + */ + java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2; + */ + com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string logging_service = 4; + */ + java.lang.String getLoggingService(); + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string logging_service = 4; + */ + com.google.protobuf.ByteString + getLoggingServiceBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMaintenancePolicyRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMaintenancePolicyRequest.java new file mode 100644 index 000000000000..e7a4100e25b3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMaintenancePolicyRequest.java @@ -0,0 +1,1318 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetMaintenancePolicyRequest} + */ +public final class SetMaintenancePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetMaintenancePolicyRequest) + SetMaintenancePolicyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetMaintenancePolicyRequest.newBuilder() to construct. + private SetMaintenancePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetMaintenancePolicyRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetMaintenancePolicyRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + com.google.container.v1alpha1.MaintenancePolicy.Builder subBuilder = null; + if (maintenancePolicy_ != null) { + subBuilder = maintenancePolicy_.toBuilder(); + } + maintenancePolicy_ = input.readMessage(com.google.container.v1alpha1.MaintenancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenancePolicy_); + maintenancePolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMaintenancePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetMaintenancePolicyRequest.class, com.google.container.v1alpha1.SetMaintenancePolicyRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * 
+ * + * string zone = 2; + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * 
+ * + * string zone = 2; + */ + public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3; + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3; + */ + public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 4; + private com.google.container.v1alpha1.MaintenancePolicy maintenancePolicy_; + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicy_ != null; + } + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public com.google.container.v1alpha1.MaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null ? com.google.container.v1alpha1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public com.google.container.v1alpha1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + return getMaintenancePolicy(); + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (maintenancePolicy_ != null) { + output.writeMessage(4, getMaintenancePolicy()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (maintenancePolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMaintenancePolicy()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1alpha1.SetMaintenancePolicyRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetMaintenancePolicyRequest other = (com.google.container.v1alpha1.SetMaintenancePolicyRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (hasMaintenancePolicy() == other.hasMaintenancePolicy()); + if (hasMaintenancePolicy()) { + result = result && getMaintenancePolicy() + .equals(other.getMaintenancePolicy()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasMaintenancePolicy()) { + hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMaintenancePolicy().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.container.v1alpha1.SetMaintenancePolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetMaintenancePolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetMaintenancePolicyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetMaintenancePolicyRequest) + com.google.container.v1alpha1.SetMaintenancePolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMaintenancePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetMaintenancePolicyRequest.class, com.google.container.v1alpha1.SetMaintenancePolicyRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetMaintenancePolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMaintenancePolicyRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetMaintenancePolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMaintenancePolicyRequest build() { + com.google.container.v1alpha1.SetMaintenancePolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMaintenancePolicyRequest buildPartial() { + com.google.container.v1alpha1.SetMaintenancePolicyRequest result = new com.google.container.v1alpha1.SetMaintenancePolicyRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (maintenancePolicyBuilder_ == null) { + result.maintenancePolicy_ = maintenancePolicy_; + } else { + result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetMaintenancePolicyRequest) { + return mergeFrom((com.google.container.v1alpha1.SetMaintenancePolicyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetMaintenancePolicyRequest other) { + if (other == com.google.container.v1alpha1.SetMaintenancePolicyRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetMaintenancePolicyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetMaintenancePolicyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1; + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1; + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1; + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * 
+ * + * string zone = 2; + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * 
+ * + * string zone = 2; + */ + public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * 
+ * + * string zone = 2; + */ + public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * 
+ * + * string zone = 2; + */ + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * 
+ * + * string zone = 2; + */ + public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3; + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3; + */ + public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3; + */ + public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3; + */ + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3; + */ + public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.MaintenancePolicy maintenancePolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MaintenancePolicy, com.google.container.v1alpha1.MaintenancePolicy.Builder, com.google.container.v1alpha1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public com.google.container.v1alpha1.MaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null ? com.google.container.v1alpha1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } else { + return maintenancePolicyBuilder_.getMessage(); + } + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public Builder setMaintenancePolicy(com.google.container.v1alpha1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public Builder setMaintenancePolicy( + com.google.container.v1alpha1.MaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public Builder mergeMaintenancePolicy(com.google.container.v1alpha1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (maintenancePolicy_ != null) { + maintenancePolicy_ = + com.google.container.v1alpha1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); + } else { + maintenancePolicy_ = value; + } + onChanged(); + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public Builder clearMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + onChanged(); + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public com.google.container.v1alpha1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + public com.google.container.v1alpha1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null ? + com.google.container.v1alpha1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MaintenancePolicy, com.google.container.v1alpha1.MaintenancePolicy.Builder, com.google.container.v1alpha1.MaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MaintenancePolicy, com.google.container.v1alpha1.MaintenancePolicy.Builder, com.google.container.v1alpha1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), + getParentForChildren(), + isClean()); + maintenancePolicy_ = null; + } + return maintenancePolicyBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetMaintenancePolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetMaintenancePolicyRequest) + private static final com.google.container.v1alpha1.SetMaintenancePolicyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetMaintenancePolicyRequest(); + } + + public static com.google.container.v1alpha1.SetMaintenancePolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMaintenancePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMaintenancePolicyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMaintenancePolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMaintenancePolicyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMaintenancePolicyRequestOrBuilder.java new file mode 100644 index 000000000000..17ad8fbd514c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMaintenancePolicyRequestOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetMaintenancePolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetMaintenancePolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1; + */ + java.lang.String getProjectId(); + /** + *
+   * The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1; + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * 
+ * + * string zone = 2; + */ + java.lang.String getZone(); + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * 
+ * + * string zone = 2; + */ + com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3; + */ + java.lang.String getClusterId(); + /** + *
+   * The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3; + */ + com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + boolean hasMaintenancePolicy(); + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + com.google.container.v1alpha1.MaintenancePolicy getMaintenancePolicy(); + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1alpha1.MaintenancePolicy maintenance_policy = 4; + */ + com.google.container.v1alpha1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMasterAuthRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMasterAuthRequest.java new file mode 100644 index 000000000000..6934745faf35 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMasterAuthRequest.java @@ -0,0 +1,1591 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetMasterAuthRequest updates the admin password of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetMasterAuthRequest} + */ +public final class SetMasterAuthRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetMasterAuthRequest) + SetMasterAuthRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetMasterAuthRequest.newBuilder() to construct. + private SetMasterAuthRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetMasterAuthRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + action_ = 0; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetMasterAuthRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 42: { + com.google.container.v1alpha1.MasterAuth.Builder subBuilder = null; + if (update_ != null) { + subBuilder = update_.toBuilder(); + } + update_ = input.readMessage(com.google.container.v1alpha1.MasterAuth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(update_); + update_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMasterAuthRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetMasterAuthRequest.class, com.google.container.v1alpha1.SetMasterAuthRequest.Builder.class); + } + + /** + *
+   * Operation type: what type update to perform.
+   * 
+ * + * Protobuf enum {@code google.container.v1alpha1.SetMasterAuthRequest.Action} + */ + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Operation is unknown and will error out.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + *
+     * Set the password to a user generated value.
+     * 
+ * + * SET_PASSWORD = 1; + */ + SET_PASSWORD(1), + /** + *
+     * Generate a new password and set it to that.
+     * 
+ * + * GENERATE_PASSWORD = 2; + */ + GENERATE_PASSWORD(2), + /** + *
+     * Set the username.  If an empty username is provided, basic authentication
+     * is disabled for the cluster.  If a non-empty username is provided, basic
+     * authentication is enabled, with either a provided password or a generated
+     * one.
+     * 
+ * + * SET_USERNAME = 3; + */ + SET_USERNAME(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Operation is unknown and will error out.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + *
+     * Set the password to a user generated value.
+     * 
+ * + * SET_PASSWORD = 1; + */ + public static final int SET_PASSWORD_VALUE = 1; + /** + *
+     * Generate a new password and set it to that.
+     * 
+ * + * GENERATE_PASSWORD = 2; + */ + public static final int GENERATE_PASSWORD_VALUE = 2; + /** + *
+     * Set the username.  If an empty username is provided, basic authentication
+     * is disabled for the cluster.  If a non-empty username is provided, basic
+     * authentication is enabled, with either a provided password or a generated
+     * one.
+     * 
+ * + * SET_USERNAME = 3; + */ + public static final int SET_USERNAME_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Action valueOf(int value) { + return forNumber(value); + } + + public static Action forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return SET_PASSWORD; + case 2: return GENERATE_PASSWORD; + case 3: return SET_USERNAME; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1alpha1.SetMasterAuthRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final Action[] VALUES = values(); + + public static Action valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Action(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1alpha1.SetMasterAuthRequest.Action) + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 4; + private int action_; + /** + *
+   * The exact form of action to be taken on the master auth.
+   * 
+ * + * .google.container.v1alpha1.SetMasterAuthRequest.Action action = 4; + */ + public int getActionValue() { + return action_; + } + /** + *
+   * The exact form of action to be taken on the master auth.
+   * 
+ * + * .google.container.v1alpha1.SetMasterAuthRequest.Action action = 4; + */ + public com.google.container.v1alpha1.SetMasterAuthRequest.Action getAction() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.SetMasterAuthRequest.Action result = com.google.container.v1alpha1.SetMasterAuthRequest.Action.valueOf(action_); + return result == null ? com.google.container.v1alpha1.SetMasterAuthRequest.Action.UNRECOGNIZED : result; + } + + public static final int UPDATE_FIELD_NUMBER = 5; + private com.google.container.v1alpha1.MasterAuth update_; + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public boolean hasUpdate() { + return update_ != null; + } + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public com.google.container.v1alpha1.MasterAuth getUpdate() { + return update_ == null ? com.google.container.v1alpha1.MasterAuth.getDefaultInstance() : update_; + } + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public com.google.container.v1alpha1.MasterAuthOrBuilder getUpdateOrBuilder() { + return getUpdate(); + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (action_ != com.google.container.v1alpha1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { + output.writeEnum(4, action_); + } + if (update_ != null) { + output.writeMessage(5, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (action_ != com.google.container.v1alpha1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, action_); + } + if (update_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1alpha1.SetMasterAuthRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetMasterAuthRequest other = (com.google.container.v1alpha1.SetMasterAuthRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && action_ == other.action_; + result = result && (hasUpdate() == other.hasUpdate()); + if (hasUpdate()) { + result = result && getUpdate() + .equals(other.getUpdate()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + if (hasUpdate()) { + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().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.container.v1alpha1.SetMasterAuthRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetMasterAuthRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetMasterAuthRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetMasterAuthRequest updates the admin password of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetMasterAuthRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetMasterAuthRequest) + com.google.container.v1alpha1.SetMasterAuthRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMasterAuthRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetMasterAuthRequest.class, com.google.container.v1alpha1.SetMasterAuthRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetMasterAuthRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + action_ = 0; + + if (updateBuilder_ == null) { + update_ = null; + } else { + update_ = null; + updateBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMasterAuthRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetMasterAuthRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMasterAuthRequest build() { + com.google.container.v1alpha1.SetMasterAuthRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMasterAuthRequest buildPartial() { + com.google.container.v1alpha1.SetMasterAuthRequest result = new com.google.container.v1alpha1.SetMasterAuthRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.action_ = action_; + if (updateBuilder_ == null) { + result.update_ = update_; + } else { + result.update_ = updateBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetMasterAuthRequest) { + return mergeFrom((com.google.container.v1alpha1.SetMasterAuthRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetMasterAuthRequest other) { + if (other == com.google.container.v1alpha1.SetMasterAuthRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetMasterAuthRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetMasterAuthRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private int action_ = 0; + /** + *
+     * The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1alpha1.SetMasterAuthRequest.Action action = 4; + */ + public int getActionValue() { + return action_; + } + /** + *
+     * The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1alpha1.SetMasterAuthRequest.Action action = 4; + */ + public Builder setActionValue(int value) { + action_ = value; + onChanged(); + return this; + } + /** + *
+     * The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1alpha1.SetMasterAuthRequest.Action action = 4; + */ + public com.google.container.v1alpha1.SetMasterAuthRequest.Action getAction() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.SetMasterAuthRequest.Action result = com.google.container.v1alpha1.SetMasterAuthRequest.Action.valueOf(action_); + return result == null ? com.google.container.v1alpha1.SetMasterAuthRequest.Action.UNRECOGNIZED : result; + } + /** + *
+     * The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1alpha1.SetMasterAuthRequest.Action action = 4; + */ + public Builder setAction(com.google.container.v1alpha1.SetMasterAuthRequest.Action value) { + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1alpha1.SetMasterAuthRequest.Action action = 4; + */ + public Builder clearAction() { + + action_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.MasterAuth update_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuth, com.google.container.v1alpha1.MasterAuth.Builder, com.google.container.v1alpha1.MasterAuthOrBuilder> updateBuilder_; + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public boolean hasUpdate() { + return updateBuilder_ != null || update_ != null; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public com.google.container.v1alpha1.MasterAuth getUpdate() { + if (updateBuilder_ == null) { + return update_ == null ? com.google.container.v1alpha1.MasterAuth.getDefaultInstance() : update_; + } else { + return updateBuilder_.getMessage(); + } + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public Builder setUpdate(com.google.container.v1alpha1.MasterAuth value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + update_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public Builder setUpdate( + com.google.container.v1alpha1.MasterAuth.Builder builderForValue) { + if (updateBuilder_ == null) { + update_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public Builder mergeUpdate(com.google.container.v1alpha1.MasterAuth value) { + if (updateBuilder_ == null) { + if (update_ != null) { + update_ = + com.google.container.v1alpha1.MasterAuth.newBuilder(update_).mergeFrom(value).buildPartial(); + } else { + update_ = value; + } + onChanged(); + } else { + updateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + update_ = null; + onChanged(); + } else { + update_ = null; + updateBuilder_ = null; + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public com.google.container.v1alpha1.MasterAuth.Builder getUpdateBuilder() { + + onChanged(); + return getUpdateFieldBuilder().getBuilder(); + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + public com.google.container.v1alpha1.MasterAuthOrBuilder getUpdateOrBuilder() { + if (updateBuilder_ != null) { + return updateBuilder_.getMessageOrBuilder(); + } else { + return update_ == null ? + com.google.container.v1alpha1.MasterAuth.getDefaultInstance() : update_; + } + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuth, com.google.container.v1alpha1.MasterAuth.Builder, com.google.container.v1alpha1.MasterAuthOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.MasterAuth, com.google.container.v1alpha1.MasterAuth.Builder, com.google.container.v1alpha1.MasterAuthOrBuilder>( + getUpdate(), + getParentForChildren(), + isClean()); + update_ = null; + } + return updateBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetMasterAuthRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetMasterAuthRequest) + private static final com.google.container.v1alpha1.SetMasterAuthRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetMasterAuthRequest(); + } + + public static com.google.container.v1alpha1.SetMasterAuthRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMasterAuthRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMasterAuthRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMasterAuthRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMasterAuthRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMasterAuthRequestOrBuilder.java new file mode 100644 index 000000000000..aaaf2aca5da5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMasterAuthRequestOrBuilder.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetMasterAuthRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetMasterAuthRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The exact form of action to be taken on the master auth.
+   * 
+ * + * .google.container.v1alpha1.SetMasterAuthRequest.Action action = 4; + */ + int getActionValue(); + /** + *
+   * The exact form of action to be taken on the master auth.
+   * 
+ * + * .google.container.v1alpha1.SetMasterAuthRequest.Action action = 4; + */ + com.google.container.v1alpha1.SetMasterAuthRequest.Action getAction(); + + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + boolean hasUpdate(); + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + com.google.container.v1alpha1.MasterAuth getUpdate(); + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.MasterAuth update = 5; + */ + com.google.container.v1alpha1.MasterAuthOrBuilder getUpdateOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMonitoringServiceRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMonitoringServiceRequest.java new file mode 100644 index 000000000000..41488a37b83c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMonitoringServiceRequest.java @@ -0,0 +1,1267 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetMonitoringServiceRequest sets the monitoring service of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetMonitoringServiceRequest} + */ +public final class SetMonitoringServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetMonitoringServiceRequest) + SetMonitoringServiceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetMonitoringServiceRequest.newBuilder() to construct. + private SetMonitoringServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetMonitoringServiceRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + monitoringService_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetMonitoringServiceRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + monitoringService_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMonitoringServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetMonitoringServiceRequest.class, com.google.container.v1alpha1.SetMonitoringServiceRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONITORING_SERVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object monitoringService_; + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string monitoring_service = 4; + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } + } + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string monitoring_service = 4; + */ + public com.google.protobuf.ByteString + getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, monitoringService_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, monitoringService_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1alpha1.SetMonitoringServiceRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetMonitoringServiceRequest other = (com.google.container.v1alpha1.SetMonitoringServiceRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getMonitoringService() + .equals(other.getMonitoringService()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringService().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.container.v1alpha1.SetMonitoringServiceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetMonitoringServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetMonitoringServiceRequest sets the monitoring service of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetMonitoringServiceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetMonitoringServiceRequest) + com.google.container.v1alpha1.SetMonitoringServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMonitoringServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetMonitoringServiceRequest.class, com.google.container.v1alpha1.SetMonitoringServiceRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetMonitoringServiceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + monitoringService_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMonitoringServiceRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetMonitoringServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMonitoringServiceRequest build() { + com.google.container.v1alpha1.SetMonitoringServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMonitoringServiceRequest buildPartial() { + com.google.container.v1alpha1.SetMonitoringServiceRequest result = new com.google.container.v1alpha1.SetMonitoringServiceRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.monitoringService_ = monitoringService_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetMonitoringServiceRequest) { + return mergeFrom((com.google.container.v1alpha1.SetMonitoringServiceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetMonitoringServiceRequest other) { + if (other == com.google.container.v1alpha1.SetMonitoringServiceRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetMonitoringServiceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetMonitoringServiceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object monitoringService_ = ""; + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string monitoring_service = 4; + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string monitoring_service = 4; + */ + public com.google.protobuf.ByteString + getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string monitoring_service = 4; + */ + public Builder setMonitoringService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + monitoringService_ = value; + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string monitoring_service = 4; + */ + public Builder clearMonitoringService() { + + monitoringService_ = getDefaultInstance().getMonitoringService(); + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string monitoring_service = 4; + */ + public Builder setMonitoringServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + monitoringService_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetMonitoringServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetMonitoringServiceRequest) + private static final com.google.container.v1alpha1.SetMonitoringServiceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetMonitoringServiceRequest(); + } + + public static com.google.container.v1alpha1.SetMonitoringServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMonitoringServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMonitoringServiceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetMonitoringServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMonitoringServiceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMonitoringServiceRequestOrBuilder.java new file mode 100644 index 000000000000..3135b6b7d53c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetMonitoringServiceRequestOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetMonitoringServiceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetMonitoringServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string monitoring_service = 4; + */ + java.lang.String getMonitoringService(); + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string monitoring_service = 4; + */ + com.google.protobuf.ByteString + getMonitoringServiceBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNetworkPolicyRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNetworkPolicyRequest.java new file mode 100644 index 000000000000..88469519148f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNetworkPolicyRequest.java @@ -0,0 +1,1327 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetNetworkPolicyRequest enables/disables network policy for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetNetworkPolicyRequest} + */ +public final class SetNetworkPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetNetworkPolicyRequest) + SetNetworkPolicyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetNetworkPolicyRequest.newBuilder() to construct. + private SetNetworkPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNetworkPolicyRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNetworkPolicyRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + com.google.container.v1alpha1.NetworkPolicy.Builder subBuilder = null; + if (networkPolicy_ != null) { + subBuilder = networkPolicy_.toBuilder(); + } + networkPolicy_ = input.readMessage(com.google.container.v1alpha1.NetworkPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkPolicy_); + networkPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetNetworkPolicyRequest.class, com.google.container.v1alpha1.SetNetworkPolicyRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 4; + private com.google.container.v1alpha1.NetworkPolicy networkPolicy_; + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public boolean hasNetworkPolicy() { + return networkPolicy_ != null; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public com.google.container.v1alpha1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null ? com.google.container.v1alpha1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public com.google.container.v1alpha1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return getNetworkPolicy(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (networkPolicy_ != null) { + output.writeMessage(4, getNetworkPolicy()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (networkPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNetworkPolicy()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1alpha1.SetNetworkPolicyRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetNetworkPolicyRequest other = (com.google.container.v1alpha1.SetNetworkPolicyRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (hasNetworkPolicy() == other.hasNetworkPolicy()); + if (hasNetworkPolicy()) { + result = result && getNetworkPolicy() + .equals(other.getNetworkPolicy()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasNetworkPolicy()) { + hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicy().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.container.v1alpha1.SetNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetNetworkPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetNetworkPolicyRequest enables/disables network policy for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetNetworkPolicyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetNetworkPolicyRequest) + com.google.container.v1alpha1.SetNetworkPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetNetworkPolicyRequest.class, com.google.container.v1alpha1.SetNetworkPolicyRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetNetworkPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNetworkPolicyRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetNetworkPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNetworkPolicyRequest build() { + com.google.container.v1alpha1.SetNetworkPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNetworkPolicyRequest buildPartial() { + com.google.container.v1alpha1.SetNetworkPolicyRequest result = new com.google.container.v1alpha1.SetNetworkPolicyRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetNetworkPolicyRequest) { + return mergeFrom((com.google.container.v1alpha1.SetNetworkPolicyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetNetworkPolicyRequest other) { + if (other == com.google.container.v1alpha1.SetNetworkPolicyRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetNetworkPolicyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetNetworkPolicyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.NetworkPolicy networkPolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NetworkPolicy, com.google.container.v1alpha1.NetworkPolicy.Builder, com.google.container.v1alpha1.NetworkPolicyOrBuilder> networkPolicyBuilder_; + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public boolean hasNetworkPolicy() { + return networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public com.google.container.v1alpha1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null ? com.google.container.v1alpha1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public Builder setNetworkPolicy(com.google.container.v1alpha1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public Builder setNetworkPolicy( + com.google.container.v1alpha1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public Builder mergeNetworkPolicy(com.google.container.v1alpha1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (networkPolicy_ != null) { + networkPolicy_ = + com.google.container.v1alpha1.NetworkPolicy.newBuilder(networkPolicy_).mergeFrom(value).buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public com.google.container.v1alpha1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + public com.google.container.v1alpha1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null ? + com.google.container.v1alpha1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NetworkPolicy, com.google.container.v1alpha1.NetworkPolicy.Builder, com.google.container.v1alpha1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NetworkPolicy, com.google.container.v1alpha1.NetworkPolicy.Builder, com.google.container.v1alpha1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), + getParentForChildren(), + isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetNetworkPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetNetworkPolicyRequest) + private static final com.google.container.v1alpha1.SetNetworkPolicyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetNetworkPolicyRequest(); + } + + public static com.google.container.v1alpha1.SetNetworkPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNetworkPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNetworkPolicyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNetworkPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNetworkPolicyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNetworkPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..7ac101aed493 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetNetworkPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetNetworkPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + boolean hasNetworkPolicy(); + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + com.google.container.v1alpha1.NetworkPolicy getNetworkPolicy(); + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1alpha1.NetworkPolicy network_policy = 4; + */ + com.google.container.v1alpha1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolAutoscalingRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolAutoscalingRequest.java new file mode 100644 index 000000000000..648ccc673236 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolAutoscalingRequest.java @@ -0,0 +1,1489 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetNodePoolAutoscalingRequest} + */ +public final class SetNodePoolAutoscalingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetNodePoolAutoscalingRequest) + SetNodePoolAutoscalingRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetNodePoolAutoscalingRequest.newBuilder() to construct. + private SetNodePoolAutoscalingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNodePoolAutoscalingRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNodePoolAutoscalingRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 42: { + com.google.container.v1alpha1.NodePoolAutoscaling.Builder subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = input.readMessage(com.google.container.v1alpha1.NodePoolAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolAutoscalingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetNodePoolAutoscalingRequest.class, com.google.container.v1alpha1.SetNodePoolAutoscalingRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOSCALING_FIELD_NUMBER = 5; + private com.google.container.v1alpha1.NodePoolAutoscaling autoscaling_; + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public com.google.container.v1alpha1.NodePoolAutoscaling getAutoscaling() { + return autoscaling_ == null ? com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (autoscaling_ != null) { + output.writeMessage(5, getAutoscaling()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAutoscaling()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1alpha1.SetNodePoolAutoscalingRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetNodePoolAutoscalingRequest other = (com.google.container.v1alpha1.SetNodePoolAutoscalingRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && (hasAutoscaling() == other.hasAutoscaling()); + if (hasAutoscaling()) { + result = result && getAutoscaling() + .equals(other.getAutoscaling()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().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.container.v1alpha1.SetNodePoolAutoscalingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetNodePoolAutoscalingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetNodePoolAutoscalingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetNodePoolAutoscalingRequest) + com.google.container.v1alpha1.SetNodePoolAutoscalingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolAutoscalingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetNodePoolAutoscalingRequest.class, com.google.container.v1alpha1.SetNodePoolAutoscalingRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetNodePoolAutoscalingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetNodePoolAutoscalingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolAutoscalingRequest build() { + com.google.container.v1alpha1.SetNodePoolAutoscalingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolAutoscalingRequest buildPartial() { + com.google.container.v1alpha1.SetNodePoolAutoscalingRequest result = new com.google.container.v1alpha1.SetNodePoolAutoscalingRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetNodePoolAutoscalingRequest) { + return mergeFrom((com.google.container.v1alpha1.SetNodePoolAutoscalingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetNodePoolAutoscalingRequest other) { + if (other == com.google.container.v1alpha1.SetNodePoolAutoscalingRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetNodePoolAutoscalingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetNodePoolAutoscalingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.NodePoolAutoscaling autoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePoolAutoscaling, com.google.container.v1alpha1.NodePoolAutoscaling.Builder, com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder> autoscalingBuilder_; + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public com.google.container.v1alpha1.NodePoolAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null ? com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public Builder setAutoscaling(com.google.container.v1alpha1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public Builder setAutoscaling( + com.google.container.v1alpha1.NodePoolAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public Builder mergeAutoscaling(com.google.container.v1alpha1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1alpha1.NodePoolAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public com.google.container.v1alpha1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + public com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null ? + com.google.container.v1alpha1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePoolAutoscaling, com.google.container.v1alpha1.NodePoolAutoscaling.Builder, com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodePoolAutoscaling, com.google.container.v1alpha1.NodePoolAutoscaling.Builder, com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder>( + getAutoscaling(), + getParentForChildren(), + isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetNodePoolAutoscalingRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetNodePoolAutoscalingRequest) + private static final com.google.container.v1alpha1.SetNodePoolAutoscalingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetNodePoolAutoscalingRequest(); + } + + public static com.google.container.v1alpha1.SetNodePoolAutoscalingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolAutoscalingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNodePoolAutoscalingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolAutoscalingRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolAutoscalingRequestOrBuilder.java new file mode 100644 index 000000000000..a3ebf908f365 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -0,0 +1,142 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetNodePoolAutoscalingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetNodePoolAutoscalingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + boolean hasAutoscaling(); + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + com.google.container.v1alpha1.NodePoolAutoscaling getAutoscaling(); + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodePoolAutoscaling autoscaling = 5; + */ + com.google.container.v1alpha1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolManagementRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolManagementRequest.java new file mode 100644 index 000000000000..7ce0a0a03475 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolManagementRequest.java @@ -0,0 +1,1491 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetNodePoolManagementRequest sets the node management properties of a node
+ * pool.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetNodePoolManagementRequest} + */ +public final class SetNodePoolManagementRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetNodePoolManagementRequest) + SetNodePoolManagementRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetNodePoolManagementRequest.newBuilder() to construct. + private SetNodePoolManagementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNodePoolManagementRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNodePoolManagementRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 42: { + com.google.container.v1alpha1.NodeManagement.Builder subBuilder = null; + if (management_ != null) { + subBuilder = management_.toBuilder(); + } + management_ = input.readMessage(com.google.container.v1alpha1.NodeManagement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(management_); + management_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolManagementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetNodePoolManagementRequest.class, com.google.container.v1alpha1.SetNodePoolManagementRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGEMENT_FIELD_NUMBER = 5; + private com.google.container.v1alpha1.NodeManagement management_; + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public boolean hasManagement() { + return management_ != null; + } + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public com.google.container.v1alpha1.NodeManagement getManagement() { + return management_ == null ? com.google.container.v1alpha1.NodeManagement.getDefaultInstance() : management_; + } + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public com.google.container.v1alpha1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (management_ != null) { + output.writeMessage(5, getManagement()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (management_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getManagement()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1alpha1.SetNodePoolManagementRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetNodePoolManagementRequest other = (com.google.container.v1alpha1.SetNodePoolManagementRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && (hasManagement() == other.hasManagement()); + if (hasManagement()) { + result = result && getManagement() + .equals(other.getManagement()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + if (hasManagement()) { + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getManagement().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.container.v1alpha1.SetNodePoolManagementRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetNodePoolManagementRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetNodePoolManagementRequest sets the node management properties of a node
+   * pool.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetNodePoolManagementRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetNodePoolManagementRequest) + com.google.container.v1alpha1.SetNodePoolManagementRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolManagementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetNodePoolManagementRequest.class, com.google.container.v1alpha1.SetNodePoolManagementRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetNodePoolManagementRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolManagementRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetNodePoolManagementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolManagementRequest build() { + com.google.container.v1alpha1.SetNodePoolManagementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolManagementRequest buildPartial() { + com.google.container.v1alpha1.SetNodePoolManagementRequest result = new com.google.container.v1alpha1.SetNodePoolManagementRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetNodePoolManagementRequest) { + return mergeFrom((com.google.container.v1alpha1.SetNodePoolManagementRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetNodePoolManagementRequest other) { + if (other == com.google.container.v1alpha1.SetNodePoolManagementRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetNodePoolManagementRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetNodePoolManagementRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.NodeManagement management_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeManagement, com.google.container.v1alpha1.NodeManagement.Builder, com.google.container.v1alpha1.NodeManagementOrBuilder> managementBuilder_; + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public com.google.container.v1alpha1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null ? com.google.container.v1alpha1.NodeManagement.getDefaultInstance() : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public Builder setManagement(com.google.container.v1alpha1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public Builder setManagement( + com.google.container.v1alpha1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public Builder mergeManagement(com.google.container.v1alpha1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1alpha1.NodeManagement.newBuilder(management_).mergeFrom(value).buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public com.google.container.v1alpha1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + public com.google.container.v1alpha1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null ? + com.google.container.v1alpha1.NodeManagement.getDefaultInstance() : management_; + } + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeManagement, com.google.container.v1alpha1.NodeManagement.Builder, com.google.container.v1alpha1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.NodeManagement, com.google.container.v1alpha1.NodeManagement.Builder, com.google.container.v1alpha1.NodeManagementOrBuilder>( + getManagement(), + getParentForChildren(), + isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetNodePoolManagementRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetNodePoolManagementRequest) + private static final com.google.container.v1alpha1.SetNodePoolManagementRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetNodePoolManagementRequest(); + } + + public static com.google.container.v1alpha1.SetNodePoolManagementRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolManagementRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNodePoolManagementRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolManagementRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolManagementRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolManagementRequestOrBuilder.java new file mode 100644 index 000000000000..18547518f71c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolManagementRequestOrBuilder.java @@ -0,0 +1,142 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetNodePoolManagementRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetNodePoolManagementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + boolean hasManagement(); + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + com.google.container.v1alpha1.NodeManagement getManagement(); + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1alpha1.NodeManagement management = 5; + */ + com.google.container.v1alpha1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolSizeRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolSizeRequest.java new file mode 100644 index 000000000000..3858c5924d48 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolSizeRequest.java @@ -0,0 +1,1329 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetNodePoolSizeRequest sets the size a node
+ * pool.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetNodePoolSizeRequest} + */ +public final class SetNodePoolSizeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.SetNodePoolSizeRequest) + SetNodePoolSizeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetNodePoolSizeRequest.newBuilder() to construct. + private SetNodePoolSizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNodePoolSizeRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + nodeCount_ = 0; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNodePoolSizeRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 40: { + + nodeCount_ = input.readInt32(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetNodePoolSizeRequest.class, com.google.container.v1alpha1.SetNodePoolSizeRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_COUNT_FIELD_NUMBER = 5; + private int nodeCount_; + /** + *
+   * The desired node count for the pool.
+   * 
+ * + * int32 node_count = 5; + */ + public int getNodeCount() { + return nodeCount_; + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (nodeCount_ != 0) { + output.writeInt32(5, nodeCount_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, nodeCount_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1alpha1.SetNodePoolSizeRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.SetNodePoolSizeRequest other = (com.google.container.v1alpha1.SetNodePoolSizeRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && (getNodeCount() + == other.getNodeCount()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNodeCount(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.SetNodePoolSizeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetNodePoolSizeRequest sets the size a node
+   * pool.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.SetNodePoolSizeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.SetNodePoolSizeRequest) + com.google.container.v1alpha1.SetNodePoolSizeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.SetNodePoolSizeRequest.class, com.google.container.v1alpha1.SetNodePoolSizeRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.SetNodePoolSizeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + nodeCount_ = 0; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolSizeRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.SetNodePoolSizeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolSizeRequest build() { + com.google.container.v1alpha1.SetNodePoolSizeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolSizeRequest buildPartial() { + com.google.container.v1alpha1.SetNodePoolSizeRequest result = new com.google.container.v1alpha1.SetNodePoolSizeRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.nodeCount_ = nodeCount_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.SetNodePoolSizeRequest) { + return mergeFrom((com.google.container.v1alpha1.SetNodePoolSizeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.SetNodePoolSizeRequest other) { + if (other == com.google.container.v1alpha1.SetNodePoolSizeRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.SetNodePoolSizeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.SetNodePoolSizeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private int nodeCount_ ; + /** + *
+     * The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5; + */ + public int getNodeCount() { + return nodeCount_; + } + /** + *
+     * The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5; + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5; + */ + public Builder clearNodeCount() { + + nodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.SetNodePoolSizeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.SetNodePoolSizeRequest) + private static final com.google.container.v1alpha1.SetNodePoolSizeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.SetNodePoolSizeRequest(); + } + + public static com.google.container.v1alpha1.SetNodePoolSizeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolSizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNodePoolSizeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.SetNodePoolSizeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolSizeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolSizeRequestOrBuilder.java new file mode 100644 index 000000000000..366fd1d29e52 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/SetNodePoolSizeRequestOrBuilder.java @@ -0,0 +1,124 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface SetNodePoolSizeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.SetNodePoolSizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * The desired node count for the pool.
+   * 
+ * + * int32 node_count = 5; + */ + int getNodeCount(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StartIPRotationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StartIPRotationRequest.java new file mode 100644 index 000000000000..19917d627300 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StartIPRotationRequest.java @@ -0,0 +1,1168 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * StartIPRotationRequest creates a new IP for the cluster and then performs
+ * a node upgrade on each node pool to point to the new IP.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.StartIPRotationRequest} + */ +public final class StartIPRotationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.StartIPRotationRequest) + StartIPRotationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use StartIPRotationRequest.newBuilder() to construct. + private StartIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StartIPRotationRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + rotateCredentials_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StartIPRotationRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 56: { + + rotateCredentials_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_StartIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.StartIPRotationRequest.class, com.google.container.v1alpha1.StartIPRotationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 ROTATE_CREDENTIALS_FIELD_NUMBER = 7; + private boolean rotateCredentials_; + /** + *
+   * Whether to rotate credentials during IP rotation.
+   * 
+ * + * bool rotate_credentials = 7; + */ + public boolean getRotateCredentials() { + return rotateCredentials_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + if (rotateCredentials_ != false) { + output.writeBool(7, rotateCredentials_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + if (rotateCredentials_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, rotateCredentials_); + } + 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.container.v1alpha1.StartIPRotationRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.StartIPRotationRequest other = (com.google.container.v1alpha1.StartIPRotationRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); + result = result && (getRotateCredentials() + == other.getRotateCredentials()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ROTATE_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRotateCredentials()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.StartIPRotationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.StartIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.StartIPRotationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * StartIPRotationRequest creates a new IP for the cluster and then performs
+   * a node upgrade on each node pool to point to the new IP.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.StartIPRotationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.StartIPRotationRequest) + com.google.container.v1alpha1.StartIPRotationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_StartIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.StartIPRotationRequest.class, com.google.container.v1alpha1.StartIPRotationRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.StartIPRotationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + rotateCredentials_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.StartIPRotationRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.StartIPRotationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.StartIPRotationRequest build() { + com.google.container.v1alpha1.StartIPRotationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.StartIPRotationRequest buildPartial() { + com.google.container.v1alpha1.StartIPRotationRequest result = new com.google.container.v1alpha1.StartIPRotationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + result.rotateCredentials_ = rotateCredentials_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.StartIPRotationRequest) { + return mergeFrom((com.google.container.v1alpha1.StartIPRotationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.StartIPRotationRequest other) { + if (other == com.google.container.v1alpha1.StartIPRotationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getRotateCredentials() != false) { + setRotateCredentials(other.getRotateCredentials()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.StartIPRotationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.StartIPRotationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean rotateCredentials_ ; + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + */ + public boolean getRotateCredentials() { + return rotateCredentials_; + } + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + */ + public Builder setRotateCredentials(boolean value) { + + rotateCredentials_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + */ + public Builder clearRotateCredentials() { + + rotateCredentials_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.StartIPRotationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.StartIPRotationRequest) + private static final com.google.container.v1alpha1.StartIPRotationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.StartIPRotationRequest(); + } + + public static com.google.container.v1alpha1.StartIPRotationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartIPRotationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartIPRotationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.StartIPRotationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StartIPRotationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StartIPRotationRequestOrBuilder.java new file mode 100644 index 000000000000..667d74d73706 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StartIPRotationRequestOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface StartIPRotationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.StartIPRotationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Whether to rotate credentials during IP rotation.
+   * 
+ * + * bool rotate_credentials = 7; + */ + boolean getRotateCredentials(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StatusCondition.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StatusCondition.java new file mode 100644 index 000000000000..7c31829b00d3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StatusCondition.java @@ -0,0 +1,831 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * StatusCondition describes why a cluster or a node pool has a certain status
+ * (e.g., ERROR or DEGRADED).
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.StatusCondition} + */ +public final class StatusCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.StatusCondition) + StatusConditionOrBuilder { +private static final long serialVersionUID = 0L; + // Use StatusCondition.newBuilder() to construct. + private StatusCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StatusCondition() { + code_ = 0; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StatusCondition( + 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 8: { + int rawValue = input.readEnum(); + + code_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_StatusCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_StatusCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.StatusCondition.class, com.google.container.v1alpha1.StatusCondition.Builder.class); + } + + /** + *
+   * Code for each condition
+   * 
+ * + * Protobuf enum {@code google.container.v1alpha1.StatusCondition.Code} + */ + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * UNKNOWN indicates a generic condition.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + *
+     * GCE_STOCKOUT indicates a GCE stockout.
+     * 
+ * + * GCE_STOCKOUT = 1; + */ + GCE_STOCKOUT(1), + /** + *
+     * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
+     * service account.
+     * More codes TBA
+     * 
+ * + * GKE_SERVICE_ACCOUNT_DELETED = 2; + */ + GKE_SERVICE_ACCOUNT_DELETED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * UNKNOWN indicates a generic condition.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + *
+     * GCE_STOCKOUT indicates a GCE stockout.
+     * 
+ * + * GCE_STOCKOUT = 1; + */ + public static final int GCE_STOCKOUT_VALUE = 1; + /** + *
+     * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
+     * service account.
+     * More codes TBA
+     * 
+ * + * GKE_SERVICE_ACCOUNT_DELETED = 2; + */ + public static final int GKE_SERVICE_ACCOUNT_DELETED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Code valueOf(int value) { + return forNumber(value); + } + + public static Code forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return GCE_STOCKOUT; + case 2: return GKE_SERVICE_ACCOUNT_DELETED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1alpha1.StatusCondition.getDescriptor().getEnumTypes().get(0); + } + + private static final Code[] VALUES = values(); + + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1alpha1.StatusCondition.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + *
+   * Machine-friendly representation of the condition
+   * 
+ * + * .google.container.v1alpha1.StatusCondition.Code code = 1; + */ + public int getCodeValue() { + return code_; + } + /** + *
+   * Machine-friendly representation of the condition
+   * 
+ * + * .google.container.v1alpha1.StatusCondition.Code code = 1; + */ + public com.google.container.v1alpha1.StatusCondition.Code getCode() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.StatusCondition.Code result = com.google.container.v1alpha1.StatusCondition.Code.valueOf(code_); + return result == null ? com.google.container.v1alpha1.StatusCondition.Code.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.container.v1alpha1.StatusCondition.Code.UNKNOWN.getNumber()) { + output.writeEnum(1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != com.google.container.v1alpha1.StatusCondition.Code.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + 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.container.v1alpha1.StatusCondition)) { + return super.equals(obj); + } + com.google.container.v1alpha1.StatusCondition other = (com.google.container.v1alpha1.StatusCondition) obj; + + boolean result = true; + result = result && code_ == other.code_; + result = result && getMessage() + .equals(other.getMessage()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.StatusCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.StatusCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.StatusCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.StatusCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.StatusCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.StatusCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.StatusCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.StatusCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.StatusCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.StatusCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.StatusCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.StatusCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.StatusCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * StatusCondition describes why a cluster or a node pool has a certain status
+   * (e.g., ERROR or DEGRADED).
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.StatusCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.StatusCondition) + com.google.container.v1alpha1.StatusConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_StatusCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_StatusCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.StatusCondition.class, com.google.container.v1alpha1.StatusCondition.Builder.class); + } + + // Construct using com.google.container.v1alpha1.StatusCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + code_ = 0; + + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_StatusCondition_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.StatusCondition getDefaultInstanceForType() { + return com.google.container.v1alpha1.StatusCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.StatusCondition build() { + com.google.container.v1alpha1.StatusCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.StatusCondition buildPartial() { + com.google.container.v1alpha1.StatusCondition result = new com.google.container.v1alpha1.StatusCondition(this); + result.code_ = code_; + result.message_ = message_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.StatusCondition) { + return mergeFrom((com.google.container.v1alpha1.StatusCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.StatusCondition other) { + if (other == com.google.container.v1alpha1.StatusCondition.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.StatusCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.StatusCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ = 0; + /** + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1alpha1.StatusCondition.Code code = 1; + */ + public int getCodeValue() { + return code_; + } + /** + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1alpha1.StatusCondition.Code code = 1; + */ + public Builder setCodeValue(int value) { + code_ = value; + onChanged(); + return this; + } + /** + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1alpha1.StatusCondition.Code code = 1; + */ + public com.google.container.v1alpha1.StatusCondition.Code getCode() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.StatusCondition.Code result = com.google.container.v1alpha1.StatusCondition.Code.valueOf(code_); + return result == null ? com.google.container.v1alpha1.StatusCondition.Code.UNRECOGNIZED : result; + } + /** + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1alpha1.StatusCondition.Code code = 1; + */ + public Builder setCode(com.google.container.v1alpha1.StatusCondition.Code value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1alpha1.StatusCondition.Code code = 1; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.StatusCondition) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.StatusCondition) + private static final com.google.container.v1alpha1.StatusCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.StatusCondition(); + } + + public static com.google.container.v1alpha1.StatusCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StatusCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.StatusCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StatusConditionOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StatusConditionOrBuilder.java new file mode 100644 index 000000000000..da82da55d821 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/StatusConditionOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface StatusConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.StatusCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Machine-friendly representation of the condition
+   * 
+ * + * .google.container.v1alpha1.StatusCondition.Code code = 1; + */ + int getCodeValue(); + /** + *
+   * Machine-friendly representation of the condition
+   * 
+ * + * .google.container.v1alpha1.StatusCondition.Code code = 1; + */ + com.google.container.v1alpha1.StatusCondition.Code getCode(); + + /** + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateClusterRequest.java new file mode 100644 index 000000000000..b0b42dbb5cde --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateClusterRequest.java @@ -0,0 +1,1320 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * UpdateClusterRequest updates the settings of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.UpdateClusterRequest} + */ +public final class UpdateClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.UpdateClusterRequest) + UpdateClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateClusterRequest.newBuilder() to construct. + private UpdateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateClusterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + com.google.container.v1alpha1.ClusterUpdate.Builder subBuilder = null; + if (update_ != null) { + subBuilder = update_.toBuilder(); + } + update_ = input.readMessage(com.google.container.v1alpha1.ClusterUpdate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(update_); + update_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.UpdateClusterRequest.class, com.google.container.v1alpha1.UpdateClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_FIELD_NUMBER = 4; + private com.google.container.v1alpha1.ClusterUpdate update_; + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public boolean hasUpdate() { + return update_ != null; + } + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public com.google.container.v1alpha1.ClusterUpdate getUpdate() { + return update_ == null ? com.google.container.v1alpha1.ClusterUpdate.getDefaultInstance() : update_; + } + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public com.google.container.v1alpha1.ClusterUpdateOrBuilder getUpdateOrBuilder() { + return getUpdate(); + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (update_ != null) { + output.writeMessage(4, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (update_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1alpha1.UpdateClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.UpdateClusterRequest other = (com.google.container.v1alpha1.UpdateClusterRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (hasUpdate() == other.hasUpdate()); + if (hasUpdate()) { + result = result && getUpdate() + .equals(other.getUpdate()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasUpdate()) { + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().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.container.v1alpha1.UpdateClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UpdateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.UpdateClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UpdateClusterRequest updates the settings of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.UpdateClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.UpdateClusterRequest) + com.google.container.v1alpha1.UpdateClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.UpdateClusterRequest.class, com.google.container.v1alpha1.UpdateClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.UpdateClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (updateBuilder_ == null) { + update_ = null; + } else { + update_ = null; + updateBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateClusterRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.UpdateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateClusterRequest build() { + com.google.container.v1alpha1.UpdateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateClusterRequest buildPartial() { + com.google.container.v1alpha1.UpdateClusterRequest result = new com.google.container.v1alpha1.UpdateClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (updateBuilder_ == null) { + result.update_ = update_; + } else { + result.update_ = updateBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.UpdateClusterRequest) { + return mergeFrom((com.google.container.v1alpha1.UpdateClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.UpdateClusterRequest other) { + if (other == com.google.container.v1alpha1.UpdateClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.UpdateClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.UpdateClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1alpha1.ClusterUpdate update_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClusterUpdate, com.google.container.v1alpha1.ClusterUpdate.Builder, com.google.container.v1alpha1.ClusterUpdateOrBuilder> updateBuilder_; + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public boolean hasUpdate() { + return updateBuilder_ != null || update_ != null; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public com.google.container.v1alpha1.ClusterUpdate getUpdate() { + if (updateBuilder_ == null) { + return update_ == null ? com.google.container.v1alpha1.ClusterUpdate.getDefaultInstance() : update_; + } else { + return updateBuilder_.getMessage(); + } + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public Builder setUpdate(com.google.container.v1alpha1.ClusterUpdate value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + update_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public Builder setUpdate( + com.google.container.v1alpha1.ClusterUpdate.Builder builderForValue) { + if (updateBuilder_ == null) { + update_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public Builder mergeUpdate(com.google.container.v1alpha1.ClusterUpdate value) { + if (updateBuilder_ == null) { + if (update_ != null) { + update_ = + com.google.container.v1alpha1.ClusterUpdate.newBuilder(update_).mergeFrom(value).buildPartial(); + } else { + update_ = value; + } + onChanged(); + } else { + updateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + update_ = null; + onChanged(); + } else { + update_ = null; + updateBuilder_ = null; + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public com.google.container.v1alpha1.ClusterUpdate.Builder getUpdateBuilder() { + + onChanged(); + return getUpdateFieldBuilder().getBuilder(); + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + public com.google.container.v1alpha1.ClusterUpdateOrBuilder getUpdateOrBuilder() { + if (updateBuilder_ != null) { + return updateBuilder_.getMessageOrBuilder(); + } else { + return update_ == null ? + com.google.container.v1alpha1.ClusterUpdate.getDefaultInstance() : update_; + } + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClusterUpdate, com.google.container.v1alpha1.ClusterUpdate.Builder, com.google.container.v1alpha1.ClusterUpdateOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1alpha1.ClusterUpdate, com.google.container.v1alpha1.ClusterUpdate.Builder, com.google.container.v1alpha1.ClusterUpdateOrBuilder>( + getUpdate(), + getParentForChildren(), + isClean()); + update_ = null; + } + return updateBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.UpdateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.UpdateClusterRequest) + private static final com.google.container.v1alpha1.UpdateClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.UpdateClusterRequest(); + } + + public static com.google.container.v1alpha1.UpdateClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateClusterRequestOrBuilder.java new file mode 100644 index 000000000000..8e00aee552e4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateClusterRequestOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface UpdateClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.UpdateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + boolean hasUpdate(); + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + com.google.container.v1alpha1.ClusterUpdate getUpdate(); + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1alpha1.ClusterUpdate update = 4; + */ + com.google.container.v1alpha1.ClusterUpdateOrBuilder getUpdateOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateMasterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateMasterRequest.java new file mode 100644 index 000000000000..241b28c5e0f7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateMasterRequest.java @@ -0,0 +1,1288 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * UpdateMasterRequest updates the master of the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.UpdateMasterRequest} + */ +public final class UpdateMasterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.UpdateMasterRequest) + UpdateMasterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateMasterRequest.newBuilder() to construct. + private UpdateMasterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateMasterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + masterVersion_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateMasterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + masterVersion_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateMasterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.UpdateMasterRequest.class, com.google.container.v1alpha1.UpdateMasterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object masterVersion_; + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4; + */ + public java.lang.String getMasterVersion() { + java.lang.Object ref = masterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterVersion_ = s; + return s; + } + } + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4; + */ + public com.google.protobuf.ByteString + getMasterVersionBytes() { + java.lang.Object ref = masterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + masterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getMasterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, masterVersion_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getMasterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, masterVersion_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1alpha1.UpdateMasterRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.UpdateMasterRequest other = (com.google.container.v1alpha1.UpdateMasterRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getMasterVersion() + .equals(other.getMasterVersion()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMasterVersion().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.container.v1alpha1.UpdateMasterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UpdateMasterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.UpdateMasterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UpdateMasterRequest updates the master of the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.UpdateMasterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.UpdateMasterRequest) + com.google.container.v1alpha1.UpdateMasterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateMasterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.UpdateMasterRequest.class, com.google.container.v1alpha1.UpdateMasterRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.UpdateMasterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + masterVersion_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateMasterRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.UpdateMasterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateMasterRequest build() { + com.google.container.v1alpha1.UpdateMasterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateMasterRequest buildPartial() { + com.google.container.v1alpha1.UpdateMasterRequest result = new com.google.container.v1alpha1.UpdateMasterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.masterVersion_ = masterVersion_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.UpdateMasterRequest) { + return mergeFrom((com.google.container.v1alpha1.UpdateMasterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.UpdateMasterRequest other) { + if (other == com.google.container.v1alpha1.UpdateMasterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getMasterVersion().isEmpty()) { + masterVersion_ = other.masterVersion_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.UpdateMasterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.UpdateMasterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object masterVersion_ = ""; + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4; + */ + public java.lang.String getMasterVersion() { + java.lang.Object ref = masterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4; + */ + public com.google.protobuf.ByteString + getMasterVersionBytes() { + java.lang.Object ref = masterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + masterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4; + */ + public Builder setMasterVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4; + */ + public Builder clearMasterVersion() { + + masterVersion_ = getDefaultInstance().getMasterVersion(); + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4; + */ + public Builder setMasterVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.UpdateMasterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.UpdateMasterRequest) + private static final com.google.container.v1alpha1.UpdateMasterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.UpdateMasterRequest(); + } + + public static com.google.container.v1alpha1.UpdateMasterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMasterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMasterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateMasterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateMasterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateMasterRequestOrBuilder.java new file mode 100644 index 000000000000..399fa6795cc0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateMasterRequestOrBuilder.java @@ -0,0 +1,125 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface UpdateMasterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.UpdateMasterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4; + */ + java.lang.String getMasterVersion(); + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4; + */ + com.google.protobuf.ByteString + getMasterVersionBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateNodePoolRequest.java new file mode 100644 index 000000000000..65a893d84827 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateNodePoolRequest.java @@ -0,0 +1,1626 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * SetNodePoolVersionRequest updates the version of a node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.UpdateNodePoolRequest} + */ +public final class UpdateNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.UpdateNodePoolRequest) + UpdateNodePoolRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateNodePoolRequest.newBuilder() to construct. + private UpdateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + nodeVersion_ = ""; + imageType_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateNodePoolRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeVersion_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + imageType_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.UpdateNodePoolRequest.class, com.google.container.v1alpha1.UpdateNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeVersion_; + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5; + */ + public java.lang.String getNodeVersion() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeVersion_ = s; + return s; + } + } + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5; + */ + public com.google.protobuf.ByteString + getNodeVersionBytes() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 6; + private volatile java.lang.Object imageType_; + /** + *
+   * The desired image type for the node pool.
+   * 
+ * + * string image_type = 6; + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + *
+   * The desired image type for the node pool.
+   * 
+ * + * string image_type = 6; + */ + public com.google.protobuf.ByteString + getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNodeVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeVersion_); + } + if (!getImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, imageType_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNodeVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeVersion_); + } + if (!getImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, imageType_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, 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.container.v1alpha1.UpdateNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1alpha1.UpdateNodePoolRequest other = (com.google.container.v1alpha1.UpdateNodePoolRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && getNodeVersion() + .equals(other.getNodeVersion()); + result = result && getImageType() + .equals(other.getImageType()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NODE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getNodeVersion().hashCode(); + hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getImageType().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.container.v1alpha1.UpdateNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.UpdateNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetNodePoolVersionRequest updates the version of a node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.UpdateNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.UpdateNodePoolRequest) + com.google.container.v1alpha1.UpdateNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.UpdateNodePoolRequest.class, com.google.container.v1alpha1.UpdateNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1alpha1.UpdateNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + nodeVersion_ = ""; + + imageType_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1alpha1.UpdateNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateNodePoolRequest build() { + com.google.container.v1alpha1.UpdateNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateNodePoolRequest buildPartial() { + com.google.container.v1alpha1.UpdateNodePoolRequest result = new com.google.container.v1alpha1.UpdateNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.nodeVersion_ = nodeVersion_; + result.imageType_ = imageType_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.UpdateNodePoolRequest) { + return mergeFrom((com.google.container.v1alpha1.UpdateNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.UpdateNodePoolRequest other) { + if (other == com.google.container.v1alpha1.UpdateNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getNodeVersion().isEmpty()) { + nodeVersion_ = other.nodeVersion_; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.UpdateNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.UpdateNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeVersion_ = ""; + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5; + */ + public java.lang.String getNodeVersion() { + java.lang.Object ref = nodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5; + */ + public com.google.protobuf.ByteString + getNodeVersionBytes() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5; + */ + public Builder setNodeVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5; + */ + public Builder clearNodeVersion() { + + nodeVersion_ = getDefaultInstance().getNodeVersion(); + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5; + */ + public Builder setNodeVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + *
+     * The desired image type for the node pool.
+     * 
+ * + * string image_type = 6; + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The desired image type for the node pool.
+     * 
+ * + * string image_type = 6; + */ + public com.google.protobuf.ByteString + getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The desired image type for the node pool.
+     * 
+ * + * string image_type = 6; + */ + public Builder setImageType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + *
+     * The desired image type for the node pool.
+     * 
+ * + * string image_type = 6; + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + *
+     * The desired image type for the node pool.
+     * 
+ * + * string image_type = 6; + */ + public Builder setImageTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.UpdateNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.UpdateNodePoolRequest) + private static final com.google.container.v1alpha1.UpdateNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.UpdateNodePoolRequest(); + } + + public static com.google.container.v1alpha1.UpdateNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.UpdateNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..128eea9fb948 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UpdateNodePoolRequestOrBuilder.java @@ -0,0 +1,169 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface UpdateNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.UpdateNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5; + */ + java.lang.String getNodeVersion(); + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5; + */ + com.google.protobuf.ByteString + getNodeVersionBytes(); + + /** + *
+   * The desired image type for the node pool.
+   * 
+ * + * string image_type = 6; + */ + java.lang.String getImageType(); + /** + *
+   * The desired image type for the node pool.
+   * 
+ * + * string image_type = 6; + */ + com.google.protobuf.ByteString + getImageTypeBytes(); + + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetwork.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetwork.java new file mode 100644 index 000000000000..0c84dd56d832 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetwork.java @@ -0,0 +1,1505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * UsableSubnetwork resource returns the subnetwork name, its associated network
+ * and the primary CIDR range.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.UsableSubnetwork} + */ +public final class UsableSubnetwork extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.UsableSubnetwork) + UsableSubnetworkOrBuilder { +private static final long serialVersionUID = 0L; + // Use UsableSubnetwork.newBuilder() to construct. + private UsableSubnetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UsableSubnetwork() { + subnetwork_ = ""; + network_ = ""; + ipCidrRange_ = ""; + secondaryIpRanges_ = java.util.Collections.emptyList(); + statusMessage_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UsableSubnetwork( + 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(); + + subnetwork_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + ipCidrRange_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + secondaryIpRanges_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + secondaryIpRanges_.add( + input.readMessage(com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.parser(), extensionRegistry)); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UsableSubnetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.UsableSubnetwork.class, com.google.container.v1alpha1.UsableSubnetwork.Builder.class); + } + + private int bitField0_; + public static final int SUBNETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object subnetwork_; + /** + *
+   * Subnetwork Name.
+   * 
+ * + * string subnetwork = 1; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + *
+   * Subnetwork Name.
+   * 
+ * + * string subnetwork = 1; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object network_; + /** + *
+   * Network Name.
+   * 
+ * + * string network = 2; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + *
+   * Network Name.
+   * 
+ * + * string network = 2; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 3; + private volatile java.lang.Object ipCidrRange_; + /** + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + */ + public com.google.protobuf.ByteString + getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_IP_RANGES_FIELD_NUMBER = 4; + private java.util.List secondaryIpRanges_; + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List getSecondaryIpRangesList() { + return secondaryIpRanges_; + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List + getSecondaryIpRangesOrBuilderList() { + return secondaryIpRanges_; + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public int getSecondaryIpRangesCount() { + return secondaryIpRanges_.size(); + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { + return secondaryIpRanges_.get(index); + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( + int index) { + return secondaryIpRanges_.get(index); + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object statusMessage_; + /** + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = 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 (!getSubnetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); + } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipCidrRange_); + } + for (int i = 0; i < secondaryIpRanges_.size(); i++) { + output.writeMessage(4, secondaryIpRanges_.get(i)); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubnetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); + } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipCidrRange_); + } + for (int i = 0; i < secondaryIpRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, secondaryIpRanges_.get(i)); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + 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.container.v1alpha1.UsableSubnetwork)) { + return super.equals(obj); + } + com.google.container.v1alpha1.UsableSubnetwork other = (com.google.container.v1alpha1.UsableSubnetwork) obj; + + boolean result = true; + result = result && getSubnetwork() + .equals(other.getSubnetwork()); + result = result && getNetwork() + .equals(other.getNetwork()); + result = result && getIpCidrRange() + .equals(other.getIpCidrRange()); + result = result && getSecondaryIpRangesList() + .equals(other.getSecondaryIpRangesList()); + result = result && getStatusMessage() + .equals(other.getStatusMessage()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpCidrRange().hashCode(); + if (getSecondaryIpRangesCount() > 0) { + hash = (37 * hash) + SECONDARY_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryIpRangesList().hashCode(); + } + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.UsableSubnetwork parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UsableSubnetwork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.UsableSubnetwork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UsableSubnetwork resource returns the subnetwork name, its associated network
+   * and the primary CIDR range.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.UsableSubnetwork} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.UsableSubnetwork) + com.google.container.v1alpha1.UsableSubnetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UsableSubnetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.UsableSubnetwork.class, com.google.container.v1alpha1.UsableSubnetwork.Builder.class); + } + + // Construct using com.google.container.v1alpha1.UsableSubnetwork.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSecondaryIpRangesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + subnetwork_ = ""; + + network_ = ""; + + ipCidrRange_ = ""; + + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + secondaryIpRangesBuilder_.clear(); + } + statusMessage_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.UsableSubnetwork getDefaultInstanceForType() { + return com.google.container.v1alpha1.UsableSubnetwork.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.UsableSubnetwork build() { + com.google.container.v1alpha1.UsableSubnetwork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.UsableSubnetwork buildPartial() { + com.google.container.v1alpha1.UsableSubnetwork result = new com.google.container.v1alpha1.UsableSubnetwork(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.subnetwork_ = subnetwork_; + result.network_ = network_; + result.ipCidrRange_ = ipCidrRange_; + if (secondaryIpRangesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.secondaryIpRanges_ = secondaryIpRanges_; + } else { + result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); + } + result.statusMessage_ = statusMessage_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.UsableSubnetwork) { + return mergeFrom((com.google.container.v1alpha1.UsableSubnetwork)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.UsableSubnetwork other) { + if (other == com.google.container.v1alpha1.UsableSubnetwork.getDefaultInstance()) return this; + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + onChanged(); + } + if (secondaryIpRangesBuilder_ == null) { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRanges_.isEmpty()) { + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.addAll(other.secondaryIpRanges_); + } + onChanged(); + } + } else { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRangesBuilder_.isEmpty()) { + secondaryIpRangesBuilder_.dispose(); + secondaryIpRangesBuilder_ = null; + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + secondaryIpRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecondaryIpRangesFieldBuilder() : null; + } else { + secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); + } + } + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.UsableSubnetwork parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.UsableSubnetwork) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * Subnetwork Name.
+     * 
+ * + * string subnetwork = 1; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Subnetwork Name.
+     * 
+ * + * string subnetwork = 1; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Subnetwork Name.
+     * 
+ * + * string subnetwork = 1; + */ + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + *
+     * Subnetwork Name.
+     * 
+ * + * string subnetwork = 1; + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + *
+     * Subnetwork Name.
+     * 
+ * + * string subnetwork = 1; + */ + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+     * Network Name.
+     * 
+ * + * string network = 2; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Network Name.
+     * 
+ * + * string network = 2; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Network Name.
+     * 
+ * + * string network = 2; + */ + public Builder setNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + *
+     * Network Name.
+     * 
+ * + * string network = 2; + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + *
+     * Network Name.
+     * 
+ * + * string network = 2; + */ + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + */ + public com.google.protobuf.ByteString + getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + */ + public Builder setIpCidrRange( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + */ + public Builder setIpCidrRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private java.util.List secondaryIpRanges_ = + java.util.Collections.emptyList(); + private void ensureSecondaryIpRangesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + secondaryIpRanges_ = new java.util.ArrayList(secondaryIpRanges_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange, com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1alpha1.UsableSubnetworkSecondaryRangeOrBuilder> secondaryIpRangesBuilder_; + + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List getSecondaryIpRangesList() { + if (secondaryIpRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } else { + return secondaryIpRangesBuilder_.getMessageList(); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public int getSecondaryIpRangesCount() { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.size(); + } else { + return secondaryIpRangesBuilder_.getCount(); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); + } else { + return secondaryIpRangesBuilder_.getMessage(index); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder setSecondaryIpRanges( + int index, com.google.container.v1alpha1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.set(index, value); + onChanged(); + } else { + secondaryIpRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder setSecondaryIpRanges( + int index, com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges(com.google.container.v1alpha1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(value); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + int index, com.google.container.v1alpha1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(index, value); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + int index, com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addAllSecondaryIpRanges( + java.lang.Iterable values) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secondaryIpRanges_); + onChanged(); + } else { + secondaryIpRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder clearSecondaryIpRanges() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + secondaryIpRangesBuilder_.clear(); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder removeSecondaryIpRanges(int index) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.remove(index); + onChanged(); + } else { + secondaryIpRangesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder( + int index) { + return getSecondaryIpRangesFieldBuilder().getBuilder(index); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( + int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); } else { + return secondaryIpRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List + getSecondaryIpRangesOrBuilderList() { + if (secondaryIpRangesBuilder_ != null) { + return secondaryIpRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder() { + return getSecondaryIpRangesFieldBuilder().addBuilder( + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder( + int index) { + return getSecondaryIpRangesFieldBuilder().addBuilder( + index, com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List + getSecondaryIpRangesBuilderList() { + return getSecondaryIpRangesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange, com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1alpha1.UsableSubnetworkSecondaryRangeOrBuilder> + getSecondaryIpRangesFieldBuilder() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange, com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1alpha1.UsableSubnetworkSecondaryRangeOrBuilder>( + secondaryIpRanges_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + secondaryIpRanges_ = null; + } + return secondaryIpRangesBuilder_; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + */ + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + */ + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + */ + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.UsableSubnetwork) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.UsableSubnetwork) + private static final com.google.container.v1alpha1.UsableSubnetwork DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.UsableSubnetwork(); + } + + public static com.google.container.v1alpha1.UsableSubnetwork getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsableSubnetwork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UsableSubnetwork(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.UsableSubnetwork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetworkOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetworkOrBuilder.java new file mode 100644 index 000000000000..c9787a0c34fb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetworkOrBuilder.java @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface UsableSubnetworkOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.UsableSubnetwork) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Subnetwork Name.
+   * 
+ * + * string subnetwork = 1; + */ + java.lang.String getSubnetwork(); + /** + *
+   * Subnetwork Name.
+   * 
+ * + * string subnetwork = 1; + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); + + /** + *
+   * Network Name.
+   * 
+ * + * string network = 2; + */ + java.lang.String getNetwork(); + /** + *
+   * Network Name.
+   * 
+ * + * string network = 2; + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + */ + java.lang.String getIpCidrRange(); + /** + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + */ + com.google.protobuf.ByteString + getIpCidrRangeBytes(); + + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + java.util.List + getSecondaryIpRangesList(); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + int getSecondaryIpRangesCount(); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + java.util.List + getSecondaryIpRangesOrBuilderList(); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1alpha1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + com.google.container.v1alpha1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( + int index); + + /** + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + */ + java.lang.String getStatusMessage(); + /** + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + */ + com.google.protobuf.ByteString + getStatusMessageBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetworkSecondaryRange.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetworkSecondaryRange.java new file mode 100644 index 000000000000..32dbca6856b8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetworkSecondaryRange.java @@ -0,0 +1,1029 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +/** + *
+ * Secondary IP range of a usable subnetwork.
+ * 
+ * + * Protobuf type {@code google.container.v1alpha1.UsableSubnetworkSecondaryRange} + */ +public final class UsableSubnetworkSecondaryRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1alpha1.UsableSubnetworkSecondaryRange) + UsableSubnetworkSecondaryRangeOrBuilder { +private static final long serialVersionUID = 0L; + // Use UsableSubnetworkSecondaryRange.newBuilder() to construct. + private UsableSubnetworkSecondaryRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UsableSubnetworkSecondaryRange() { + rangeName_ = ""; + ipCidrRange_ = ""; + status_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UsableSubnetworkSecondaryRange( + 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(); + + rangeName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + ipCidrRange_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UsableSubnetworkSecondaryRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.class, com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder.class); + } + + /** + *
+   * Status shows the current usage of a secondary IP range.
+   * 
+ * + * Protobuf enum {@code google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * UNKNOWN is the zero value of the Status enum. It's not a valid status.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + *
+     * UNUSED denotes that this range is unclaimed by any cluster.
+     * 
+ * + * UNUSED = 1; + */ + UNUSED(1), + /** + *
+     * IN_USE_SERVICE denotes that this range is claimed by a cluster for
+     * services. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_SERVICE = 2; + */ + IN_USE_SERVICE(2), + /** + *
+     * IN_USE_SHAREABLE_POD denotes this range was created by the network admin
+     * and is currently claimed by a cluster for pods. It can only be used by
+     * other clusters as a pod range.
+     * 
+ * + * IN_USE_SHAREABLE_POD = 3; + */ + IN_USE_SHAREABLE_POD(3), + /** + *
+     * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
+     * for pods. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_MANAGED_POD = 4; + */ + IN_USE_MANAGED_POD(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * UNKNOWN is the zero value of the Status enum. It's not a valid status.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + *
+     * UNUSED denotes that this range is unclaimed by any cluster.
+     * 
+ * + * UNUSED = 1; + */ + public static final int UNUSED_VALUE = 1; + /** + *
+     * IN_USE_SERVICE denotes that this range is claimed by a cluster for
+     * services. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_SERVICE = 2; + */ + public static final int IN_USE_SERVICE_VALUE = 2; + /** + *
+     * IN_USE_SHAREABLE_POD denotes this range was created by the network admin
+     * and is currently claimed by a cluster for pods. It can only be used by
+     * other clusters as a pod range.
+     * 
+ * + * IN_USE_SHAREABLE_POD = 3; + */ + public static final int IN_USE_SHAREABLE_POD_VALUE = 3; + /** + *
+     * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
+     * for pods. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_MANAGED_POD = 4; + */ + public static final int IN_USE_MANAGED_POD_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + public static Status forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return UNUSED; + case 2: return IN_USE_SERVICE; + case 3: return IN_USE_SHAREABLE_POD; + case 4: return IN_USE_MANAGED_POD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status) + } + + public static final int RANGE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object rangeName_; + /** + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + */ + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } + } + /** + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + */ + public com.google.protobuf.ByteString + getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 2; + private volatile java.lang.Object ipCidrRange_; + /** + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + */ + public com.google.protobuf.ByteString + getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 3; + private int status_; + /** + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public int getStatusValue() { + return status_; + } + /** + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); + return result == null ? com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRangeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipCidrRange_); + } + if (status_ != com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + output.writeEnum(3, status_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRangeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipCidrRange_); + } + if (status_ != com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, status_); + } + 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.container.v1alpha1.UsableSubnetworkSecondaryRange)) { + return super.equals(obj); + } + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange other = (com.google.container.v1alpha1.UsableSubnetworkSecondaryRange) obj; + + boolean result = true; + result = result && getRangeName() + .equals(other.getRangeName()); + result = result && getIpCidrRange() + .equals(other.getIpCidrRange()); + result = result && status_ == other.status_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RANGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getRangeName().hashCode(); + hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpCidrRange().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1alpha1.UsableSubnetworkSecondaryRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Secondary IP range of a usable subnetwork.
+   * 
+ * + * Protobuf type {@code google.container.v1alpha1.UsableSubnetworkSecondaryRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1alpha1.UsableSubnetworkSecondaryRange) + com.google.container.v1alpha1.UsableSubnetworkSecondaryRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UsableSubnetworkSecondaryRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.class, com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Builder.class); + } + + // Construct using com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + rangeName_ = ""; + + ipCidrRange_ = ""; + + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1alpha1.ClusterServiceProto.internal_static_google_container_v1alpha1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { + return com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange build() { + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange buildPartial() { + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange result = new com.google.container.v1alpha1.UsableSubnetworkSecondaryRange(this); + result.rangeName_ = rangeName_; + result.ipCidrRange_ = ipCidrRange_; + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1alpha1.UsableSubnetworkSecondaryRange) { + return mergeFrom((com.google.container.v1alpha1.UsableSubnetworkSecondaryRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1alpha1.UsableSubnetworkSecondaryRange other) { + if (other == com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.getDefaultInstance()) return this; + if (!other.getRangeName().isEmpty()) { + rangeName_ = other.rangeName_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1alpha1.UsableSubnetworkSecondaryRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object rangeName_ = ""; + /** + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + */ + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + */ + public com.google.protobuf.ByteString + getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + */ + public Builder setRangeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeName_ = value; + onChanged(); + return this; + } + /** + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + */ + public Builder clearRangeName() { + + rangeName_ = getDefaultInstance().getRangeName(); + onChanged(); + return this; + } + /** + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + */ + public Builder setRangeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + */ + public com.google.protobuf.ByteString + getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + */ + public Builder setIpCidrRange( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + */ + public Builder setIpCidrRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); + return result == null ? com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED : result; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public Builder setStatus(com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1alpha1.UsableSubnetworkSecondaryRange) + } + + // @@protoc_insertion_point(class_scope:google.container.v1alpha1.UsableSubnetworkSecondaryRange) + private static final com.google.container.v1alpha1.UsableSubnetworkSecondaryRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1alpha1.UsableSubnetworkSecondaryRange(); + } + + public static com.google.container.v1alpha1.UsableSubnetworkSecondaryRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsableSubnetworkSecondaryRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UsableSubnetworkSecondaryRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1alpha1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetworkSecondaryRangeOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetworkSecondaryRangeOrBuilder.java new file mode 100644 index 000000000000..b67c08d1cc3b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1alpha1/UsableSubnetworkSecondaryRangeOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1alpha1/cluster_service.proto + +package com.google.container.v1alpha1; + +public interface UsableSubnetworkSecondaryRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1alpha1.UsableSubnetworkSecondaryRange) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + */ + java.lang.String getRangeName(); + /** + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + */ + com.google.protobuf.ByteString + getRangeNameBytes(); + + /** + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + */ + java.lang.String getIpCidrRange(); + /** + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + */ + com.google.protobuf.ByteString + getIpCidrRangeBytes(); + + /** + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + int getStatusValue(); + /** + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + com.google.container.v1alpha1.UsableSubnetworkSecondaryRange.Status getStatus(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java new file mode 100644 index 000000000000..b87b43fe4e6a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java @@ -0,0 +1,659 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * AcceleratorConfig represents a Hardware Accelerator request.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AcceleratorConfig} + */ +public final class AcceleratorConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AcceleratorConfig) + AcceleratorConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AcceleratorConfig.newBuilder() to construct. + private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AcceleratorConfig() { + acceleratorCount_ = 0L; + acceleratorType_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AcceleratorConfig( + 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 8: { + + acceleratorCount_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + acceleratorType_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AcceleratorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AcceleratorConfig.class, com.google.container.v1beta1.AcceleratorConfig.Builder.class); + } + + public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1; + private long acceleratorCount_; + /** + *
+   * The number of the accelerator cards exposed to an instance.
+   * 
+ * + * int64 accelerator_count = 1; + */ + public long getAcceleratorCount() { + return acceleratorCount_; + } + + public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object acceleratorType_; + /** + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](/compute/docs/gpus/#Introduction)
+   * 
+ * + * string accelerator_type = 2; + */ + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } + } + /** + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](/compute/docs/gpus/#Introduction)
+   * 
+ * + * string accelerator_type = 2; + */ + public com.google.protobuf.ByteString + getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + acceleratorType_ = 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 (acceleratorCount_ != 0L) { + output.writeInt64(1, acceleratorCount_); + } + if (!getAcceleratorTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (acceleratorCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, acceleratorCount_); + } + if (!getAcceleratorTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); + } + 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.container.v1beta1.AcceleratorConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.AcceleratorConfig other = (com.google.container.v1beta1.AcceleratorConfig) obj; + + boolean result = true; + result = result && (getAcceleratorCount() + == other.getAcceleratorCount()); + result = result && getAcceleratorType() + .equals(other.getAcceleratorType()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAcceleratorCount()); + hash = (37 * hash) + ACCELERATOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAcceleratorType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AcceleratorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AcceleratorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.AcceleratorConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AcceleratorConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.AcceleratorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AcceleratorConfig represents a Hardware Accelerator request.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AcceleratorConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AcceleratorConfig) + com.google.container.v1beta1.AcceleratorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AcceleratorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AcceleratorConfig.class, com.google.container.v1beta1.AcceleratorConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.AcceleratorConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + acceleratorCount_ = 0L; + + acceleratorType_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfig build() { + com.google.container.v1beta1.AcceleratorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfig buildPartial() { + com.google.container.v1beta1.AcceleratorConfig result = new com.google.container.v1beta1.AcceleratorConfig(this); + result.acceleratorCount_ = acceleratorCount_; + result.acceleratorType_ = acceleratorType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.AcceleratorConfig) { + return mergeFrom((com.google.container.v1beta1.AcceleratorConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AcceleratorConfig other) { + if (other == com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()) return this; + if (other.getAcceleratorCount() != 0L) { + setAcceleratorCount(other.getAcceleratorCount()); + } + if (!other.getAcceleratorType().isEmpty()) { + acceleratorType_ = other.acceleratorType_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.AcceleratorConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.AcceleratorConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long acceleratorCount_ ; + /** + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + */ + public long getAcceleratorCount() { + return acceleratorCount_; + } + /** + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + */ + public Builder setAcceleratorCount(long value) { + + acceleratorCount_ = value; + onChanged(); + return this; + } + /** + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + */ + public Builder clearAcceleratorCount() { + + acceleratorCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object acceleratorType_ = ""; + /** + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](/compute/docs/gpus/#Introduction)
+     * 
+ * + * string accelerator_type = 2; + */ + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](/compute/docs/gpus/#Introduction)
+     * 
+ * + * string accelerator_type = 2; + */ + public com.google.protobuf.ByteString + getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + acceleratorType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](/compute/docs/gpus/#Introduction)
+     * 
+ * + * string accelerator_type = 2; + */ + public Builder setAcceleratorType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + acceleratorType_ = value; + onChanged(); + return this; + } + /** + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](/compute/docs/gpus/#Introduction)
+     * 
+ * + * string accelerator_type = 2; + */ + public Builder clearAcceleratorType() { + + acceleratorType_ = getDefaultInstance().getAcceleratorType(); + onChanged(); + return this; + } + /** + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](/compute/docs/gpus/#Introduction)
+     * 
+ * + * string accelerator_type = 2; + */ + public Builder setAcceleratorTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + acceleratorType_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AcceleratorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AcceleratorConfig) + private static final com.google.container.v1beta1.AcceleratorConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AcceleratorConfig(); + } + + public static com.google.container.v1beta1.AcceleratorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AcceleratorConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java new file mode 100644 index 000000000000..39866d5782a3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java @@ -0,0 +1,38 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AcceleratorConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AcceleratorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The number of the accelerator cards exposed to an instance.
+   * 
+ * + * int64 accelerator_count = 1; + */ + long getAcceleratorCount(); + + /** + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](/compute/docs/gpus/#Introduction)
+   * 
+ * + * string accelerator_type = 2; + */ + java.lang.String getAcceleratorType(); + /** + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](/compute/docs/gpus/#Introduction)
+   * 
+ * + * string accelerator_type = 2; + */ + com.google.protobuf.ByteString + getAcceleratorTypeBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AddonsConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AddonsConfig.java new file mode 100644 index 000000000000..193191f8a43b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AddonsConfig.java @@ -0,0 +1,1400 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration for the addons that can be automatically spun up in the
+ * cluster, enabling additional functionality.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AddonsConfig} + */ +public final class AddonsConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AddonsConfig) + AddonsConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AddonsConfig.newBuilder() to construct. + private AddonsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AddonsConfig() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddonsConfig( + 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: { + com.google.container.v1beta1.HttpLoadBalancing.Builder subBuilder = null; + if (httpLoadBalancing_ != null) { + subBuilder = httpLoadBalancing_.toBuilder(); + } + httpLoadBalancing_ = input.readMessage(com.google.container.v1beta1.HttpLoadBalancing.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpLoadBalancing_); + httpLoadBalancing_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder subBuilder = null; + if (horizontalPodAutoscaling_ != null) { + subBuilder = horizontalPodAutoscaling_.toBuilder(); + } + horizontalPodAutoscaling_ = input.readMessage(com.google.container.v1beta1.HorizontalPodAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(horizontalPodAutoscaling_); + horizontalPodAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.container.v1beta1.KubernetesDashboard.Builder subBuilder = null; + if (kubernetesDashboard_ != null) { + subBuilder = kubernetesDashboard_.toBuilder(); + } + kubernetesDashboard_ = input.readMessage(com.google.container.v1beta1.KubernetesDashboard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kubernetesDashboard_); + kubernetesDashboard_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.container.v1beta1.NetworkPolicyConfig.Builder subBuilder = null; + if (networkPolicyConfig_ != null) { + subBuilder = networkPolicyConfig_.toBuilder(); + } + networkPolicyConfig_ = input.readMessage(com.google.container.v1beta1.NetworkPolicyConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkPolicyConfig_); + networkPolicyConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AddonsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AddonsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AddonsConfig.class, com.google.container.v1beta1.AddonsConfig.Builder.class); + } + + public static final int HTTP_LOAD_BALANCING_FIELD_NUMBER = 1; + private com.google.container.v1beta1.HttpLoadBalancing httpLoadBalancing_; + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public boolean hasHttpLoadBalancing() { + return httpLoadBalancing_ != null; + } + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing() { + return httpLoadBalancing_ == null ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; + } + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { + return getHttpLoadBalancing(); + } + + public static final int HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER = 2; + private com.google.container.v1beta1.HorizontalPodAutoscaling horizontalPodAutoscaling_; + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public boolean hasHorizontalPodAutoscaling() { + return horizontalPodAutoscaling_ != null; + } + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { + return horizontalPodAutoscaling_ == null ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; + } + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder() { + return getHorizontalPodAutoscaling(); + } + + public static final int KUBERNETES_DASHBOARD_FIELD_NUMBER = 3; + private com.google.container.v1beta1.KubernetesDashboard kubernetesDashboard_; + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public boolean hasKubernetesDashboard() { + return kubernetesDashboard_ != null; + } + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public com.google.container.v1beta1.KubernetesDashboard getKubernetesDashboard() { + return kubernetesDashboard_ == null ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; + } + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public com.google.container.v1beta1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { + return getKubernetesDashboard(); + } + + public static final int NETWORK_POLICY_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NetworkPolicyConfig networkPolicyConfig_; + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public boolean hasNetworkPolicyConfig() { + return networkPolicyConfig_ != null; + } + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() { + return networkPolicyConfig_ == null ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; + } + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1beta1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { + return getNetworkPolicyConfig(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (httpLoadBalancing_ != null) { + output.writeMessage(1, getHttpLoadBalancing()); + } + if (horizontalPodAutoscaling_ != null) { + output.writeMessage(2, getHorizontalPodAutoscaling()); + } + if (kubernetesDashboard_ != null) { + output.writeMessage(3, getKubernetesDashboard()); + } + if (networkPolicyConfig_ != null) { + output.writeMessage(4, getNetworkPolicyConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (httpLoadBalancing_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHttpLoadBalancing()); + } + if (horizontalPodAutoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHorizontalPodAutoscaling()); + } + if (kubernetesDashboard_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getKubernetesDashboard()); + } + if (networkPolicyConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNetworkPolicyConfig()); + } + 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.container.v1beta1.AddonsConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.AddonsConfig other = (com.google.container.v1beta1.AddonsConfig) obj; + + boolean result = true; + result = result && (hasHttpLoadBalancing() == other.hasHttpLoadBalancing()); + if (hasHttpLoadBalancing()) { + result = result && getHttpLoadBalancing() + .equals(other.getHttpLoadBalancing()); + } + result = result && (hasHorizontalPodAutoscaling() == other.hasHorizontalPodAutoscaling()); + if (hasHorizontalPodAutoscaling()) { + result = result && getHorizontalPodAutoscaling() + .equals(other.getHorizontalPodAutoscaling()); + } + result = result && (hasKubernetesDashboard() == other.hasKubernetesDashboard()); + if (hasKubernetesDashboard()) { + result = result && getKubernetesDashboard() + .equals(other.getKubernetesDashboard()); + } + result = result && (hasNetworkPolicyConfig() == other.hasNetworkPolicyConfig()); + if (hasNetworkPolicyConfig()) { + result = result && getNetworkPolicyConfig() + .equals(other.getNetworkPolicyConfig()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHttpLoadBalancing()) { + hash = (37 * hash) + HTTP_LOAD_BALANCING_FIELD_NUMBER; + hash = (53 * hash) + getHttpLoadBalancing().hashCode(); + } + if (hasHorizontalPodAutoscaling()) { + hash = (37 * hash) + HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getHorizontalPodAutoscaling().hashCode(); + } + if (hasKubernetesDashboard()) { + hash = (37 * hash) + KUBERNETES_DASHBOARD_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesDashboard().hashCode(); + } + if (hasNetworkPolicyConfig()) { + hash = (37 * hash) + NETWORK_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicyConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AddonsConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AddonsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AddonsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AddonsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AddonsConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AddonsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AddonsConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.AddonsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AddonsConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.AddonsConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AddonsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.AddonsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the addons that can be automatically spun up in the
+   * cluster, enabling additional functionality.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AddonsConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AddonsConfig) + com.google.container.v1beta1.AddonsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AddonsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AddonsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AddonsConfig.class, com.google.container.v1beta1.AddonsConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.AddonsConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = null; + } else { + httpLoadBalancing_ = null; + httpLoadBalancingBuilder_ = null; + } + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = null; + } else { + horizontalPodAutoscaling_ = null; + horizontalPodAutoscalingBuilder_ = null; + } + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = null; + } else { + kubernetesDashboard_ = null; + kubernetesDashboardBuilder_ = null; + } + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = null; + } else { + networkPolicyConfig_ = null; + networkPolicyConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AddonsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AddonsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig build() { + com.google.container.v1beta1.AddonsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig buildPartial() { + com.google.container.v1beta1.AddonsConfig result = new com.google.container.v1beta1.AddonsConfig(this); + if (httpLoadBalancingBuilder_ == null) { + result.httpLoadBalancing_ = httpLoadBalancing_; + } else { + result.httpLoadBalancing_ = httpLoadBalancingBuilder_.build(); + } + if (horizontalPodAutoscalingBuilder_ == null) { + result.horizontalPodAutoscaling_ = horizontalPodAutoscaling_; + } else { + result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_.build(); + } + if (kubernetesDashboardBuilder_ == null) { + result.kubernetesDashboard_ = kubernetesDashboard_; + } else { + result.kubernetesDashboard_ = kubernetesDashboardBuilder_.build(); + } + if (networkPolicyConfigBuilder_ == null) { + result.networkPolicyConfig_ = networkPolicyConfig_; + } else { + result.networkPolicyConfig_ = networkPolicyConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.AddonsConfig) { + return mergeFrom((com.google.container.v1beta1.AddonsConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AddonsConfig other) { + if (other == com.google.container.v1beta1.AddonsConfig.getDefaultInstance()) return this; + if (other.hasHttpLoadBalancing()) { + mergeHttpLoadBalancing(other.getHttpLoadBalancing()); + } + if (other.hasHorizontalPodAutoscaling()) { + mergeHorizontalPodAutoscaling(other.getHorizontalPodAutoscaling()); + } + if (other.hasKubernetesDashboard()) { + mergeKubernetesDashboard(other.getKubernetesDashboard()); + } + if (other.hasNetworkPolicyConfig()) { + mergeNetworkPolicyConfig(other.getNetworkPolicyConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.AddonsConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.AddonsConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1beta1.HttpLoadBalancing httpLoadBalancing_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HttpLoadBalancing, com.google.container.v1beta1.HttpLoadBalancing.Builder, com.google.container.v1beta1.HttpLoadBalancingOrBuilder> httpLoadBalancingBuilder_; + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public boolean hasHttpLoadBalancing() { + return httpLoadBalancingBuilder_ != null || httpLoadBalancing_ != null; + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing() { + if (httpLoadBalancingBuilder_ == null) { + return httpLoadBalancing_ == null ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; + } else { + return httpLoadBalancingBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing(com.google.container.v1beta1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + httpLoadBalancing_ = value; + onChanged(); + } else { + httpLoadBalancingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing( + com.google.container.v1beta1.HttpLoadBalancing.Builder builderForValue) { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = builderForValue.build(); + onChanged(); + } else { + httpLoadBalancingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder mergeHttpLoadBalancing(com.google.container.v1beta1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (httpLoadBalancing_ != null) { + httpLoadBalancing_ = + com.google.container.v1beta1.HttpLoadBalancing.newBuilder(httpLoadBalancing_).mergeFrom(value).buildPartial(); + } else { + httpLoadBalancing_ = value; + } + onChanged(); + } else { + httpLoadBalancingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder clearHttpLoadBalancing() { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = null; + onChanged(); + } else { + httpLoadBalancing_ = null; + httpLoadBalancingBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1beta1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() { + + onChanged(); + return getHttpLoadBalancingFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { + if (httpLoadBalancingBuilder_ != null) { + return httpLoadBalancingBuilder_.getMessageOrBuilder(); + } else { + return httpLoadBalancing_ == null ? + com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; + } + } + /** + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HttpLoadBalancing, com.google.container.v1beta1.HttpLoadBalancing.Builder, com.google.container.v1beta1.HttpLoadBalancingOrBuilder> + getHttpLoadBalancingFieldBuilder() { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HttpLoadBalancing, com.google.container.v1beta1.HttpLoadBalancing.Builder, com.google.container.v1beta1.HttpLoadBalancingOrBuilder>( + getHttpLoadBalancing(), + getParentForChildren(), + isClean()); + httpLoadBalancing_ = null; + } + return httpLoadBalancingBuilder_; + } + + private com.google.container.v1beta1.HorizontalPodAutoscaling horizontalPodAutoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HorizontalPodAutoscaling, com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder> horizontalPodAutoscalingBuilder_; + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public boolean hasHorizontalPodAutoscaling() { + return horizontalPodAutoscalingBuilder_ != null || horizontalPodAutoscaling_ != null; + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { + if (horizontalPodAutoscalingBuilder_ == null) { + return horizontalPodAutoscaling_ == null ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; + } else { + return horizontalPodAutoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder setHorizontalPodAutoscaling(com.google.container.v1beta1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + horizontalPodAutoscaling_ = value; + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder setHorizontalPodAutoscaling( + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder builderForValue) { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder mergeHorizontalPodAutoscaling(com.google.container.v1beta1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (horizontalPodAutoscaling_ != null) { + horizontalPodAutoscaling_ = + com.google.container.v1beta1.HorizontalPodAutoscaling.newBuilder(horizontalPodAutoscaling_).mergeFrom(value).buildPartial(); + } else { + horizontalPodAutoscaling_ = value; + } + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder clearHorizontalPodAutoscaling() { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = null; + onChanged(); + } else { + horizontalPodAutoscaling_ = null; + horizontalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1beta1.HorizontalPodAutoscaling.Builder getHorizontalPodAutoscalingBuilder() { + + onChanged(); + return getHorizontalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder() { + if (horizontalPodAutoscalingBuilder_ != null) { + return horizontalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return horizontalPodAutoscaling_ == null ? + com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; + } + } + /** + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HorizontalPodAutoscaling, com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder> + getHorizontalPodAutoscalingFieldBuilder() { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HorizontalPodAutoscaling, com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder>( + getHorizontalPodAutoscaling(), + getParentForChildren(), + isClean()); + horizontalPodAutoscaling_ = null; + } + return horizontalPodAutoscalingBuilder_; + } + + private com.google.container.v1beta1.KubernetesDashboard kubernetesDashboard_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KubernetesDashboard, com.google.container.v1beta1.KubernetesDashboard.Builder, com.google.container.v1beta1.KubernetesDashboardOrBuilder> kubernetesDashboardBuilder_; + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public boolean hasKubernetesDashboard() { + return kubernetesDashboardBuilder_ != null || kubernetesDashboard_ != null; + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public com.google.container.v1beta1.KubernetesDashboard getKubernetesDashboard() { + if (kubernetesDashboardBuilder_ == null) { + return kubernetesDashboard_ == null ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; + } else { + return kubernetesDashboardBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public Builder setKubernetesDashboard(com.google.container.v1beta1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesDashboard_ = value; + onChanged(); + } else { + kubernetesDashboardBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public Builder setKubernetesDashboard( + com.google.container.v1beta1.KubernetesDashboard.Builder builderForValue) { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = builderForValue.build(); + onChanged(); + } else { + kubernetesDashboardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public Builder mergeKubernetesDashboard(com.google.container.v1beta1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (kubernetesDashboard_ != null) { + kubernetesDashboard_ = + com.google.container.v1beta1.KubernetesDashboard.newBuilder(kubernetesDashboard_).mergeFrom(value).buildPartial(); + } else { + kubernetesDashboard_ = value; + } + onChanged(); + } else { + kubernetesDashboardBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public Builder clearKubernetesDashboard() { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = null; + onChanged(); + } else { + kubernetesDashboard_ = null; + kubernetesDashboardBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public com.google.container.v1beta1.KubernetesDashboard.Builder getKubernetesDashboardBuilder() { + + onChanged(); + return getKubernetesDashboardFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + public com.google.container.v1beta1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { + if (kubernetesDashboardBuilder_ != null) { + return kubernetesDashboardBuilder_.getMessageOrBuilder(); + } else { + return kubernetesDashboard_ == null ? + com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; + } + } + /** + *
+     * Configuration for the Kubernetes Dashboard.
+     * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KubernetesDashboard, com.google.container.v1beta1.KubernetesDashboard.Builder, com.google.container.v1beta1.KubernetesDashboardOrBuilder> + getKubernetesDashboardFieldBuilder() { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KubernetesDashboard, com.google.container.v1beta1.KubernetesDashboard.Builder, com.google.container.v1beta1.KubernetesDashboardOrBuilder>( + getKubernetesDashboard(), + getParentForChildren(), + isClean()); + kubernetesDashboard_ = null; + } + return kubernetesDashboardBuilder_; + } + + private com.google.container.v1beta1.NetworkPolicyConfig networkPolicyConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicyConfig, com.google.container.v1beta1.NetworkPolicyConfig.Builder, com.google.container.v1beta1.NetworkPolicyConfigOrBuilder> networkPolicyConfigBuilder_; + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public boolean hasNetworkPolicyConfig() { + return networkPolicyConfigBuilder_ != null || networkPolicyConfig_ != null; + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() { + if (networkPolicyConfigBuilder_ == null) { + return networkPolicyConfig_ == null ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; + } else { + return networkPolicyConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig(com.google.container.v1beta1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicyConfig_ = value; + onChanged(); + } else { + networkPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig( + com.google.container.v1beta1.NetworkPolicyConfig.Builder builderForValue) { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder mergeNetworkPolicyConfig(com.google.container.v1beta1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (networkPolicyConfig_ != null) { + networkPolicyConfig_ = + com.google.container.v1beta1.NetworkPolicyConfig.newBuilder(networkPolicyConfig_).mergeFrom(value).buildPartial(); + } else { + networkPolicyConfig_ = value; + } + onChanged(); + } else { + networkPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder clearNetworkPolicyConfig() { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = null; + onChanged(); + } else { + networkPolicyConfig_ = null; + networkPolicyConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1beta1.NetworkPolicyConfig.Builder getNetworkPolicyConfigBuilder() { + + onChanged(); + return getNetworkPolicyConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1beta1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { + if (networkPolicyConfigBuilder_ != null) { + return networkPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return networkPolicyConfig_ == null ? + com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; + } + } + /** + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicyConfig, com.google.container.v1beta1.NetworkPolicyConfig.Builder, com.google.container.v1beta1.NetworkPolicyConfigOrBuilder> + getNetworkPolicyConfigFieldBuilder() { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicyConfig, com.google.container.v1beta1.NetworkPolicyConfig.Builder, com.google.container.v1beta1.NetworkPolicyConfigOrBuilder>( + getNetworkPolicyConfig(), + getParentForChildren(), + isClean()); + networkPolicyConfig_ = null; + } + return networkPolicyConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AddonsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AddonsConfig) + private static final com.google.container.v1beta1.AddonsConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AddonsConfig(); + } + + public static com.google.container.v1beta1.AddonsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddonsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddonsConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java new file mode 100644 index 000000000000..4f8a4cf708ed --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java @@ -0,0 +1,124 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AddonsConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AddonsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + boolean hasHttpLoadBalancing(); + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing(); + /** + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder(); + + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + boolean hasHorizontalPodAutoscaling(); + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling(); + /** + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder(); + + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + boolean hasKubernetesDashboard(); + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + com.google.container.v1beta1.KubernetesDashboard getKubernetesDashboard(); + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3; + */ + com.google.container.v1beta1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder(); + + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + boolean hasNetworkPolicyConfig(); + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig(); + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + com.google.container.v1beta1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java new file mode 100644 index 000000000000..9fb31ff80a85 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java @@ -0,0 +1,755 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * AutoUpgradeOptions defines the set of options for the user to control how
+ * the Auto Upgrades will proceed.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AutoUpgradeOptions} + */ +public final class AutoUpgradeOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutoUpgradeOptions) + AutoUpgradeOptionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use AutoUpgradeOptions.newBuilder() to construct. + private AutoUpgradeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AutoUpgradeOptions() { + autoUpgradeStartTime_ = ""; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AutoUpgradeOptions( + 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(); + + autoUpgradeStartTime_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoUpgradeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutoUpgradeOptions.class, com.google.container.v1beta1.AutoUpgradeOptions.Builder.class); + } + + public static final int AUTO_UPGRADE_START_TIME_FIELD_NUMBER = 1; + private volatile java.lang.Object autoUpgradeStartTime_; + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + */ + public java.lang.String getAutoUpgradeStartTime() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoUpgradeStartTime_ = s; + return s; + } + } + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + */ + public com.google.protobuf.ByteString + getAutoUpgradeStartTimeBytes() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + autoUpgradeStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAutoUpgradeStartTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoUpgradeStartTime_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAutoUpgradeStartTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoUpgradeStartTime_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + 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.container.v1beta1.AutoUpgradeOptions)) { + return super.equals(obj); + } + com.google.container.v1beta1.AutoUpgradeOptions other = (com.google.container.v1beta1.AutoUpgradeOptions) obj; + + boolean result = true; + result = result && getAutoUpgradeStartTime() + .equals(other.getAutoUpgradeStartTime()); + result = result && getDescription() + .equals(other.getDescription()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUTO_UPGRADE_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getAutoUpgradeStartTime().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.AutoUpgradeOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AutoUpgradeOptions defines the set of options for the user to control how
+   * the Auto Upgrades will proceed.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AutoUpgradeOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AutoUpgradeOptions) + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoUpgradeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutoUpgradeOptions.class, com.google.container.v1beta1.AutoUpgradeOptions.Builder.class); + } + + // Construct using com.google.container.v1beta1.AutoUpgradeOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + autoUpgradeStartTime_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions getDefaultInstanceForType() { + return com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions build() { + com.google.container.v1beta1.AutoUpgradeOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions buildPartial() { + com.google.container.v1beta1.AutoUpgradeOptions result = new com.google.container.v1beta1.AutoUpgradeOptions(this); + result.autoUpgradeStartTime_ = autoUpgradeStartTime_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.AutoUpgradeOptions) { + return mergeFrom((com.google.container.v1beta1.AutoUpgradeOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AutoUpgradeOptions other) { + if (other == com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance()) return this; + if (!other.getAutoUpgradeStartTime().isEmpty()) { + autoUpgradeStartTime_ = other.autoUpgradeStartTime_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.AutoUpgradeOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.AutoUpgradeOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object autoUpgradeStartTime_ = ""; + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + */ + public java.lang.String getAutoUpgradeStartTime() { + java.lang.Object ref = autoUpgradeStartTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoUpgradeStartTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + */ + public com.google.protobuf.ByteString + getAutoUpgradeStartTimeBytes() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + autoUpgradeStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + */ + public Builder setAutoUpgradeStartTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + autoUpgradeStartTime_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + */ + public Builder clearAutoUpgradeStartTime() { + + autoUpgradeStartTime_ = getDefaultInstance().getAutoUpgradeStartTime(); + onChanged(); + return this; + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + */ + public Builder setAutoUpgradeStartTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + autoUpgradeStartTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AutoUpgradeOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutoUpgradeOptions) + private static final com.google.container.v1beta1.AutoUpgradeOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AutoUpgradeOptions(); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoUpgradeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AutoUpgradeOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java new file mode 100644 index 000000000000..908277405ea1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AutoUpgradeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutoUpgradeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + */ + java.lang.String getAutoUpgradeStartTime(); + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + */ + com.google.protobuf.ByteString + getAutoUpgradeStartTimeBytes(); + + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java new file mode 100644 index 000000000000..ef0eda6047fe --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration for Binary Authorization.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.BinaryAuthorization} + */ +public final class BinaryAuthorization extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.BinaryAuthorization) + BinaryAuthorizationOrBuilder { +private static final long serialVersionUID = 0L; + // Use BinaryAuthorization.newBuilder() to construct. + private BinaryAuthorization(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BinaryAuthorization() { + enabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BinaryAuthorization( + 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 8: { + + enabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BinaryAuthorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BinaryAuthorization.class, com.google.container.v1beta1.BinaryAuthorization.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+   * Enable Binary Authorization for this cluster. If enabled, all container
+   * images will be validated by Google Binauthz.
+   * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + size += 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.container.v1beta1.BinaryAuthorization)) { + return super.equals(obj); + } + com.google.container.v1beta1.BinaryAuthorization other = (com.google.container.v1beta1.BinaryAuthorization) obj; + + boolean result = true; + result = result && (getEnabled() + == other.getEnabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.BinaryAuthorization parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.BinaryAuthorization parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.BinaryAuthorization parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BinaryAuthorization parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.BinaryAuthorization prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.BinaryAuthorization} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BinaryAuthorization) + com.google.container.v1beta1.BinaryAuthorizationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BinaryAuthorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BinaryAuthorization.class, com.google.container.v1beta1.BinaryAuthorization.Builder.class); + } + + // Construct using com.google.container.v1beta1.BinaryAuthorization.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization getDefaultInstanceForType() { + return com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization build() { + com.google.container.v1beta1.BinaryAuthorization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization buildPartial() { + com.google.container.v1beta1.BinaryAuthorization result = new com.google.container.v1beta1.BinaryAuthorization(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.BinaryAuthorization) { + return mergeFrom((com.google.container.v1beta1.BinaryAuthorization)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.BinaryAuthorization other) { + if (other == com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.BinaryAuthorization parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.BinaryAuthorization) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Google Binauthz.
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Google Binauthz.
+     * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Google Binauthz.
+     * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.BinaryAuthorization) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.BinaryAuthorization) + private static final com.google.container.v1beta1.BinaryAuthorization DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.BinaryAuthorization(); + } + + public static com.google.container.v1beta1.BinaryAuthorization getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinaryAuthorization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinaryAuthorization(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java new file mode 100644 index 000000000000..9eb00607c971 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface BinaryAuthorizationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BinaryAuthorization) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enable Binary Authorization for this cluster. If enabled, all container
+   * images will be validated by Google Binauthz.
+   * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java new file mode 100644 index 000000000000..0e276d2ed52a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java @@ -0,0 +1,1084 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * CancelOperationRequest cancels a single operation.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CancelOperationRequest} + */ +public final class CancelOperationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CancelOperationRequest) + CancelOperationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CancelOperationRequest.newBuilder() to construct. + private CancelOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CancelOperationRequest() { + projectId_ = ""; + zone_ = ""; + operationId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CancelOperationRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + operationId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CancelOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CancelOperationRequest.class, com.google.container.v1beta1.CancelOperationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object operationId_; + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.container.v1beta1.CancelOperationRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.CancelOperationRequest other = (com.google.container.v1beta1.CancelOperationRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getOperationId() + .equals(other.getOperationId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().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.container.v1beta1.CancelOperationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CancelOperationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CancelOperationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.CancelOperationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CancelOperationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.CancelOperationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CancelOperationRequest cancels a single operation.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CancelOperationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CancelOperationRequest) + com.google.container.v1beta1.CancelOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CancelOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CancelOperationRequest.class, com.google.container.v1beta1.CancelOperationRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.CancelOperationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + operationId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CancelOperationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest build() { + com.google.container.v1beta1.CancelOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest buildPartial() { + com.google.container.v1beta1.CancelOperationRequest result = new com.google.container.v1beta1.CancelOperationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.operationId_ = operationId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.CancelOperationRequest) { + return mergeFrom((com.google.container.v1beta1.CancelOperationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CancelOperationRequest other) { + if (other == com.google.container.v1beta1.CancelOperationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.CancelOperationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.CancelOperationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOperationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 4; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CancelOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CancelOperationRequest) + private static final com.google.container.v1beta1.CancelOperationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CancelOperationRequest(); + } + + public static com.google.container.v1beta1.CancelOperationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CancelOperationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java new file mode 100644 index 000000000000..8b5328ffa415 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface CancelOperationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CancelOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getOperationId(); + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getOperationIdBytes(); + + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java new file mode 100644 index 000000000000..491d0726d69c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration for client certificates on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ClientCertificateConfig} + */ +public final class ClientCertificateConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClientCertificateConfig) + ClientCertificateConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ClientCertificateConfig.newBuilder() to construct. + private ClientCertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClientCertificateConfig() { + issueClientCertificate_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClientCertificateConfig( + 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 8: { + + issueClientCertificate_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClientCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClientCertificateConfig.class, com.google.container.v1beta1.ClientCertificateConfig.Builder.class); + } + + public static final int ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER = 1; + private boolean issueClientCertificate_; + /** + *
+   * Issue a client certificate.
+   * 
+ * + * bool issue_client_certificate = 1; + */ + public boolean getIssueClientCertificate() { + return issueClientCertificate_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (issueClientCertificate_ != false) { + output.writeBool(1, issueClientCertificate_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (issueClientCertificate_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, issueClientCertificate_); + } + 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.container.v1beta1.ClientCertificateConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ClientCertificateConfig other = (com.google.container.v1beta1.ClientCertificateConfig) obj; + + boolean result = true; + result = result && (getIssueClientCertificate() + == other.getIssueClientCertificate()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIssueClientCertificate()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ClientCertificateConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for client certificates on the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ClientCertificateConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ClientCertificateConfig) + com.google.container.v1beta1.ClientCertificateConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClientCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClientCertificateConfig.class, com.google.container.v1beta1.ClientCertificateConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ClientCertificateConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + issueClientCertificate_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig build() { + com.google.container.v1beta1.ClientCertificateConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig buildPartial() { + com.google.container.v1beta1.ClientCertificateConfig result = new com.google.container.v1beta1.ClientCertificateConfig(this); + result.issueClientCertificate_ = issueClientCertificate_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ClientCertificateConfig) { + return mergeFrom((com.google.container.v1beta1.ClientCertificateConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClientCertificateConfig other) { + if (other == com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance()) return this; + if (other.getIssueClientCertificate() != false) { + setIssueClientCertificate(other.getIssueClientCertificate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ClientCertificateConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ClientCertificateConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean issueClientCertificate_ ; + /** + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + */ + public boolean getIssueClientCertificate() { + return issueClientCertificate_; + } + /** + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + */ + public Builder setIssueClientCertificate(boolean value) { + + issueClientCertificate_ = value; + onChanged(); + return this; + } + /** + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + */ + public Builder clearIssueClientCertificate() { + + issueClientCertificate_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ClientCertificateConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClientCertificateConfig) + private static final com.google.container.v1beta1.ClientCertificateConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ClientCertificateConfig(); + } + + public static com.google.container.v1beta1.ClientCertificateConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientCertificateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientCertificateConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java new file mode 100644 index 000000000000..359cf96811f7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ClientCertificateConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClientCertificateConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Issue a client certificate.
+   * 
+ * + * bool issue_client_certificate = 1; + */ + boolean getIssueClientCertificate(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/Cluster.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/Cluster.java new file mode 100644 index 000000000000..5e62e92378f0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/Cluster.java @@ -0,0 +1,9982 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * A Google Kubernetes Engine cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Cluster} + */ +public final class Cluster extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Cluster) + ClusterOrBuilder { +private static final long serialVersionUID = 0L; + // Use Cluster.newBuilder() to construct. + private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Cluster() { + name_ = ""; + description_ = ""; + initialNodeCount_ = 0; + loggingService_ = ""; + monitoringService_ = ""; + network_ = ""; + clusterIpv4Cidr_ = ""; + subnetwork_ = ""; + nodePools_ = java.util.Collections.emptyList(); + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + enableKubernetesAlpha_ = false; + labelFingerprint_ = ""; + privateCluster_ = false; + masterIpv4CidrBlock_ = ""; + selfLink_ = ""; + zone_ = ""; + endpoint_ = ""; + initialClusterVersion_ = ""; + currentMasterVersion_ = ""; + currentNodeVersion_ = ""; + createTime_ = ""; + status_ = 0; + statusMessage_ = ""; + nodeIpv4CidrSize_ = 0; + servicesIpv4Cidr_ = ""; + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + currentNodeCount_ = 0; + expireTime_ = ""; + location_ = ""; + enableTpu_ = false; + tpuIpv4CidrBlock_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Cluster( + 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; + int mutable_bitField1_ = 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: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 24: { + + initialNodeCount_ = input.readInt32(); + break; + } + case 34: { + com.google.container.v1beta1.NodeConfig.Builder subBuilder = null; + if (nodeConfig_ != null) { + subBuilder = nodeConfig_.toBuilder(); + } + nodeConfig_ = input.readMessage(com.google.container.v1beta1.NodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeConfig_); + nodeConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.container.v1beta1.MasterAuth.Builder subBuilder = null; + if (masterAuth_ != null) { + subBuilder = masterAuth_.toBuilder(); + } + masterAuth_ = input.readMessage(com.google.container.v1beta1.MasterAuth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(masterAuth_); + masterAuth_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + loggingService_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + monitoringService_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterIpv4Cidr_ = s; + break; + } + case 82: { + com.google.container.v1beta1.AddonsConfig.Builder subBuilder = null; + if (addonsConfig_ != null) { + subBuilder = addonsConfig_.toBuilder(); + } + addonsConfig_ = input.readMessage(com.google.container.v1beta1.AddonsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(addonsConfig_); + addonsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + subnetwork_ = s; + break; + } + case 98: { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + nodePools_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + nodePools_.add( + input.readMessage(com.google.container.v1beta1.NodePool.parser(), extensionRegistry)); + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00001000; + } + locations_.add(s); + break; + } + case 112: { + + enableKubernetesAlpha_ = input.readBool(); + break; + } + case 122: { + if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00004000; + } + com.google.protobuf.MapEntry + resourceLabels__ = input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + resourceLabels_.getMutableMap().put( + resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } + case 130: { + java.lang.String s = input.readStringRequireUtf8(); + + labelFingerprint_ = s; + break; + } + case 146: { + com.google.container.v1beta1.LegacyAbac.Builder subBuilder = null; + if (legacyAbac_ != null) { + subBuilder = legacyAbac_.toBuilder(); + } + legacyAbac_ = input.readMessage(com.google.container.v1beta1.LegacyAbac.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(legacyAbac_); + legacyAbac_ = subBuilder.buildPartial(); + } + + break; + } + case 154: { + com.google.container.v1beta1.NetworkPolicy.Builder subBuilder = null; + if (networkPolicy_ != null) { + subBuilder = networkPolicy_.toBuilder(); + } + networkPolicy_ = input.readMessage(com.google.container.v1beta1.NetworkPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkPolicy_); + networkPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 162: { + com.google.container.v1beta1.IPAllocationPolicy.Builder subBuilder = null; + if (ipAllocationPolicy_ != null) { + subBuilder = ipAllocationPolicy_.toBuilder(); + } + ipAllocationPolicy_ = input.readMessage(com.google.container.v1beta1.IPAllocationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ipAllocationPolicy_); + ipAllocationPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 178: { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder subBuilder = null; + if (masterAuthorizedNetworksConfig_ != null) { + subBuilder = masterAuthorizedNetworksConfig_.toBuilder(); + } + masterAuthorizedNetworksConfig_ = input.readMessage(com.google.container.v1beta1.MasterAuthorizedNetworksConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(masterAuthorizedNetworksConfig_); + masterAuthorizedNetworksConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 186: { + com.google.container.v1beta1.MaintenancePolicy.Builder subBuilder = null; + if (maintenancePolicy_ != null) { + subBuilder = maintenancePolicy_.toBuilder(); + } + maintenancePolicy_ = input.readMessage(com.google.container.v1beta1.MaintenancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenancePolicy_); + maintenancePolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 194: { + com.google.container.v1beta1.BinaryAuthorization.Builder subBuilder = null; + if (binaryAuthorization_ != null) { + subBuilder = binaryAuthorization_.toBuilder(); + } + binaryAuthorization_ = input.readMessage(com.google.container.v1beta1.BinaryAuthorization.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binaryAuthorization_); + binaryAuthorization_ = subBuilder.buildPartial(); + } + + break; + } + case 202: { + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder subBuilder = null; + if (podSecurityPolicyConfig_ != null) { + subBuilder = podSecurityPolicyConfig_.toBuilder(); + } + podSecurityPolicyConfig_ = input.readMessage(com.google.container.v1beta1.PodSecurityPolicyConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(podSecurityPolicyConfig_); + podSecurityPolicyConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 210: { + com.google.container.v1beta1.ClusterAutoscaling.Builder subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = input.readMessage(com.google.container.v1beta1.ClusterAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 218: { + com.google.container.v1beta1.NetworkConfig.Builder subBuilder = null; + if (networkConfig_ != null) { + subBuilder = networkConfig_.toBuilder(); + } + networkConfig_ = input.readMessage(com.google.container.v1beta1.NetworkConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkConfig_); + networkConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 224: { + + privateCluster_ = input.readBool(); + break; + } + case 234: { + java.lang.String s = input.readStringRequireUtf8(); + + masterIpv4CidrBlock_ = s; + break; + } + case 242: { + com.google.container.v1beta1.MaxPodsConstraint.Builder subBuilder = null; + if (defaultMaxPodsConstraint_ != null) { + subBuilder = defaultMaxPodsConstraint_.toBuilder(); + } + defaultMaxPodsConstraint_ = input.readMessage(com.google.container.v1beta1.MaxPodsConstraint.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultMaxPodsConstraint_); + defaultMaxPodsConstraint_ = subBuilder.buildPartial(); + } + + break; + } + case 298: { + com.google.container.v1beta1.PrivateClusterConfig.Builder subBuilder = null; + if (privateClusterConfig_ != null) { + subBuilder = privateClusterConfig_.toBuilder(); + } + privateClusterConfig_ = input.readMessage(com.google.container.v1beta1.PrivateClusterConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(privateClusterConfig_); + privateClusterConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + + selfLink_ = s; + break; + } + case 810: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 818: { + java.lang.String s = input.readStringRequireUtf8(); + + endpoint_ = s; + break; + } + case 826: { + java.lang.String s = input.readStringRequireUtf8(); + + initialClusterVersion_ = s; + break; + } + case 834: { + java.lang.String s = input.readStringRequireUtf8(); + + currentMasterVersion_ = s; + break; + } + case 842: { + java.lang.String s = input.readStringRequireUtf8(); + + currentNodeVersion_ = s; + break; + } + case 850: { + java.lang.String s = input.readStringRequireUtf8(); + + createTime_ = s; + break; + } + case 856: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 866: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 872: { + + nodeIpv4CidrSize_ = input.readInt32(); + break; + } + case 882: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesIpv4Cidr_ = s; + break; + } + case 890: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField1_ & 0x00000100) == 0x00000100)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField1_ |= 0x00000100; + } + instanceGroupUrls_.add(s); + break; + } + case 896: { + + currentNodeCount_ = input.readInt32(); + break; + } + case 906: { + java.lang.String s = input.readStringRequireUtf8(); + + expireTime_ = s; + break; + } + case 914: { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } + case 920: { + + enableTpu_ = input.readBool(); + break; + } + case 930: { + java.lang.String s = input.readStringRequireUtf8(); + + tpuIpv4CidrBlock_ = s; + break; + } + case 946: { + if (!((mutable_bitField1_ & 0x00004000) == 0x00004000)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x00004000; + } + conditions_.add( + input.readMessage(com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + locations_ = locations_.getUnmodifiableView(); + } + if (((mutable_bitField1_ & 0x00000100) == 0x00000100)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + } + if (((mutable_bitField1_ & 0x00004000) == 0x00004000)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 15: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Cluster.class, com.google.container.v1beta1.Cluster.Builder.class); + } + + /** + *
+   * The current status of the cluster.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Cluster.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + *
+     * The PROVISIONING state indicates the cluster is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + *
+     * The RUNNING state indicates the cluster has been created and is fully
+     * usable.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the cluster, such as upgrading the master or node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 3; + */ + RECONCILING(3), + /** + *
+     * The STOPPING state indicates the cluster is being deleted.
+     * 
+ * + * STOPPING = 4; + */ + STOPPING(4), + /** + *
+     * The ERROR state indicates the cluster may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 5; + */ + ERROR(5), + /** + *
+     * The DEGRADED state indicates the cluster requires user action to restore
+     * full functionality. Details can be found in the `statusMessage` field.
+     * 
+ * + * DEGRADED = 6; + */ + DEGRADED(6), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+     * The PROVISIONING state indicates the cluster is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + *
+     * The RUNNING state indicates the cluster has been created and is fully
+     * usable.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the cluster, such as upgrading the master or node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 3; + */ + public static final int RECONCILING_VALUE = 3; + /** + *
+     * The STOPPING state indicates the cluster is being deleted.
+     * 
+ * + * STOPPING = 4; + */ + public static final int STOPPING_VALUE = 4; + /** + *
+     * The ERROR state indicates the cluster may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 5; + */ + public static final int ERROR_VALUE = 5; + /** + *
+     * The DEGRADED state indicates the cluster requires user action to restore
+     * full functionality. Details can be found in the `statusMessage` field.
+     * 
+ * + * DEGRADED = 6; + */ + public static final int DEGRADED_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return RUNNING; + case 3: return RECONCILING; + case 4: return STOPPING; + case 5: return ERROR; + case 6: return DEGRADED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.Cluster.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Cluster.Status) + } + + private int bitField0_; + private int bitField1_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of this cluster. The name must be unique within this project
+   * and zone, and can be up to 40 characters with the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of this cluster. The name must be unique within this project
+   * and zone, and can be up to 40 characters with the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_; + /** + *
+   * The number of nodes to create in this cluster. You must ensure that your
+   * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "node_config") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * 
+ * + * int32 initial_node_count = 3; + */ + public int getInitialNodeCount() { + return initialNodeCount_; + } + + public static final int NODE_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NodeConfig nodeConfig_; + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public boolean hasNodeConfig() { + return nodeConfig_ != null; + } + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public com.google.container.v1beta1.NodeConfig getNodeConfig() { + return nodeConfig_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : nodeConfig_; + } + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder() { + return getNodeConfig(); + } + + public static final int MASTER_AUTH_FIELD_NUMBER = 5; + private com.google.container.v1beta1.MasterAuth masterAuth_; + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public boolean hasMasterAuth() { + return masterAuth_ != null; + } + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public com.google.container.v1beta1.MasterAuth getMasterAuth() { + return masterAuth_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : masterAuth_; + } + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder() { + return getMasterAuth(); + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; + private volatile java.lang.Object loggingService_; + /** + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `none` - no logs will be exported from the cluster.
+   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * 
+ * + * string logging_service = 6; + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } + } + /** + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `none` - no logs will be exported from the cluster.
+   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * 
+ * + * string logging_service = 6; + */ + public com.google.protobuf.ByteString + getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONITORING_SERVICE_FIELD_NUMBER = 7; + private volatile java.lang.Object monitoringService_; + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+   * * `none` - no metrics will be exported from the cluster.
+   * * if left as an empty string, `monitoring.googleapis.com` will be used.
+   * 
+ * + * string monitoring_service = 7; + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } + } + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+   * * `none` - no metrics will be exported from the cluster.
+   * * if left as an empty string, `monitoring.googleapis.com` will be used.
+   * 
+ * + * string monitoring_service = 7; + */ + public com.google.protobuf.ByteString + getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 8; + private volatile java.lang.Object network_; + /** + *
+   * The name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * cluster is connected. If left unspecified, the `default` network
+   * will be used. On output this shows the network ID instead of
+   * the name.
+   * 
+ * + * string network = 8; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + *
+   * The name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * cluster is connected. If left unspecified, the `default` network
+   * will be used. On output this shows the network ID instead of
+   * the name.
+   * 
+ * + * string network = 8; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 9; + private volatile java.lang.Object clusterIpv4Cidr_; + /** + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } + } + /** + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public com.google.protobuf.ByteString + getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDONS_CONFIG_FIELD_NUMBER = 10; + private com.google.container.v1beta1.AddonsConfig addonsConfig_; + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public boolean hasAddonsConfig() { + return addonsConfig_ != null; + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + return addonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + return getAddonsConfig(); + } + + public static final int SUBNETWORK_FIELD_NUMBER = 11; + private volatile java.lang.Object subnetwork_; + /** + *
+   * The name of the Google Compute Engine
+   * [subnetwork](/compute/docs/subnetworks) to which the
+   * cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + *
+   * The name of the Google Compute Engine
+   * [subnetwork](/compute/docs/subnetworks) to which the
+   * cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOLS_FIELD_NUMBER = 12; + private java.util.List nodePools_; + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List getNodePoolsList() { + return nodePools_; + } + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsOrBuilderList() { + return nodePools_; + } + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public int getNodePoolsCount() { + return nodePools_.size(); + } + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool getNodePools(int index) { + return nodePools_.get(index); + } + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index) { + return nodePools_.get(index); + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + public com.google.protobuf.ProtocolStringList + getLocationsList() { + return locations_; + } + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + public com.google.protobuf.ByteString + getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER = 14; + private boolean enableKubernetesAlpha_; + /** + *
+   * Kubernetes alpha features are enabled on this cluster. This includes alpha
+   * API groups (e.g. v1beta1) and features that may not be production ready in
+   * the kubernetes version of the master and nodes.
+   * The cluster has no SLA for uptime and master/node upgrades are disabled.
+   * Alpha enabled clusters are automatically deleted thirty days after
+   * creation.
+   * 
+ * + * bool enable_kubernetes_alpha = 14; + */ + public boolean getEnableKubernetesAlpha() { + return enableKubernetesAlpha_; + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 15; + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + + public java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + + public java.lang.String getResourceLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABEL_FINGERPRINT_FIELD_NUMBER = 16; + private volatile java.lang.Object labelFingerprint_; + /** + *
+   * The fingerprint of the set of labels for this cluster.
+   * 
+ * + * string label_fingerprint = 16; + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } + } + /** + *
+   * The fingerprint of the set of labels for this cluster.
+   * 
+ * + * string label_fingerprint = 16; + */ + public com.google.protobuf.ByteString + getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LEGACY_ABAC_FIELD_NUMBER = 18; + private com.google.container.v1beta1.LegacyAbac legacyAbac_; + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public boolean hasLegacyAbac() { + return legacyAbac_ != null; + } + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1beta1.LegacyAbac getLegacyAbac() { + return legacyAbac_ == null ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() : legacyAbac_; + } + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1beta1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { + return getLegacyAbac(); + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 19; + private com.google.container.v1beta1.NetworkPolicy networkPolicy_; + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public boolean hasNetworkPolicy() { + return networkPolicy_ != null; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return getNetworkPolicy(); + } + + public static final int IP_ALLOCATION_POLICY_FIELD_NUMBER = 20; + private com.google.container.v1beta1.IPAllocationPolicy ipAllocationPolicy_; + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public boolean hasIpAllocationPolicy() { + return ipAllocationPolicy_ != null; + } + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1beta1.IPAllocationPolicy getIpAllocationPolicy() { + return ipAllocationPolicy_ == null ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1beta1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { + return getIpAllocationPolicy(); + } + + public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ != null; + } + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ == null ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder() { + return getMasterAuthorizedNetworksConfig(); + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 23; + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicy_ != null; + } + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + return getMaintenancePolicy(); + } + + public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 24; + private com.google.container.v1beta1.BinaryAuthorization binaryAuthorization_; + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public boolean hasBinaryAuthorization() { + return binaryAuthorization_ != null; + } + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1beta1.BinaryAuthorization getBinaryAuthorization() { + return binaryAuthorization_ == null ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { + return getBinaryAuthorization(); + } + + public static final int POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1beta1.PodSecurityPolicyConfig podSecurityPolicyConfig_; + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public boolean hasPodSecurityPolicyConfig() { + return podSecurityPolicyConfig_ != null; + } + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig getPodSecurityPolicyConfig() { + return podSecurityPolicyConfig_ == null ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : podSecurityPolicyConfig_; + } + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getPodSecurityPolicyConfigOrBuilder() { + return getPodSecurityPolicyConfig(); + } + + public static final int AUTOSCALING_FIELD_NUMBER = 26; + private com.google.container.v1beta1.ClusterAutoscaling autoscaling_; + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1beta1.ClusterAutoscaling getAutoscaling() { + return autoscaling_ == null ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 27; + private com.google.container.v1beta1.NetworkConfig networkConfig_; + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public boolean hasNetworkConfig() { + return networkConfig_ != null; + } + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public com.google.container.v1beta1.NetworkConfig getNetworkConfig() { + return networkConfig_ == null ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() : networkConfig_; + } + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return getNetworkConfig(); + } + + public static final int PRIVATE_CLUSTER_FIELD_NUMBER = 28; + private boolean privateCluster_; + /** + *
+   * If this is a private cluster setup. Private clusters are clusters that, by
+   * default have no external IP addresses on the nodes and where nodes and the
+   * master communicate over private IP addresses.
+   * This field is deprecated, use private_cluster_config.enabled instead.
+   * 
+ * + * bool private_cluster = 28 [deprecated = true]; + */ + @java.lang.Deprecated public boolean getPrivateCluster() { + return privateCluster_; + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 29; + private volatile java.lang.Object masterIpv4CidrBlock_; + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network.
+   * This prefix will be used for assigning private IP addresses to the
+   * master or set of masters, as well as the ILB VIP.
+   * This field is deprecated, use
+   * private_cluster_config.master_ipv4_cidr_block instead.
+   * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network.
+   * This prefix will be used for assigning private IP addresses to the
+   * master or set of masters, as well as the ILB VIP.
+   * This field is deprecated, use
+   * private_cluster_config.master_ipv4_cidr_block instead.
+   * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER = 30; + private com.google.container.v1beta1.MaxPodsConstraint defaultMaxPodsConstraint_; + /** + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public boolean hasDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraint_ != null; + } + /** + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraint_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : defaultMaxPodsConstraint_; + } + /** + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder() { + return getDefaultMaxPodsConstraint(); + } + + public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 37; + private com.google.container.v1beta1.PrivateClusterConfig privateClusterConfig_; + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public boolean hasPrivateClusterConfig() { + return privateClusterConfig_ != null; + } + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig() { + return privateClusterConfig_ == null ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1beta1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + return getPrivateClusterConfig(); + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + private volatile java.lang.Object selfLink_; + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 101; + private volatile java.lang.Object zone_; + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINT_FIELD_NUMBER = 102; + private volatile java.lang.Object endpoint_; + /** + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } + } + /** + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + */ + public com.google.protobuf.ByteString + getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_CLUSTER_VERSION_FIELD_NUMBER = 103; + private volatile java.lang.Object initialClusterVersion_; + /** + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + */ + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } + } + /** + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + */ + public com.google.protobuf.ByteString + getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_MASTER_VERSION_FIELD_NUMBER = 104; + private volatile java.lang.Object currentMasterVersion_; + /** + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + */ + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } + } + /** + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + */ + public com.google.protobuf.ByteString + getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_NODE_VERSION_FIELD_NUMBER = 105; + private volatile java.lang.Object currentNodeVersion_; + /** + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components.
+   * If they are currently at multiple versions because they're in the process
+   * of being upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getCurrentNodeVersion() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentNodeVersion_ = s; + return s; + } + } + /** + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components.
+   * If they are currently at multiple versions because they're in the process
+   * of being upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getCurrentNodeVersionBytes() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 106; + private volatile java.lang.Object createTime_; + /** + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + */ + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } + } + /** + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + */ + public com.google.protobuf.ByteString + getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 107; + private int status_; + /** + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + */ + public int getStatusValue() { + return status_; + } + /** + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + */ + public com.google.container.v1beta1.Cluster.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Cluster.Status result = com.google.container.v1beta1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Cluster.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; + private volatile java.lang.Object statusMessage_; + /** + *
+   * [Output only] Additional information about the current status of this
+   * cluster, if available.
+   * 
+ * + * string status_message = 108; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + *
+   * [Output only] Additional information about the current status of this
+   * cluster, if available.
+   * 
+ * + * string status_message = 108; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_SIZE_FIELD_NUMBER = 109; + private int nodeIpv4CidrSize_; + /** + *
+   * [Output only] The size of the address space on each node for hosting
+   * containers. This is provisioned from within the `container_ipv4_cidr`
+   * range.
+   * 
+ * + * int32 node_ipv4_cidr_size = 109; + */ + public int getNodeIpv4CidrSize() { + return nodeIpv4CidrSize_; + } + + public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 110; + private volatile java.lang.Object servicesIpv4Cidr_; + /** + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + */ + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } + } + /** + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + */ + public com.google.protobuf.ByteString + getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 111; + private com.google.protobuf.LazyStringList instanceGroupUrls_; + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + return instanceGroupUrls_; + } + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + + public static final int CURRENT_NODE_COUNT_FIELD_NUMBER = 112; + private int currentNodeCount_; + /** + *
+   * [Output only] The number of nodes currently in the cluster.
+   * 
+ * + * int32 current_node_count = 112; + */ + public int getCurrentNodeCount() { + return currentNodeCount_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 113; + private volatile java.lang.Object expireTime_; + /** + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + */ + public java.lang.String getExpireTime() { + java.lang.Object ref = expireTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireTime_ = s; + return s; + } + } + /** + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + */ + public com.google.protobuf.ByteString + getExpireTimeBytes() { + java.lang.Object ref = expireTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expireTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 114; + private volatile java.lang.Object location_; + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_TPU_FIELD_NUMBER = 115; + private boolean enableTpu_; + /** + *
+   * Enable the ability to use Cloud TPUs in this cluster.
+   * 
+ * + * bool enable_tpu = 115; + */ + public boolean getEnableTpu() { + return enableTpu_; + } + + public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 116; + private volatile java.lang.Object tpuIpv4CidrBlock_; + /** + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + */ + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + */ + public com.google.protobuf.ByteString + getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONDITIONS_FIELD_NUMBER = 118; + private java.util.List conditions_; + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (nodeConfig_ != null) { + output.writeMessage(4, getNodeConfig()); + } + if (masterAuth_ != null) { + output.writeMessage(5, getMasterAuth()); + } + if (!getLoggingServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); + } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); + } + if (addonsConfig_ != null) { + output.writeMessage(10, getAddonsConfig()); + } + if (!getSubnetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(12, nodePools_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (enableKubernetesAlpha_ != false) { + output.writeBool(14, enableKubernetesAlpha_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResourceLabels(), + ResourceLabelsDefaultEntryHolder.defaultEntry, + 15); + if (!getLabelFingerprintBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); + } + if (legacyAbac_ != null) { + output.writeMessage(18, getLegacyAbac()); + } + if (networkPolicy_ != null) { + output.writeMessage(19, getNetworkPolicy()); + } + if (ipAllocationPolicy_ != null) { + output.writeMessage(20, getIpAllocationPolicy()); + } + if (masterAuthorizedNetworksConfig_ != null) { + output.writeMessage(22, getMasterAuthorizedNetworksConfig()); + } + if (maintenancePolicy_ != null) { + output.writeMessage(23, getMaintenancePolicy()); + } + if (binaryAuthorization_ != null) { + output.writeMessage(24, getBinaryAuthorization()); + } + if (podSecurityPolicyConfig_ != null) { + output.writeMessage(25, getPodSecurityPolicyConfig()); + } + if (autoscaling_ != null) { + output.writeMessage(26, getAutoscaling()); + } + if (networkConfig_ != null) { + output.writeMessage(27, getNetworkConfig()); + } + if (privateCluster_ != false) { + output.writeBool(28, privateCluster_); + } + if (!getMasterIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, masterIpv4CidrBlock_); + } + if (defaultMaxPodsConstraint_ != null) { + output.writeMessage(30, getDefaultMaxPodsConstraint()); + } + if (privateClusterConfig_ != null) { + output.writeMessage(37, getPrivateClusterConfig()); + } + if (!getSelfLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, zone_); + } + if (!getEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, endpoint_); + } + if (!getInitialClusterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 103, initialClusterVersion_); + } + if (!getCurrentMasterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 104, currentMasterVersion_); + } + if (!getCurrentNodeVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 105, currentNodeVersion_); + } + if (!getCreateTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 106, createTime_); + } + if (status_ != com.google.container.v1beta1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(107, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 108, statusMessage_); + } + if (nodeIpv4CidrSize_ != 0) { + output.writeInt32(109, nodeIpv4CidrSize_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 110, servicesIpv4Cidr_); + } + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 111, instanceGroupUrls_.getRaw(i)); + } + if (currentNodeCount_ != 0) { + output.writeInt32(112, currentNodeCount_); + } + if (!getExpireTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 113, expireTime_); + } + if (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 114, location_); + } + if (enableTpu_ != false) { + output.writeBool(115, enableTpu_); + } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 116, tpuIpv4CidrBlock_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(118, conditions_.get(i)); + } + 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 (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, initialNodeCount_); + } + if (nodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNodeConfig()); + } + if (masterAuth_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMasterAuth()); + } + if (!getLoggingServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, loggingService_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, monitoringService_); + } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4Cidr_); + } + if (addonsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getAddonsConfig()); + } + if (!getSubnetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, nodePools_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (enableKubernetesAlpha_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, enableKubernetesAlpha_); + } + for (java.util.Map.Entry entry + : internalGetResourceLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + resourceLabels__ = ResourceLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, resourceLabels__); + } + if (!getLabelFingerprintBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, labelFingerprint_); + } + if (legacyAbac_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLegacyAbac()); + } + if (networkPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getNetworkPolicy()); + } + if (ipAllocationPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getIpAllocationPolicy()); + } + if (masterAuthorizedNetworksConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getMasterAuthorizedNetworksConfig()); + } + if (maintenancePolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getMaintenancePolicy()); + } + if (binaryAuthorization_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getBinaryAuthorization()); + } + if (podSecurityPolicyConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getPodSecurityPolicyConfig()); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getAutoscaling()); + } + if (networkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getNetworkConfig()); + } + if (privateCluster_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(28, privateCluster_); + } + if (!getMasterIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, masterIpv4CidrBlock_); + } + if (defaultMaxPodsConstraint_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, getDefaultMaxPodsConstraint()); + } + if (privateClusterConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(37, getPrivateClusterConfig()); + } + if (!getSelfLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, zone_); + } + if (!getEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, endpoint_); + } + if (!getInitialClusterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, initialClusterVersion_); + } + if (!getCurrentMasterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, currentMasterVersion_); + } + if (!getCurrentNodeVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(105, currentNodeVersion_); + } + if (!getCreateTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(106, createTime_); + } + if (status_ != com.google.container.v1beta1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(107, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(108, statusMessage_); + } + if (nodeIpv4CidrSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(109, nodeIpv4CidrSize_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(110, servicesIpv4Cidr_); + } + { + int dataSize = 0; + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(instanceGroupUrls_.getRaw(i)); + } + size += dataSize; + size += 2 * getInstanceGroupUrlsList().size(); + } + if (currentNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(112, currentNodeCount_); + } + if (!getExpireTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(113, expireTime_); + } + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114, location_); + } + if (enableTpu_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(115, enableTpu_); + } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(116, tpuIpv4CidrBlock_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(118, conditions_.get(i)); + } + 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.container.v1beta1.Cluster)) { + return super.equals(obj); + } + com.google.container.v1beta1.Cluster other = (com.google.container.v1beta1.Cluster) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getDescription() + .equals(other.getDescription()); + result = result && (getInitialNodeCount() + == other.getInitialNodeCount()); + result = result && (hasNodeConfig() == other.hasNodeConfig()); + if (hasNodeConfig()) { + result = result && getNodeConfig() + .equals(other.getNodeConfig()); + } + result = result && (hasMasterAuth() == other.hasMasterAuth()); + if (hasMasterAuth()) { + result = result && getMasterAuth() + .equals(other.getMasterAuth()); + } + result = result && getLoggingService() + .equals(other.getLoggingService()); + result = result && getMonitoringService() + .equals(other.getMonitoringService()); + result = result && getNetwork() + .equals(other.getNetwork()); + result = result && getClusterIpv4Cidr() + .equals(other.getClusterIpv4Cidr()); + result = result && (hasAddonsConfig() == other.hasAddonsConfig()); + if (hasAddonsConfig()) { + result = result && getAddonsConfig() + .equals(other.getAddonsConfig()); + } + result = result && getSubnetwork() + .equals(other.getSubnetwork()); + result = result && getNodePoolsList() + .equals(other.getNodePoolsList()); + result = result && getLocationsList() + .equals(other.getLocationsList()); + result = result && (getEnableKubernetesAlpha() + == other.getEnableKubernetesAlpha()); + result = result && internalGetResourceLabels().equals( + other.internalGetResourceLabels()); + result = result && getLabelFingerprint() + .equals(other.getLabelFingerprint()); + result = result && (hasLegacyAbac() == other.hasLegacyAbac()); + if (hasLegacyAbac()) { + result = result && getLegacyAbac() + .equals(other.getLegacyAbac()); + } + result = result && (hasNetworkPolicy() == other.hasNetworkPolicy()); + if (hasNetworkPolicy()) { + result = result && getNetworkPolicy() + .equals(other.getNetworkPolicy()); + } + result = result && (hasIpAllocationPolicy() == other.hasIpAllocationPolicy()); + if (hasIpAllocationPolicy()) { + result = result && getIpAllocationPolicy() + .equals(other.getIpAllocationPolicy()); + } + result = result && (hasMasterAuthorizedNetworksConfig() == other.hasMasterAuthorizedNetworksConfig()); + if (hasMasterAuthorizedNetworksConfig()) { + result = result && getMasterAuthorizedNetworksConfig() + .equals(other.getMasterAuthorizedNetworksConfig()); + } + result = result && (hasMaintenancePolicy() == other.hasMaintenancePolicy()); + if (hasMaintenancePolicy()) { + result = result && getMaintenancePolicy() + .equals(other.getMaintenancePolicy()); + } + result = result && (hasBinaryAuthorization() == other.hasBinaryAuthorization()); + if (hasBinaryAuthorization()) { + result = result && getBinaryAuthorization() + .equals(other.getBinaryAuthorization()); + } + result = result && (hasPodSecurityPolicyConfig() == other.hasPodSecurityPolicyConfig()); + if (hasPodSecurityPolicyConfig()) { + result = result && getPodSecurityPolicyConfig() + .equals(other.getPodSecurityPolicyConfig()); + } + result = result && (hasAutoscaling() == other.hasAutoscaling()); + if (hasAutoscaling()) { + result = result && getAutoscaling() + .equals(other.getAutoscaling()); + } + result = result && (hasNetworkConfig() == other.hasNetworkConfig()); + if (hasNetworkConfig()) { + result = result && getNetworkConfig() + .equals(other.getNetworkConfig()); + } + result = result && (getPrivateCluster() + == other.getPrivateCluster()); + result = result && getMasterIpv4CidrBlock() + .equals(other.getMasterIpv4CidrBlock()); + result = result && (hasDefaultMaxPodsConstraint() == other.hasDefaultMaxPodsConstraint()); + if (hasDefaultMaxPodsConstraint()) { + result = result && getDefaultMaxPodsConstraint() + .equals(other.getDefaultMaxPodsConstraint()); + } + result = result && (hasPrivateClusterConfig() == other.hasPrivateClusterConfig()); + if (hasPrivateClusterConfig()) { + result = result && getPrivateClusterConfig() + .equals(other.getPrivateClusterConfig()); + } + result = result && getSelfLink() + .equals(other.getSelfLink()); + result = result && getZone() + .equals(other.getZone()); + result = result && getEndpoint() + .equals(other.getEndpoint()); + result = result && getInitialClusterVersion() + .equals(other.getInitialClusterVersion()); + result = result && getCurrentMasterVersion() + .equals(other.getCurrentMasterVersion()); + result = result && getCurrentNodeVersion() + .equals(other.getCurrentNodeVersion()); + result = result && getCreateTime() + .equals(other.getCreateTime()); + result = result && status_ == other.status_; + result = result && getStatusMessage() + .equals(other.getStatusMessage()); + result = result && (getNodeIpv4CidrSize() + == other.getNodeIpv4CidrSize()); + result = result && getServicesIpv4Cidr() + .equals(other.getServicesIpv4Cidr()); + result = result && getInstanceGroupUrlsList() + .equals(other.getInstanceGroupUrlsList()); + result = result && (getCurrentNodeCount() + == other.getCurrentNodeCount()); + result = result && getExpireTime() + .equals(other.getExpireTime()); + result = result && getLocation() + .equals(other.getLocation()); + result = result && (getEnableTpu() + == other.getEnableTpu()); + result = result && getTpuIpv4CidrBlock() + .equals(other.getTpuIpv4CidrBlock()); + result = result && getConditionsList() + .equals(other.getConditionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInitialNodeCount(); + if (hasNodeConfig()) { + hash = (37 * hash) + NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodeConfig().hashCode(); + } + if (hasMasterAuth()) { + hash = (37 * hash) + MASTER_AUTH_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuth().hashCode(); + } + hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getLoggingService().hashCode(); + hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringService().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); + if (hasAddonsConfig()) { + hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAddonsConfig().hashCode(); + } + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + if (getNodePoolsCount() > 0) { + hash = (37 * hash) + NODE_POOLS_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolsList().hashCode(); + } + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (37 * hash) + ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableKubernetesAlpha()); + if (!internalGetResourceLabels().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceLabels().hashCode(); + } + hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; + hash = (53 * hash) + getLabelFingerprint().hashCode(); + if (hasLegacyAbac()) { + hash = (37 * hash) + LEGACY_ABAC_FIELD_NUMBER; + hash = (53 * hash) + getLegacyAbac().hashCode(); + } + if (hasNetworkPolicy()) { + hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicy().hashCode(); + } + if (hasIpAllocationPolicy()) { + hash = (37 * hash) + IP_ALLOCATION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getIpAllocationPolicy().hashCode(); + } + if (hasMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuthorizedNetworksConfig().hashCode(); + } + if (hasMaintenancePolicy()) { + hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMaintenancePolicy().hashCode(); + } + if (hasBinaryAuthorization()) { + hash = (37 * hash) + BINARY_AUTHORIZATION_FIELD_NUMBER; + hash = (53 * hash) + getBinaryAuthorization().hashCode(); + } + if (hasPodSecurityPolicyConfig()) { + hash = (37 * hash) + POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPodSecurityPolicyConfig().hashCode(); + } + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().hashCode(); + } + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + hash = (37 * hash) + PRIVATE_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrivateCluster()); + hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); + if (hasDefaultMaxPodsConstraint()) { + hash = (37 * hash) + DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getDefaultMaxPodsConstraint().hashCode(); + } + if (hasPrivateClusterConfig()) { + hash = (37 * hash) + PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivateClusterConfig().hashCode(); + } + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + hash = (37 * hash) + INITIAL_CLUSTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getInitialClusterVersion().hashCode(); + hash = (37 * hash) + CURRENT_MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCurrentMasterVersion().hashCode(); + hash = (37 * hash) + CURRENT_NODE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCurrentNodeVersion().hashCode(); + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + NODE_IPV4_CIDR_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getNodeIpv4CidrSize(); + hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); + if (getInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); + } + hash = (37 * hash) + CURRENT_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCurrentNodeCount(); + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + ENABLE_TPU_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableTpu()); + hash = (37 * hash) + TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getTpuIpv4CidrBlock().hashCode(); + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.Cluster parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Cluster parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Cluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Cluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Cluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Cluster parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Cluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Cluster parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.Cluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Cluster parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.Cluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A Google Kubernetes Engine cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.Cluster} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Cluster) + com.google.container.v1beta1.ClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 15: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 15: + return internalGetMutableResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Cluster.class, com.google.container.v1beta1.Cluster.Builder.class); + } + + // Construct using com.google.container.v1beta1.Cluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodePoolsFieldBuilder(); + getConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + initialNodeCount_ = 0; + + if (nodeConfigBuilder_ == null) { + nodeConfig_ = null; + } else { + nodeConfig_ = null; + nodeConfigBuilder_ = null; + } + if (masterAuthBuilder_ == null) { + masterAuth_ = null; + } else { + masterAuth_ = null; + masterAuthBuilder_ = null; + } + loggingService_ = ""; + + monitoringService_ = ""; + + network_ = ""; + + clusterIpv4Cidr_ = ""; + + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + subnetwork_ = ""; + + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + nodePoolsBuilder_.clear(); + } + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + enableKubernetesAlpha_ = false; + + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + + if (legacyAbacBuilder_ == null) { + legacyAbac_ = null; + } else { + legacyAbac_ = null; + legacyAbacBuilder_ = null; + } + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = null; + } else { + ipAllocationPolicy_ = null; + ipAllocationPolicyBuilder_ = null; + } + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = null; + } else { + masterAuthorizedNetworksConfig_ = null; + masterAuthorizedNetworksConfigBuilder_ = null; + } + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = null; + } else { + podSecurityPolicyConfig_ = null; + podSecurityPolicyConfigBuilder_ = null; + } + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + privateCluster_ = false; + + masterIpv4CidrBlock_ = ""; + + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = null; + } else { + defaultMaxPodsConstraint_ = null; + defaultMaxPodsConstraintBuilder_ = null; + } + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = null; + } else { + privateClusterConfig_ = null; + privateClusterConfigBuilder_ = null; + } + selfLink_ = ""; + + zone_ = ""; + + endpoint_ = ""; + + initialClusterVersion_ = ""; + + currentMasterVersion_ = ""; + + currentNodeVersion_ = ""; + + createTime_ = ""; + + status_ = 0; + + statusMessage_ = ""; + + nodeIpv4CidrSize_ = 0; + + servicesIpv4Cidr_ = ""; + + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField1_ = (bitField1_ & ~0x00000100); + currentNodeCount_ = 0; + + expireTime_ = ""; + + location_ = ""; + + enableTpu_ = false; + + tpuIpv4CidrBlock_ = ""; + + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00004000); + } else { + conditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster getDefaultInstanceForType() { + return com.google.container.v1beta1.Cluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster build() { + com.google.container.v1beta1.Cluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster buildPartial() { + com.google.container.v1beta1.Cluster result = new com.google.container.v1beta1.Cluster(this); + int from_bitField0_ = bitField0_; + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + int to_bitField1_ = 0; + result.name_ = name_; + result.description_ = description_; + result.initialNodeCount_ = initialNodeCount_; + if (nodeConfigBuilder_ == null) { + result.nodeConfig_ = nodeConfig_; + } else { + result.nodeConfig_ = nodeConfigBuilder_.build(); + } + if (masterAuthBuilder_ == null) { + result.masterAuth_ = masterAuth_; + } else { + result.masterAuth_ = masterAuthBuilder_.build(); + } + result.loggingService_ = loggingService_; + result.monitoringService_ = monitoringService_; + result.network_ = network_; + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + if (addonsConfigBuilder_ == null) { + result.addonsConfig_ = addonsConfig_; + } else { + result.addonsConfig_ = addonsConfigBuilder_.build(); + } + result.subnetwork_ = subnetwork_; + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.locations_ = locations_; + result.enableKubernetesAlpha_ = enableKubernetesAlpha_; + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + result.labelFingerprint_ = labelFingerprint_; + if (legacyAbacBuilder_ == null) { + result.legacyAbac_ = legacyAbac_; + } else { + result.legacyAbac_ = legacyAbacBuilder_.build(); + } + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + if (ipAllocationPolicyBuilder_ == null) { + result.ipAllocationPolicy_ = ipAllocationPolicy_; + } else { + result.ipAllocationPolicy_ = ipAllocationPolicyBuilder_.build(); + } + if (masterAuthorizedNetworksConfigBuilder_ == null) { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfig_; + } else { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfigBuilder_.build(); + } + if (maintenancePolicyBuilder_ == null) { + result.maintenancePolicy_ = maintenancePolicy_; + } else { + result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); + } + if (binaryAuthorizationBuilder_ == null) { + result.binaryAuthorization_ = binaryAuthorization_; + } else { + result.binaryAuthorization_ = binaryAuthorizationBuilder_.build(); + } + if (podSecurityPolicyConfigBuilder_ == null) { + result.podSecurityPolicyConfig_ = podSecurityPolicyConfig_; + } else { + result.podSecurityPolicyConfig_ = podSecurityPolicyConfigBuilder_.build(); + } + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + if (networkConfigBuilder_ == null) { + result.networkConfig_ = networkConfig_; + } else { + result.networkConfig_ = networkConfigBuilder_.build(); + } + result.privateCluster_ = privateCluster_; + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + if (defaultMaxPodsConstraintBuilder_ == null) { + result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraint_; + } else { + result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraintBuilder_.build(); + } + if (privateClusterConfigBuilder_ == null) { + result.privateClusterConfig_ = privateClusterConfig_; + } else { + result.privateClusterConfig_ = privateClusterConfigBuilder_.build(); + } + result.selfLink_ = selfLink_; + result.zone_ = zone_; + result.endpoint_ = endpoint_; + result.initialClusterVersion_ = initialClusterVersion_; + result.currentMasterVersion_ = currentMasterVersion_; + result.currentNodeVersion_ = currentNodeVersion_; + result.createTime_ = createTime_; + result.status_ = status_; + result.statusMessage_ = statusMessage_; + result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + if (((bitField1_ & 0x00000100) == 0x00000100)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + bitField1_ = (bitField1_ & ~0x00000100); + } + result.instanceGroupUrls_ = instanceGroupUrls_; + result.currentNodeCount_ = currentNodeCount_; + result.expireTime_ = expireTime_; + result.location_ = location_; + result.enableTpu_ = enableTpu_; + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + if (conditionsBuilder_ == null) { + if (((bitField1_ & 0x00004000) == 0x00004000)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField1_ = (bitField1_ & ~0x00004000); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.bitField1_ = to_bitField1_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.Cluster) { + return mergeFrom((com.google.container.v1beta1.Cluster)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Cluster other) { + if (other == com.google.container.v1beta1.Cluster.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getInitialNodeCount() != 0) { + setInitialNodeCount(other.getInitialNodeCount()); + } + if (other.hasNodeConfig()) { + mergeNodeConfig(other.getNodeConfig()); + } + if (other.hasMasterAuth()) { + mergeMasterAuth(other.getMasterAuth()); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000800); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodePoolsFieldBuilder() : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.getEnableKubernetesAlpha() != false) { + setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); + } + internalGetMutableResourceLabels().mergeFrom( + other.internalGetResourceLabels()); + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + onChanged(); + } + if (other.hasLegacyAbac()) { + mergeLegacyAbac(other.getLegacyAbac()); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (other.hasIpAllocationPolicy()) { + mergeIpAllocationPolicy(other.getIpAllocationPolicy()); + } + if (other.hasMasterAuthorizedNetworksConfig()) { + mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (other.hasBinaryAuthorization()) { + mergeBinaryAuthorization(other.getBinaryAuthorization()); + } + if (other.hasPodSecurityPolicyConfig()) { + mergePodSecurityPolicyConfig(other.getPodSecurityPolicyConfig()); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (other.getPrivateCluster() != false) { + setPrivateCluster(other.getPrivateCluster()); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + onChanged(); + } + if (other.hasDefaultMaxPodsConstraint()) { + mergeDefaultMaxPodsConstraint(other.getDefaultMaxPodsConstraint()); + } + if (other.hasPrivateClusterConfig()) { + mergePrivateClusterConfig(other.getPrivateClusterConfig()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + onChanged(); + } + if (!other.getInitialClusterVersion().isEmpty()) { + initialClusterVersion_ = other.initialClusterVersion_; + onChanged(); + } + if (!other.getCurrentMasterVersion().isEmpty()) { + currentMasterVersion_ = other.currentMasterVersion_; + onChanged(); + } + if (!other.getCurrentNodeVersion().isEmpty()) { + currentNodeVersion_ = other.currentNodeVersion_; + onChanged(); + } + if (!other.getCreateTime().isEmpty()) { + createTime_ = other.createTime_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.getNodeIpv4CidrSize() != 0) { + setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField1_ = (bitField1_ & ~0x00000100); + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.getCurrentNodeCount() != 0) { + setCurrentNodeCount(other.getCurrentNodeCount()); + } + if (!other.getExpireTime().isEmpty()) { + expireTime_ = other.expireTime_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (other.getEnableTpu() != false) { + setEnableTpu(other.getEnableTpu()); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + onChanged(); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField1_ = (bitField1_ & ~0x00004000); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField1_ = (bitField1_ & ~0x00004000); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.Cluster parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.Cluster) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private int bitField1_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of this cluster. The name must be unique within this project
+     * and zone, and can be up to 40 characters with the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of this cluster. The name must be unique within this project
+     * and zone, and can be up to 40 characters with the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of this cluster. The name must be unique within this project
+     * and zone, and can be up to 40 characters with the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of this cluster. The name must be unique within this project
+     * and zone, and can be up to 40 characters with the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of this cluster. The name must be unique within this project
+     * and zone, and can be up to 40 characters with the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int initialNodeCount_ ; + /** + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public int getInitialNodeCount() { + return initialNodeCount_; + } + /** + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public Builder clearInitialNodeCount() { + + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeConfig nodeConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder> nodeConfigBuilder_; + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public boolean hasNodeConfig() { + return nodeConfigBuilder_ != null || nodeConfig_ != null; + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public com.google.container.v1beta1.NodeConfig getNodeConfig() { + if (nodeConfigBuilder_ == null) { + return nodeConfig_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : nodeConfig_; + } else { + return nodeConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public Builder setNodeConfig(com.google.container.v1beta1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeConfig_ = value; + onChanged(); + } else { + nodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public Builder setNodeConfig( + com.google.container.v1beta1.NodeConfig.Builder builderForValue) { + if (nodeConfigBuilder_ == null) { + nodeConfig_ = builderForValue.build(); + onChanged(); + } else { + nodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public Builder mergeNodeConfig(com.google.container.v1beta1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (nodeConfig_ != null) { + nodeConfig_ = + com.google.container.v1beta1.NodeConfig.newBuilder(nodeConfig_).mergeFrom(value).buildPartial(); + } else { + nodeConfig_ = value; + } + onChanged(); + } else { + nodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public Builder clearNodeConfig() { + if (nodeConfigBuilder_ == null) { + nodeConfig_ = null; + onChanged(); + } else { + nodeConfig_ = null; + nodeConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public com.google.container.v1beta1.NodeConfig.Builder getNodeConfigBuilder() { + + onChanged(); + return getNodeConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + public com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder() { + if (nodeConfigBuilder_ != null) { + return nodeConfigBuilder_.getMessageOrBuilder(); + } else { + return nodeConfig_ == null ? + com.google.container.v1beta1.NodeConfig.getDefaultInstance() : nodeConfig_; + } + } + /** + *
+     * Parameters used in creating the cluster's nodes.
+     * See `nodeConfig` for the description of its properties.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool.
+     * If unspecified, the defaults are used.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder> + getNodeConfigFieldBuilder() { + if (nodeConfigBuilder_ == null) { + nodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder>( + getNodeConfig(), + getParentForChildren(), + isClean()); + nodeConfig_ = null; + } + return nodeConfigBuilder_; + } + + private com.google.container.v1beta1.MasterAuth masterAuth_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder> masterAuthBuilder_; + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public boolean hasMasterAuth() { + return masterAuthBuilder_ != null || masterAuth_ != null; + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public com.google.container.v1beta1.MasterAuth getMasterAuth() { + if (masterAuthBuilder_ == null) { + return masterAuth_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : masterAuth_; + } else { + return masterAuthBuilder_.getMessage(); + } + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth(com.google.container.v1beta1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuth_ = value; + onChanged(); + } else { + masterAuthBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth( + com.google.container.v1beta1.MasterAuth.Builder builderForValue) { + if (masterAuthBuilder_ == null) { + masterAuth_ = builderForValue.build(); + onChanged(); + } else { + masterAuthBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder mergeMasterAuth(com.google.container.v1beta1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (masterAuth_ != null) { + masterAuth_ = + com.google.container.v1beta1.MasterAuth.newBuilder(masterAuth_).mergeFrom(value).buildPartial(); + } else { + masterAuth_ = value; + } + onChanged(); + } else { + masterAuthBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder clearMasterAuth() { + if (masterAuthBuilder_ == null) { + masterAuth_ = null; + onChanged(); + } else { + masterAuth_ = null; + masterAuthBuilder_ = null; + } + + return this; + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public com.google.container.v1beta1.MasterAuth.Builder getMasterAuthBuilder() { + + onChanged(); + return getMasterAuthFieldBuilder().getBuilder(); + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder() { + if (masterAuthBuilder_ != null) { + return masterAuthBuilder_.getMessageOrBuilder(); + } else { + return masterAuth_ == null ? + com.google.container.v1beta1.MasterAuth.getDefaultInstance() : masterAuth_; + } + } + /** + *
+     * The authentication information for accessing the master endpoint.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder> + getMasterAuthFieldBuilder() { + if (masterAuthBuilder_ == null) { + masterAuthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder>( + getMasterAuth(), + getParentForChildren(), + isClean()); + masterAuth_ = null; + } + return masterAuthBuilder_; + } + + private java.lang.Object loggingService_ = ""; + /** + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `none` - no logs will be exported from the cluster.
+     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * 
+ * + * string logging_service = 6; + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `none` - no logs will be exported from the cluster.
+     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * 
+ * + * string logging_service = 6; + */ + public com.google.protobuf.ByteString + getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `none` - no logs will be exported from the cluster.
+     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * 
+ * + * string logging_service = 6; + */ + public Builder setLoggingService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + loggingService_ = value; + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `none` - no logs will be exported from the cluster.
+     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * 
+ * + * string logging_service = 6; + */ + public Builder clearLoggingService() { + + loggingService_ = getDefaultInstance().getLoggingService(); + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `none` - no logs will be exported from the cluster.
+     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * 
+ * + * string logging_service = 6; + */ + public Builder setLoggingServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + loggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object monitoringService_ = ""; + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+     * * `none` - no metrics will be exported from the cluster.
+     * * if left as an empty string, `monitoring.googleapis.com` will be used.
+     * 
+ * + * string monitoring_service = 7; + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+     * * `none` - no metrics will be exported from the cluster.
+     * * if left as an empty string, `monitoring.googleapis.com` will be used.
+     * 
+ * + * string monitoring_service = 7; + */ + public com.google.protobuf.ByteString + getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+     * * `none` - no metrics will be exported from the cluster.
+     * * if left as an empty string, `monitoring.googleapis.com` will be used.
+     * 
+ * + * string monitoring_service = 7; + */ + public Builder setMonitoringService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + monitoringService_ = value; + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+     * * `none` - no metrics will be exported from the cluster.
+     * * if left as an empty string, `monitoring.googleapis.com` will be used.
+     * 
+ * + * string monitoring_service = 7; + */ + public Builder clearMonitoringService() { + + monitoringService_ = getDefaultInstance().getMonitoringService(); + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+     * * `none` - no metrics will be exported from the cluster.
+     * * if left as an empty string, `monitoring.googleapis.com` will be used.
+     * 
+ * + * string monitoring_service = 7; + */ + public Builder setMonitoringServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + monitoringService_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+     * The name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * cluster is connected. If left unspecified, the `default` network
+     * will be used. On output this shows the network ID instead of
+     * the name.
+     * 
+ * + * string network = 8; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * cluster is connected. If left unspecified, the `default` network
+     * will be used. On output this shows the network ID instead of
+     * the name.
+     * 
+ * + * string network = 8; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * cluster is connected. If left unspecified, the `default` network
+     * will be used. On output this shows the network ID instead of
+     * the name.
+     * 
+ * + * string network = 8; + */ + public Builder setNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * cluster is connected. If left unspecified, the `default` network
+     * will be used. On output this shows the network ID instead of
+     * the name.
+     * 
+ * + * string network = 8; + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * cluster is connected. If left unspecified, the `default` network
+     * will be used. On output this shows the network ID instead of
+     * the name.
+     * 
+ * + * string network = 8; + */ + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public com.google.protobuf.ByteString + getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public Builder setClusterIpv4Cidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public Builder clearClusterIpv4Cidr() { + + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + onChanged(); + return this; + } + /** + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + */ + public Builder setClusterIpv4CidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AddonsConfig addonsConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> addonsConfigBuilder_; + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public boolean hasAddonsConfig() { + return addonsConfigBuilder_ != null || addonsConfig_ != null; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + if (addonsConfigBuilder_ == null) { + return addonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } else { + return addonsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder setAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addonsConfig_ = value; + onChanged(); + } else { + addonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder setAddonsConfig( + com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = builderForValue.build(); + onChanged(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder mergeAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (addonsConfig_ != null) { + addonsConfig_ = + com.google.container.v1beta1.AddonsConfig.newBuilder(addonsConfig_).mergeFrom(value).buildPartial(); + } else { + addonsConfig_ = value; + } + onChanged(); + } else { + addonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder clearAddonsConfig() { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + onChanged(); + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1beta1.AddonsConfig.Builder getAddonsConfigBuilder() { + + onChanged(); + return getAddonsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + if (addonsConfigBuilder_ != null) { + return addonsConfigBuilder_.getMessageOrBuilder(); + } else { + return addonsConfig_ == null ? + com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> + getAddonsConfigFieldBuilder() { + if (addonsConfigBuilder_ == null) { + addonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder>( + getAddonsConfig(), + getParentForChildren(), + isClean()); + addonsConfig_ = null; + } + return addonsConfigBuilder_; + } + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](/compute/docs/subnetworks) to which the
+     * cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](/compute/docs/subnetworks) to which the
+     * cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](/compute/docs/subnetworks) to which the
+     * cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + */ + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](/compute/docs/subnetworks) to which the
+     * cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](/compute/docs/subnetworks) to which the
+     * cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + */ + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private java.util.List nodePools_ = + java.util.Collections.emptyList(); + private void ensureNodePoolsIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + nodePools_ = new java.util.ArrayList(nodePools_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> nodePoolsBuilder_; + + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List getNodePoolsList() { + if (nodePoolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodePools_); + } else { + return nodePoolsBuilder_.getMessageList(); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public int getNodePoolsCount() { + if (nodePoolsBuilder_ == null) { + return nodePools_.size(); + } else { + return nodePoolsBuilder_.getCount(); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool getNodePools(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessage(index); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder setNodePools( + int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.set(index, value); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder setNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.set(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools(com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools( + int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(index, value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools( + com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addAllNodePools( + java.lang.Iterable values) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodePools_); + onChanged(); + } else { + nodePoolsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder clearNodePools() { + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder removeNodePools(int index) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.remove(index); + onChanged(); + } else { + nodePoolsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder getNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().getBuilder(index); + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); } else { + return nodePoolsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsOrBuilderList() { + if (nodePoolsBuilder_ != null) { + return nodePoolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodePools_); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder() { + return getNodePoolsFieldBuilder().addBuilder( + com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsBuilderList() { + return getNodePoolsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> + getNodePoolsFieldBuilder() { + if (nodePoolsBuilder_ == null) { + nodePoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder>( + nodePools_, + ((bitField0_ & 0x00000800) == 0x00000800), + getParentForChildren(), + isClean()); + nodePools_ = null; + } + return nodePoolsBuilder_; + } + + private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00001000; + } + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public com.google.protobuf.ProtocolStringList + getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public com.google.protobuf.ByteString + getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public Builder setLocations( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public Builder addLocations( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public Builder addAllLocations( + java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, locations_); + onChanged(); + return this; + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + *
+     * The list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located.
+     * 
+ * + * repeated string locations = 13; + */ + public Builder addLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private boolean enableKubernetesAlpha_ ; + /** + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1beta1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + */ + public boolean getEnableKubernetesAlpha() { + return enableKubernetesAlpha_; + } + /** + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1beta1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + */ + public Builder setEnableKubernetesAlpha(boolean value) { + + enableKubernetesAlpha_ = value; + onChanged(); + return this; + } + /** + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1beta1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + */ + public Builder clearEnableKubernetesAlpha() { + + enableKubernetesAlpha_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged();; + if (resourceLabels_ == null) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + + public java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + + public java.lang.String getResourceLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceLabels() { + internalGetMutableResourceLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + + public Builder removeResourceLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableResourceLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceLabels() { + return internalGetMutableResourceLabels().getMutableMap(); + } + /** + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + public Builder putResourceLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableResourceLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + + public Builder putAllResourceLabels( + java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object labelFingerprint_ = ""; + /** + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + */ + public com.google.protobuf.ByteString + getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + */ + public Builder setLabelFingerprint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + labelFingerprint_ = value; + onChanged(); + return this; + } + /** + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + */ + public Builder clearLabelFingerprint() { + + labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); + onChanged(); + return this; + } + /** + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + */ + public Builder setLabelFingerprintBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + labelFingerprint_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.LegacyAbac legacyAbac_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LegacyAbac, com.google.container.v1beta1.LegacyAbac.Builder, com.google.container.v1beta1.LegacyAbacOrBuilder> legacyAbacBuilder_; + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public boolean hasLegacyAbac() { + return legacyAbacBuilder_ != null || legacyAbac_ != null; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1beta1.LegacyAbac getLegacyAbac() { + if (legacyAbacBuilder_ == null) { + return legacyAbac_ == null ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() : legacyAbac_; + } else { + return legacyAbacBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder setLegacyAbac(com.google.container.v1beta1.LegacyAbac value) { + if (legacyAbacBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + legacyAbac_ = value; + onChanged(); + } else { + legacyAbacBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder setLegacyAbac( + com.google.container.v1beta1.LegacyAbac.Builder builderForValue) { + if (legacyAbacBuilder_ == null) { + legacyAbac_ = builderForValue.build(); + onChanged(); + } else { + legacyAbacBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder mergeLegacyAbac(com.google.container.v1beta1.LegacyAbac value) { + if (legacyAbacBuilder_ == null) { + if (legacyAbac_ != null) { + legacyAbac_ = + com.google.container.v1beta1.LegacyAbac.newBuilder(legacyAbac_).mergeFrom(value).buildPartial(); + } else { + legacyAbac_ = value; + } + onChanged(); + } else { + legacyAbacBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder clearLegacyAbac() { + if (legacyAbacBuilder_ == null) { + legacyAbac_ = null; + onChanged(); + } else { + legacyAbac_ = null; + legacyAbacBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1beta1.LegacyAbac.Builder getLegacyAbacBuilder() { + + onChanged(); + return getLegacyAbacFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1beta1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { + if (legacyAbacBuilder_ != null) { + return legacyAbacBuilder_.getMessageOrBuilder(); + } else { + return legacyAbac_ == null ? + com.google.container.v1beta1.LegacyAbac.getDefaultInstance() : legacyAbac_; + } + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LegacyAbac, com.google.container.v1beta1.LegacyAbac.Builder, com.google.container.v1beta1.LegacyAbacOrBuilder> + getLegacyAbacFieldBuilder() { + if (legacyAbacBuilder_ == null) { + legacyAbacBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LegacyAbac, com.google.container.v1beta1.LegacyAbac.Builder, com.google.container.v1beta1.LegacyAbacOrBuilder>( + getLegacyAbac(), + getParentForChildren(), + isClean()); + legacyAbac_ = null; + } + return legacyAbacBuilder_; + } + + private com.google.container.v1beta1.NetworkPolicy networkPolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder> networkPolicyBuilder_; + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public boolean hasNetworkPolicy() { + return networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder setNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder setNetworkPolicy( + com.google.container.v1beta1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder mergeNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (networkPolicy_ != null) { + networkPolicy_ = + com.google.container.v1beta1.NetworkPolicy.newBuilder(networkPolicy_).mergeFrom(value).buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1beta1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null ? + com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), + getParentForChildren(), + isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private com.google.container.v1beta1.IPAllocationPolicy ipAllocationPolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IPAllocationPolicy, com.google.container.v1beta1.IPAllocationPolicy.Builder, com.google.container.v1beta1.IPAllocationPolicyOrBuilder> ipAllocationPolicyBuilder_; + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public boolean hasIpAllocationPolicy() { + return ipAllocationPolicyBuilder_ != null || ipAllocationPolicy_ != null; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1beta1.IPAllocationPolicy getIpAllocationPolicy() { + if (ipAllocationPolicyBuilder_ == null) { + return ipAllocationPolicy_ == null ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } else { + return ipAllocationPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder setIpAllocationPolicy(com.google.container.v1beta1.IPAllocationPolicy value) { + if (ipAllocationPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ipAllocationPolicy_ = value; + onChanged(); + } else { + ipAllocationPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder setIpAllocationPolicy( + com.google.container.v1beta1.IPAllocationPolicy.Builder builderForValue) { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = builderForValue.build(); + onChanged(); + } else { + ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder mergeIpAllocationPolicy(com.google.container.v1beta1.IPAllocationPolicy value) { + if (ipAllocationPolicyBuilder_ == null) { + if (ipAllocationPolicy_ != null) { + ipAllocationPolicy_ = + com.google.container.v1beta1.IPAllocationPolicy.newBuilder(ipAllocationPolicy_).mergeFrom(value).buildPartial(); + } else { + ipAllocationPolicy_ = value; + } + onChanged(); + } else { + ipAllocationPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder clearIpAllocationPolicy() { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = null; + onChanged(); + } else { + ipAllocationPolicy_ = null; + ipAllocationPolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1beta1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { + + onChanged(); + return getIpAllocationPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1beta1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { + if (ipAllocationPolicyBuilder_ != null) { + return ipAllocationPolicyBuilder_.getMessageOrBuilder(); + } else { + return ipAllocationPolicy_ == null ? + com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IPAllocationPolicy, com.google.container.v1beta1.IPAllocationPolicy.Builder, com.google.container.v1beta1.IPAllocationPolicyOrBuilder> + getIpAllocationPolicyFieldBuilder() { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IPAllocationPolicy, com.google.container.v1beta1.IPAllocationPolicy.Builder, com.google.container.v1beta1.IPAllocationPolicyOrBuilder>( + getIpAllocationPolicy(), + getParentForChildren(), + isClean()); + ipAllocationPolicy_ = null; + } + return ipAllocationPolicyBuilder_; + } + + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> masterAuthorizedNetworksConfigBuilder_; + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfigBuilder_ != null || masterAuthorizedNetworksConfig_ != null; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + return masterAuthorizedNetworksConfig_ == null ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } else { + return masterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder setMasterAuthorizedNetworksConfig(com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuthorizedNetworksConfig_ = value; + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = builderForValue.build(); + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder mergeMasterAuthorizedNetworksConfig(com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (masterAuthorizedNetworksConfig_ != null) { + masterAuthorizedNetworksConfig_ = + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.newBuilder(masterAuthorizedNetworksConfig_).mergeFrom(value).buildPartial(); + } else { + masterAuthorizedNetworksConfig_ = value; + } + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder clearMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = null; + onChanged(); + } else { + masterAuthorizedNetworksConfig_ = null; + masterAuthorizedNetworksConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder getMasterAuthorizedNetworksConfigBuilder() { + + onChanged(); + return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ != null) { + return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return masterAuthorizedNetworksConfig_ == null ? + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> + getMasterAuthorizedNetworksConfigFieldBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder>( + getMasterAuthorizedNetworksConfig(), + getParentForChildren(), + isClean()); + masterAuthorizedNetworksConfig_ = null; + } + return masterAuthorizedNetworksConfigBuilder_; + } + + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } else { + return maintenancePolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder setMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder setMaintenancePolicy( + com.google.container.v1beta1.MaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder mergeMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (maintenancePolicy_ != null) { + maintenancePolicy_ = + com.google.container.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); + } else { + maintenancePolicy_ = value; + } + onChanged(); + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder clearMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + onChanged(); + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null ? + com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), + getParentForChildren(), + isClean()); + maintenancePolicy_ = null; + } + return maintenancePolicyBuilder_; + } + + private com.google.container.v1beta1.BinaryAuthorization binaryAuthorization_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder> binaryAuthorizationBuilder_; + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public boolean hasBinaryAuthorization() { + return binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1beta1.BinaryAuthorization getBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + return binaryAuthorization_ == null ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } else { + return binaryAuthorizationBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder setBinaryAuthorization(com.google.container.v1beta1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binaryAuthorization_ = value; + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder setBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization.Builder builderForValue) { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = builderForValue.build(); + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder mergeBinaryAuthorization(com.google.container.v1beta1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (binaryAuthorization_ != null) { + binaryAuthorization_ = + com.google.container.v1beta1.BinaryAuthorization.newBuilder(binaryAuthorization_).mergeFrom(value).buildPartial(); + } else { + binaryAuthorization_ = value; + } + onChanged(); + } else { + binaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder clearBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + onChanged(); + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1beta1.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { + + onChanged(); + return getBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { + if (binaryAuthorizationBuilder_ != null) { + return binaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return binaryAuthorization_ == null ? + com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder> + getBinaryAuthorizationFieldBuilder() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder>( + getBinaryAuthorization(), + getParentForChildren(), + isClean()); + binaryAuthorization_ = null; + } + return binaryAuthorizationBuilder_; + } + + private com.google.container.v1beta1.PodSecurityPolicyConfig podSecurityPolicyConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> podSecurityPolicyConfigBuilder_; + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public boolean hasPodSecurityPolicyConfig() { + return podSecurityPolicyConfigBuilder_ != null || podSecurityPolicyConfig_ != null; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig getPodSecurityPolicyConfig() { + if (podSecurityPolicyConfigBuilder_ == null) { + return podSecurityPolicyConfig_ == null ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : podSecurityPolicyConfig_; + } else { + return podSecurityPolicyConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public Builder setPodSecurityPolicyConfig(com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (podSecurityPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podSecurityPolicyConfig_ = value; + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public Builder setPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder builderForValue) { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public Builder mergePodSecurityPolicyConfig(com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (podSecurityPolicyConfigBuilder_ == null) { + if (podSecurityPolicyConfig_ != null) { + podSecurityPolicyConfig_ = + com.google.container.v1beta1.PodSecurityPolicyConfig.newBuilder(podSecurityPolicyConfig_).mergeFrom(value).buildPartial(); + } else { + podSecurityPolicyConfig_ = value; + } + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public Builder clearPodSecurityPolicyConfig() { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = null; + onChanged(); + } else { + podSecurityPolicyConfig_ = null; + podSecurityPolicyConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig.Builder getPodSecurityPolicyConfigBuilder() { + + onChanged(); + return getPodSecurityPolicyConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getPodSecurityPolicyConfigOrBuilder() { + if (podSecurityPolicyConfigBuilder_ != null) { + return podSecurityPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return podSecurityPolicyConfig_ == null ? + com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : podSecurityPolicyConfig_; + } + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> + getPodSecurityPolicyConfigFieldBuilder() { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder>( + getPodSecurityPolicyConfig(), + getParentForChildren(), + isClean()); + podSecurityPolicyConfig_ = null; + } + return podSecurityPolicyConfigBuilder_; + } + + private com.google.container.v1beta1.ClusterAutoscaling autoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder> autoscalingBuilder_; + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1beta1.ClusterAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder setAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder setAutoscaling( + com.google.container.v1beta1.ClusterAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder mergeAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1beta1.ClusterAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1beta1.ClusterAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null ? + com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder>( + getAutoscaling(), + getParentForChildren(), + isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private com.google.container.v1beta1.NetworkConfig networkConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig, com.google.container.v1beta1.NetworkConfig.Builder, com.google.container.v1beta1.NetworkConfigOrBuilder> networkConfigBuilder_; + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public boolean hasNetworkConfig() { + return networkConfigBuilder_ != null || networkConfig_ != null; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public com.google.container.v1beta1.NetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig(com.google.container.v1beta1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + onChanged(); + } else { + networkConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig( + com.google.container.v1beta1.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + onChanged(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder mergeNetworkConfig(com.google.container.v1beta1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (networkConfig_ != null) { + networkConfig_ = + com.google.container.v1beta1.NetworkConfig.newBuilder(networkConfig_).mergeFrom(value).buildPartial(); + } else { + networkConfig_ = value; + } + onChanged(); + } else { + networkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder clearNetworkConfig() { + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + onChanged(); + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public com.google.container.v1beta1.NetworkConfig.Builder getNetworkConfigBuilder() { + + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null ? + com.google.container.v1beta1.NetworkConfig.getDefaultInstance() : networkConfig_; + } + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig, com.google.container.v1beta1.NetworkConfig.Builder, com.google.container.v1beta1.NetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig, com.google.container.v1beta1.NetworkConfig.Builder, com.google.container.v1beta1.NetworkConfigOrBuilder>( + getNetworkConfig(), + getParentForChildren(), + isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private boolean privateCluster_ ; + /** + *
+     * If this is a private cluster setup. Private clusters are clusters that, by
+     * default have no external IP addresses on the nodes and where nodes and the
+     * master communicate over private IP addresses.
+     * This field is deprecated, use private_cluster_config.enabled instead.
+     * 
+ * + * bool private_cluster = 28 [deprecated = true]; + */ + @java.lang.Deprecated public boolean getPrivateCluster() { + return privateCluster_; + } + /** + *
+     * If this is a private cluster setup. Private clusters are clusters that, by
+     * default have no external IP addresses on the nodes and where nodes and the
+     * master communicate over private IP addresses.
+     * This field is deprecated, use private_cluster_config.enabled instead.
+     * 
+ * + * bool private_cluster = 28 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setPrivateCluster(boolean value) { + + privateCluster_ = value; + onChanged(); + return this; + } + /** + *
+     * If this is a private cluster setup. Private clusters are clusters that, by
+     * default have no external IP addresses on the nodes and where nodes and the
+     * master communicate over private IP addresses.
+     * This field is deprecated, use private_cluster_config.enabled instead.
+     * 
+ * + * bool private_cluster = 28 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearPrivateCluster() { + + privateCluster_ = false; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setMasterIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearMasterIpv4CidrBlock() { + + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setMasterIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.MaxPodsConstraint defaultMaxPodsConstraint_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder> defaultMaxPodsConstraintBuilder_; + /** + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public boolean hasDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraintBuilder_ != null || defaultMaxPodsConstraint_ != null; + } + /** + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint() { + if (defaultMaxPodsConstraintBuilder_ == null) { + return defaultMaxPodsConstraint_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : defaultMaxPodsConstraint_; + } else { + return defaultMaxPodsConstraintBuilder_.getMessage(); + } + } + /** + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder setDefaultMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { + if (defaultMaxPodsConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultMaxPodsConstraint_ = value; + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder setDefaultMaxPodsConstraint( + com.google.container.v1beta1.MaxPodsConstraint.Builder builderForValue) { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = builderForValue.build(); + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder mergeDefaultMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { + if (defaultMaxPodsConstraintBuilder_ == null) { + if (defaultMaxPodsConstraint_ != null) { + defaultMaxPodsConstraint_ = + com.google.container.v1beta1.MaxPodsConstraint.newBuilder(defaultMaxPodsConstraint_).mergeFrom(value).buildPartial(); + } else { + defaultMaxPodsConstraint_ = value; + } + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder clearDefaultMaxPodsConstraint() { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = null; + onChanged(); + } else { + defaultMaxPodsConstraint_ = null; + defaultMaxPodsConstraintBuilder_ = null; + } + + return this; + } + /** + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1beta1.MaxPodsConstraint.Builder getDefaultMaxPodsConstraintBuilder() { + + onChanged(); + return getDefaultMaxPodsConstraintFieldBuilder().getBuilder(); + } + /** + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder() { + if (defaultMaxPodsConstraintBuilder_ != null) { + return defaultMaxPodsConstraintBuilder_.getMessageOrBuilder(); + } else { + return defaultMaxPodsConstraint_ == null ? + com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : defaultMaxPodsConstraint_; + } + } + /** + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + getDefaultMaxPodsConstraintFieldBuilder() { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder>( + getDefaultMaxPodsConstraint(), + getParentForChildren(), + isClean()); + defaultMaxPodsConstraint_ = null; + } + return defaultMaxPodsConstraintBuilder_; + } + + private com.google.container.v1beta1.PrivateClusterConfig privateClusterConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, com.google.container.v1beta1.PrivateClusterConfig.Builder, com.google.container.v1beta1.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public boolean hasPrivateClusterConfig() { + return privateClusterConfigBuilder_ != null || privateClusterConfig_ != null; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + return privateClusterConfig_ == null ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } else { + return privateClusterConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder setPrivateClusterConfig(com.google.container.v1beta1.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateClusterConfig_ = value; + onChanged(); + } else { + privateClusterConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder setPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig.Builder builderForValue) { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = builderForValue.build(); + onChanged(); + } else { + privateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder mergePrivateClusterConfig(com.google.container.v1beta1.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (privateClusterConfig_ != null) { + privateClusterConfig_ = + com.google.container.v1beta1.PrivateClusterConfig.newBuilder(privateClusterConfig_).mergeFrom(value).buildPartial(); + } else { + privateClusterConfig_ = value; + } + onChanged(); + } else { + privateClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder clearPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = null; + onChanged(); + } else { + privateClusterConfig_ = null; + privateClusterConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1beta1.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + + onChanged(); + return getPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1beta1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + if (privateClusterConfigBuilder_ != null) { + return privateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return privateClusterConfig_ == null ? + com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, com.google.container.v1beta1.PrivateClusterConfig.Builder, com.google.container.v1beta1.PrivateClusterConfigOrBuilder> + getPrivateClusterConfigFieldBuilder() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, com.google.container.v1beta1.PrivateClusterConfig.Builder, com.google.container.v1beta1.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), + getParentForChildren(), + isClean()); + privateClusterConfig_ = null; + } + return privateClusterConfigBuilder_; + } + + private java.lang.Object selfLink_ = ""; + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder setSelfLink( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder setSelfLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object endpoint_ = ""; + /** + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + */ + public com.google.protobuf.ByteString + getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + */ + public Builder setEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endpoint_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + */ + public Builder clearEndpoint() { + + endpoint_ = getDefaultInstance().getEndpoint(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + */ + public Builder setEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object initialClusterVersion_ = ""; + /** + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + */ + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + */ + public com.google.protobuf.ByteString + getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + */ + public Builder setInitialClusterVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + initialClusterVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + */ + public Builder clearInitialClusterVersion() { + + initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); + onChanged(); + return this; + } + /** + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + */ + public Builder setInitialClusterVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initialClusterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentMasterVersion_ = ""; + /** + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + */ + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + */ + public com.google.protobuf.ByteString + getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + */ + public Builder setCurrentMasterVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentMasterVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + */ + public Builder clearCurrentMasterVersion() { + + currentMasterVersion_ = getDefaultInstance().getCurrentMasterVersion(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + */ + public Builder setCurrentMasterVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentMasterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentNodeVersion_ = ""; + /** + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getCurrentNodeVersion() { + java.lang.Object ref = currentNodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentNodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getCurrentNodeVersionBytes() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setCurrentNodeVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentNodeVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearCurrentNodeVersion() { + + currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setCurrentNodeVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentNodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object createTime_ = ""; + /** + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + */ + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + */ + public com.google.protobuf.ByteString + getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + */ + public Builder setCreateTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + createTime_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + */ + public Builder clearCreateTime() { + + createTime_ = getDefaultInstance().getCreateTime(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + */ + public Builder setCreateTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + createTime_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + */ + public com.google.container.v1beta1.Cluster.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Cluster.Status result = com.google.container.v1beta1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Cluster.Status.UNRECOGNIZED : result; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + */ + public Builder setStatus(com.google.container.v1beta1.Cluster.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108; + */ + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108; + */ + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108; + */ + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private int nodeIpv4CidrSize_ ; + /** + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + */ + public int getNodeIpv4CidrSize() { + return nodeIpv4CidrSize_; + } + /** + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + */ + public Builder setNodeIpv4CidrSize(int value) { + + nodeIpv4CidrSize_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + */ + public Builder clearNodeIpv4CidrSize() { + + nodeIpv4CidrSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + */ + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + */ + public com.google.protobuf.ByteString + getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + */ + public Builder setServicesIpv4Cidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + */ + public Builder clearServicesIpv4Cidr() { + + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + */ + public Builder setServicesIpv4CidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInstanceGroupUrlsIsMutable() { + if (!((bitField1_ & 0x00000100) == 0x00000100)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + bitField1_ |= 0x00000100; + } + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + return instanceGroupUrls_.getUnmodifiableView(); + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInstanceGroupUrls( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addInstanceGroupUrls( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addAllInstanceGroupUrls( + java.lang.Iterable values) { + ensureInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instanceGroupUrls_); + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField1_ = (bitField1_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addInstanceGroupUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + + private int currentNodeCount_ ; + /** + *
+     * [Output only] The number of nodes currently in the cluster.
+     * 
+ * + * int32 current_node_count = 112; + */ + public int getCurrentNodeCount() { + return currentNodeCount_; + } + /** + *
+     * [Output only] The number of nodes currently in the cluster.
+     * 
+ * + * int32 current_node_count = 112; + */ + public Builder setCurrentNodeCount(int value) { + + currentNodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The number of nodes currently in the cluster.
+     * 
+ * + * int32 current_node_count = 112; + */ + public Builder clearCurrentNodeCount() { + + currentNodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object expireTime_ = ""; + /** + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + */ + public java.lang.String getExpireTime() { + java.lang.Object ref = expireTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + */ + public com.google.protobuf.ByteString + getExpireTimeBytes() { + java.lang.Object ref = expireTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expireTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + */ + public Builder setExpireTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expireTime_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + */ + public Builder clearExpireTime() { + + expireTime_ = getDefaultInstance().getExpireTime(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + */ + public Builder setExpireTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expireTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public Builder setLocation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 114; + */ + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private boolean enableTpu_ ; + /** + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + */ + public boolean getEnableTpu() { + return enableTpu_; + } + /** + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + */ + public Builder setEnableTpu(boolean value) { + + enableTpu_ = value; + onChanged(); + return this; + } + /** + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + */ + public Builder clearEnableTpu() { + + enableTpu_ = false; + onChanged(); + return this; + } + + private java.lang.Object tpuIpv4CidrBlock_ = ""; + /** + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + */ + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + */ + public com.google.protobuf.ByteString + getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + */ + public Builder setTpuIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + */ + public Builder clearTpuIpv4CidrBlock() { + + tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + */ + public Builder setTpuIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField1_ & 0x00004000) == 0x00004000)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField1_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> conditionsBuilder_; + + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions(com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00004000); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder>( + conditions_, + ((bitField1_ & 0x00004000) == 0x00004000), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Cluster) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Cluster) + private static final com.google.container.v1beta1.Cluster DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Cluster(); + } + + public static com.google.container.v1beta1.Cluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Cluster(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java new file mode 100644 index 000000000000..091e0f5486e0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java @@ -0,0 +1,966 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ClusterAutoscaling contains global, per-cluster information
+ * required by Cluster Autoscaler to automatically adjust
+ * the size of the cluster and create/delete
+ * node pools based on the current needs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterAutoscaling} + */ +public final class ClusterAutoscaling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterAutoscaling) + ClusterAutoscalingOrBuilder { +private static final long serialVersionUID = 0L; + // Use ClusterAutoscaling.newBuilder() to construct. + private ClusterAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterAutoscaling() { + enableNodeAutoprovisioning_ = false; + resourceLimits_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClusterAutoscaling( + 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 8: { + + enableNodeAutoprovisioning_ = input.readBool(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resourceLimits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + resourceLimits_.add( + input.readMessage(com.google.container.v1beta1.ResourceLimit.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterAutoscaling.class, com.google.container.v1beta1.ClusterAutoscaling.Builder.class); + } + + private int bitField0_; + public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; + private boolean enableNodeAutoprovisioning_; + /** + *
+   * Enables automatic node pool creation and deletion.
+   * 
+ * + * bool enable_node_autoprovisioning = 1; + */ + public boolean getEnableNodeAutoprovisioning() { + return enableNodeAutoprovisioning_; + } + + public static final int RESOURCE_LIMITS_FIELD_NUMBER = 2; + private java.util.List resourceLimits_; + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List getResourceLimitsList() { + return resourceLimits_; + } + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsOrBuilderList() { + return resourceLimits_; + } + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public int getResourceLimitsCount() { + return resourceLimits_.size(); + } + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit getResourceLimits(int index) { + return resourceLimits_.get(index); + } + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index) { + return resourceLimits_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enableNodeAutoprovisioning_ != false) { + output.writeBool(1, enableNodeAutoprovisioning_); + } + for (int i = 0; i < resourceLimits_.size(); i++) { + output.writeMessage(2, resourceLimits_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableNodeAutoprovisioning_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableNodeAutoprovisioning_); + } + for (int i = 0; i < resourceLimits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, resourceLimits_.get(i)); + } + 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.container.v1beta1.ClusterAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1beta1.ClusterAutoscaling other = (com.google.container.v1beta1.ClusterAutoscaling) obj; + + boolean result = true; + result = result && (getEnableNodeAutoprovisioning() + == other.getEnableNodeAutoprovisioning()); + result = result && getResourceLimitsList() + .equals(other.getResourceLimitsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableNodeAutoprovisioning()); + if (getResourceLimitsCount() > 0) { + hash = (37 * hash) + RESOURCE_LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getResourceLimitsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ClusterAutoscaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ClusterAutoscaling contains global, per-cluster information
+   * required by Cluster Autoscaler to automatically adjust
+   * the size of the cluster and create/delete
+   * node pools based on the current needs.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterAutoscaling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ClusterAutoscaling) + com.google.container.v1beta1.ClusterAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterAutoscaling.class, com.google.container.v1beta1.ClusterAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1beta1.ClusterAutoscaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResourceLimitsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enableNodeAutoprovisioning_ = false; + + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + resourceLimitsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling getDefaultInstanceForType() { + return com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling build() { + com.google.container.v1beta1.ClusterAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling buildPartial() { + com.google.container.v1beta1.ClusterAutoscaling result = new com.google.container.v1beta1.ClusterAutoscaling(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; + if (resourceLimitsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.resourceLimits_ = resourceLimits_; + } else { + result.resourceLimits_ = resourceLimitsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ClusterAutoscaling) { + return mergeFrom((com.google.container.v1beta1.ClusterAutoscaling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClusterAutoscaling other) { + if (other == com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance()) return this; + if (other.getEnableNodeAutoprovisioning() != false) { + setEnableNodeAutoprovisioning(other.getEnableNodeAutoprovisioning()); + } + if (resourceLimitsBuilder_ == null) { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimits_.isEmpty()) { + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResourceLimitsIsMutable(); + resourceLimits_.addAll(other.resourceLimits_); + } + onChanged(); + } + } else { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimitsBuilder_.isEmpty()) { + resourceLimitsBuilder_.dispose(); + resourceLimitsBuilder_ = null; + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000002); + resourceLimitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourceLimitsFieldBuilder() : null; + } else { + resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ClusterAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ClusterAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private boolean enableNodeAutoprovisioning_ ; + /** + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + */ + public boolean getEnableNodeAutoprovisioning() { + return enableNodeAutoprovisioning_; + } + /** + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + */ + public Builder setEnableNodeAutoprovisioning(boolean value) { + + enableNodeAutoprovisioning_ = value; + onChanged(); + return this; + } + /** + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + */ + public Builder clearEnableNodeAutoprovisioning() { + + enableNodeAutoprovisioning_ = false; + onChanged(); + return this; + } + + private java.util.List resourceLimits_ = + java.util.Collections.emptyList(); + private void ensureResourceLimitsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + resourceLimits_ = new java.util.ArrayList(resourceLimits_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, com.google.container.v1beta1.ResourceLimit.Builder, com.google.container.v1beta1.ResourceLimitOrBuilder> resourceLimitsBuilder_; + + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List getResourceLimitsList() { + if (resourceLimitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceLimits_); + } else { + return resourceLimitsBuilder_.getMessageList(); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public int getResourceLimitsCount() { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.size(); + } else { + return resourceLimitsBuilder_.getCount(); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit getResourceLimits(int index) { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.get(index); + } else { + return resourceLimitsBuilder_.getMessage(index); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.set(index, value); + onChanged(); + } else { + resourceLimitsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits(com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.add(value); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.add(index, value); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addAllResourceLimits( + java.lang.Iterable values) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceLimits_); + onChanged(); + } else { + resourceLimitsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder clearResourceLimits() { + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resourceLimitsBuilder_.clear(); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder removeResourceLimits(int index) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.remove(index); + onChanged(); + } else { + resourceLimitsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder getResourceLimitsBuilder( + int index) { + return getResourceLimitsFieldBuilder().getBuilder(index); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index) { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.get(index); } else { + return resourceLimitsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsOrBuilderList() { + if (resourceLimitsBuilder_ != null) { + return resourceLimitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceLimits_); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder() { + return getResourceLimitsFieldBuilder().addBuilder( + com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder( + int index) { + return getResourceLimitsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsBuilderList() { + return getResourceLimitsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, com.google.container.v1beta1.ResourceLimit.Builder, com.google.container.v1beta1.ResourceLimitOrBuilder> + getResourceLimitsFieldBuilder() { + if (resourceLimitsBuilder_ == null) { + resourceLimitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, com.google.container.v1beta1.ResourceLimit.Builder, com.google.container.v1beta1.ResourceLimitOrBuilder>( + resourceLimits_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + resourceLimits_ = null; + } + return resourceLimitsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ClusterAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClusterAutoscaling) + private static final com.google.container.v1beta1.ClusterAutoscaling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ClusterAutoscaling(); + } + + public static com.google.container.v1beta1.ClusterAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java new file mode 100644 index 000000000000..20109b0791a7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ClusterAutoscalingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enables automatic node pool creation and deletion.
+   * 
+ * + * bool enable_node_autoprovisioning = 1; + */ + boolean getEnableNodeAutoprovisioning(); + + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + java.util.List + getResourceLimitsList(); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + com.google.container.v1beta1.ResourceLimit getResourceLimits(int index); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + int getResourceLimitsCount(); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + java.util.List + getResourceLimitsOrBuilderList(); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterName.java new file mode 100644 index 000000000000..bcea29dd5c36 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterName.java @@ -0,0 +1,212 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1beta1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ClusterName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/clusters/{cluster}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + private final String cluster; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + } + + public static ClusterName of(String project, String location, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .build(); + } + + public static String format(String project, String location, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .build() + .toString(); + } + + public static ClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ClusterName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldMapBuilder.put("cluster", cluster); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location, "cluster", cluster); + } + + /** Builder for ClusterName. */ + public static class Builder { + + private String project; + private String location; + private String cluster; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + private Builder() { + } + + private Builder(ClusterName clusterName) { + project = clusterName.project; + location = clusterName.location; + cluster = clusterName.cluster; + } + + public ClusterName build() { + return new ClusterName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ClusterName) { + ClusterName that = (ClusterName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)) + && (this.cluster.equals(that.cluster)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + h *= 1000003; + h ^= cluster.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java new file mode 100644 index 000000000000..996acf45ab59 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java @@ -0,0 +1,1208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ClusterOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Cluster) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of this cluster. The name must be unique within this project
+   * and zone, and can be up to 40 characters with the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * The name of this cluster. The name must be unique within this project
+   * and zone, and can be up to 40 characters with the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * The number of nodes to create in this cluster. You must ensure that your
+   * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "node_config") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * 
+ * + * int32 initial_node_count = 3; + */ + int getInitialNodeCount(); + + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + boolean hasNodeConfig(); + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + com.google.container.v1beta1.NodeConfig getNodeConfig(); + /** + *
+   * Parameters used in creating the cluster's nodes.
+   * See `nodeConfig` for the description of its properties.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool.
+   * If unspecified, the defaults are used.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4; + */ + com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder(); + + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + boolean hasMasterAuth(); + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + com.google.container.v1beta1.MasterAuth getMasterAuth(); + /** + *
+   * The authentication information for accessing the master endpoint.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder(); + + /** + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `none` - no logs will be exported from the cluster.
+   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * 
+ * + * string logging_service = 6; + */ + java.lang.String getLoggingService(); + /** + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `none` - no logs will be exported from the cluster.
+   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * 
+ * + * string logging_service = 6; + */ + com.google.protobuf.ByteString + getLoggingServiceBytes(); + + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+   * * `none` - no metrics will be exported from the cluster.
+   * * if left as an empty string, `monitoring.googleapis.com` will be used.
+   * 
+ * + * string monitoring_service = 7; + */ + java.lang.String getMonitoringService(); + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+   * * `none` - no metrics will be exported from the cluster.
+   * * if left as an empty string, `monitoring.googleapis.com` will be used.
+   * 
+ * + * string monitoring_service = 7; + */ + com.google.protobuf.ByteString + getMonitoringServiceBytes(); + + /** + *
+   * The name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * cluster is connected. If left unspecified, the `default` network
+   * will be used. On output this shows the network ID instead of
+   * the name.
+   * 
+ * + * string network = 8; + */ + java.lang.String getNetwork(); + /** + *
+   * The name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * cluster is connected. If left unspecified, the `default` network
+   * will be used. On output this shows the network ID instead of
+   * the name.
+   * 
+ * + * string network = 8; + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + */ + java.lang.String getClusterIpv4Cidr(); + /** + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + */ + com.google.protobuf.ByteString + getClusterIpv4CidrBytes(); + + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + boolean hasAddonsConfig(); + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + com.google.container.v1beta1.AddonsConfig getAddonsConfig(); + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); + + /** + *
+   * The name of the Google Compute Engine
+   * [subnetwork](/compute/docs/subnetworks) to which the
+   * cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + */ + java.lang.String getSubnetwork(); + /** + *
+   * The name of the Google Compute Engine
+   * [subnetwork](/compute/docs/subnetworks) to which the
+   * cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); + + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + java.util.List + getNodePoolsList(); + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + com.google.container.v1beta1.NodePool getNodePools(int index); + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + int getNodePoolsCount(); + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + java.util.List + getNodePoolsOrBuilderList(); + /** + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index); + + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + java.util.List + getLocationsList(); + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + int getLocationsCount(); + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + java.lang.String getLocations(int index); + /** + *
+   * The list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located.
+   * 
+ * + * repeated string locations = 13; + */ + com.google.protobuf.ByteString + getLocationsBytes(int index); + + /** + *
+   * Kubernetes alpha features are enabled on this cluster. This includes alpha
+   * API groups (e.g. v1beta1) and features that may not be production ready in
+   * the kubernetes version of the master and nodes.
+   * The cluster has no SLA for uptime and master/node upgrades are disabled.
+   * Alpha enabled clusters are automatically deleted thirty days after
+   * creation.
+   * 
+ * + * bool enable_kubernetes_alpha = 14; + */ + boolean getEnableKubernetesAlpha(); + + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + int getResourceLabelsCount(); + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + boolean containsResourceLabels( + java.lang.String key); + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getResourceLabels(); + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + java.util.Map + getResourceLabelsMap(); + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + + java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + + java.lang.String getResourceLabelsOrThrow( + java.lang.String key); + + /** + *
+   * The fingerprint of the set of labels for this cluster.
+   * 
+ * + * string label_fingerprint = 16; + */ + java.lang.String getLabelFingerprint(); + /** + *
+   * The fingerprint of the set of labels for this cluster.
+   * 
+ * + * string label_fingerprint = 16; + */ + com.google.protobuf.ByteString + getLabelFingerprintBytes(); + + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + boolean hasLegacyAbac(); + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + com.google.container.v1beta1.LegacyAbac getLegacyAbac(); + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + com.google.container.v1beta1.LegacyAbacOrBuilder getLegacyAbacOrBuilder(); + + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + boolean hasNetworkPolicy(); + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + com.google.container.v1beta1.NetworkPolicy getNetworkPolicy(); + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + boolean hasIpAllocationPolicy(); + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + com.google.container.v1beta1.IPAllocationPolicy getIpAllocationPolicy(); + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + com.google.container.v1beta1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder(); + + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + boolean hasMasterAuthorizedNetworksConfig(); + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig(); + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder(); + + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + boolean hasMaintenancePolicy(); + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy(); + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); + + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + boolean hasBinaryAuthorization(); + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + com.google.container.v1beta1.BinaryAuthorization getBinaryAuthorization(); + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + com.google.container.v1beta1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); + + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + boolean hasPodSecurityPolicyConfig(); + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + com.google.container.v1beta1.PodSecurityPolicyConfig getPodSecurityPolicyConfig(); + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getPodSecurityPolicyConfigOrBuilder(); + + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + boolean hasAutoscaling(); + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + com.google.container.v1beta1.ClusterAutoscaling getAutoscaling(); + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + com.google.container.v1beta1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + boolean hasNetworkConfig(); + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + com.google.container.v1beta1.NetworkConfig getNetworkConfig(); + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); + + /** + *
+   * If this is a private cluster setup. Private clusters are clusters that, by
+   * default have no external IP addresses on the nodes and where nodes and the
+   * master communicate over private IP addresses.
+   * This field is deprecated, use private_cluster_config.enabled instead.
+   * 
+ * + * bool private_cluster = 28 [deprecated = true]; + */ + @java.lang.Deprecated boolean getPrivateCluster(); + + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network.
+   * This prefix will be used for assigning private IP addresses to the
+   * master or set of masters, as well as the ILB VIP.
+   * This field is deprecated, use
+   * private_cluster_config.master_ipv4_cidr_block instead.
+   * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getMasterIpv4CidrBlock(); + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network.
+   * This prefix will be used for assigning private IP addresses to the
+   * master or set of masters, as well as the ILB VIP.
+   * This field is deprecated, use
+   * private_cluster_config.master_ipv4_cidr_block instead.
+   * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getMasterIpv4CidrBlockBytes(); + + /** + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + boolean hasDefaultMaxPodsConstraint(); + /** + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint(); + /** + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + com.google.container.v1beta1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder(); + + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + boolean hasPrivateClusterConfig(); + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig(); + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + com.google.container.v1beta1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); + + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + java.lang.String getSelfLink(); + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + com.google.protobuf.ByteString + getSelfLinkBytes(); + + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + */ + java.lang.String getEndpoint(); + /** + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + */ + com.google.protobuf.ByteString + getEndpointBytes(); + + /** + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + */ + java.lang.String getInitialClusterVersion(); + /** + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + */ + com.google.protobuf.ByteString + getInitialClusterVersionBytes(); + + /** + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + */ + java.lang.String getCurrentMasterVersion(); + /** + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + */ + com.google.protobuf.ByteString + getCurrentMasterVersionBytes(); + + /** + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components.
+   * If they are currently at multiple versions because they're in the process
+   * of being upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getCurrentNodeVersion(); + /** + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool)
+   * instead. The current version of the node software components.
+   * If they are currently at multiple versions because they're in the process
+   * of being upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getCurrentNodeVersionBytes(); + + /** + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + */ + java.lang.String getCreateTime(); + /** + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + */ + com.google.protobuf.ByteString + getCreateTimeBytes(); + + /** + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + */ + int getStatusValue(); + /** + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + */ + com.google.container.v1beta1.Cluster.Status getStatus(); + + /** + *
+   * [Output only] Additional information about the current status of this
+   * cluster, if available.
+   * 
+ * + * string status_message = 108; + */ + java.lang.String getStatusMessage(); + /** + *
+   * [Output only] Additional information about the current status of this
+   * cluster, if available.
+   * 
+ * + * string status_message = 108; + */ + com.google.protobuf.ByteString + getStatusMessageBytes(); + + /** + *
+   * [Output only] The size of the address space on each node for hosting
+   * containers. This is provisioned from within the `container_ipv4_cidr`
+   * range.
+   * 
+ * + * int32 node_ipv4_cidr_size = 109; + */ + int getNodeIpv4CidrSize(); + + /** + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + */ + java.lang.String getServicesIpv4Cidr(); + /** + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + */ + com.google.protobuf.ByteString + getServicesIpv4CidrBytes(); + + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getInstanceGroupUrlsList(); + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated int getInstanceGroupUrlsCount(); + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getInstanceGroupUrls(int index); + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index); + + /** + *
+   * [Output only] The number of nodes currently in the cluster.
+   * 
+ * + * int32 current_node_count = 112; + */ + int getCurrentNodeCount(); + + /** + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + */ + java.lang.String getExpireTime(); + /** + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + */ + com.google.protobuf.ByteString + getExpireTimeBytes(); + + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + java.lang.String getLocation(); + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 114; + */ + com.google.protobuf.ByteString + getLocationBytes(); + + /** + *
+   * Enable the ability to use Cloud TPUs in this cluster.
+   * 
+ * + * bool enable_tpu = 115; + */ + boolean getEnableTpu(); + + /** + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + */ + java.lang.String getTpuIpv4CidrBlock(); + /** + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + */ + com.google.protobuf.ByteString + getTpuIpv4CidrBlockBytes(); + + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + java.util.List + getConditionsList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + com.google.container.v1beta1.StatusCondition getConditions(int index); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + int getConditionsCount(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java new file mode 100644 index 000000000000..ca3bc1917803 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java @@ -0,0 +1,1533 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public final class ClusterServiceProto { + private ClusterServiceProto() {} + 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_container_v1beta1_NodeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeTaint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MasterAuth_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MasterAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ClientCertificateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AddonsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AddonsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_HttpLoadBalancing_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_HorizontalPodAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_KubernetesDashboard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NetworkPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_LegacyAbac_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NetworkPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_IPAllocationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_BinaryAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Cluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Cluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Operation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Operation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_OperationProgress_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_OperationProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_OperationProgress_Metric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CreateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UpdateNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetLoggingServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetMonitoringServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetAddonsConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetLocationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UpdateMasterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetMasterAuthRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListClustersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListClustersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetOperationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListOperationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CancelOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListOperationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetServerConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ServerConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CreateNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_DeleteNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListNodePoolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePool_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeManagement_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeManagement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AutoUpgradeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MaintenancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MaintenanceWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_DailyMaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetNodePoolManagementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetNodePoolSizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListNodePoolsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ClusterAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ResourceLimit_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ResourceLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePoolAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetLegacyAbacRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_StartIPRotationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CompleteIPRotationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AcceleratorConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_WorkloadMetadataConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetNetworkPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListLocationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListLocationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListLocationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Location_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Location_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_StatusCondition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_StatusCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UsableSubnetwork_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MaxPodsConstraint_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/container/v1beta1/cluster_servi" + + "ce.proto\022\030google.container.v1beta1\032\034goog" + + "le/api/annotations.proto\032\036google/iam/v1/" + + "iam_policy.proto\032\032google/iam/v1/policy.p" + + "roto\032\033google/protobuf/empty.proto\"\230\005\n\nNo" + + "deConfig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014disk_s" + + "ize_gb\030\002 \001(\005\022\024\n\014oauth_scopes\030\003 \003(\t\022\027\n\017se" + + "rvice_account\030\t \001(\t\022D\n\010metadata\030\004 \003(\01322." + + "google.container.v1beta1.NodeConfig.Meta" + + "dataEntry\022\022\n\nimage_type\030\005 \001(\t\022@\n\006labels\030" + + "\006 \003(\01320.google.container.v1beta1.NodeCon" + + "fig.LabelsEntry\022\027\n\017local_ssd_count\030\007 \001(\005" + + "\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible\030\n \001(\010\022A\n\014a" + + "ccelerators\030\013 \003(\0132+.google.container.v1b" + + "eta1.AcceleratorConfig\022\021\n\tdisk_type\030\014 \001(" + + "\t\022\030\n\020min_cpu_platform\030\r \001(\t\022R\n\030workload_" + + "metadata_config\030\016 \001(\01320.google.container" + + ".v1beta1.WorkloadMetadataConfig\0223\n\006taint" + + "s\030\017 \003(\0132#.google.container.v1beta1.NodeT" + + "aint\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\276\001\n\tNodeTaint\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022:\n\006effect\030\003 \001(\0162*" + + ".google.container.v1beta1.NodeTaint.Effe" + + "ct\"Y\n\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013" + + "NO_SCHEDULE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n" + + "\nNO_EXECUTE\020\003\"\326\001\n\nMasterAuth\022\020\n\010username" + + "\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022T\n\031client_certi" + + "ficate_config\030\003 \001(\01321.google.container.v" + + "1beta1.ClientCertificateConfig\022\036\n\026cluste" + + "r_ca_certificate\030d \001(\t\022\032\n\022client_certifi" + + "cate\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027Client" + + "CertificateConfig\022 \n\030issue_client_certif" + + "icate\030\001 \001(\010\"\313\002\n\014AddonsConfig\022H\n\023http_loa" + + "d_balancing\030\001 \001(\0132+.google.container.v1b" + + "eta1.HttpLoadBalancing\022V\n\032horizontal_pod" + + "_autoscaling\030\002 \001(\01322.google.container.v1" + + "beta1.HorizontalPodAutoscaling\022K\n\024kubern" + + "etes_dashboard\030\003 \001(\0132-.google.container." + + "v1beta1.KubernetesDashboard\022L\n\025network_p" + + "olicy_config\030\004 \001(\0132-.google.container.v1" + + "beta1.NetworkPolicyConfig\"%\n\021HttpLoadBal" + + "ancing\022\020\n\010disabled\030\001 \001(\010\",\n\030HorizontalPo" + + "dAutoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Kubern" + + "etesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Netwo" + + "rkPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"\250\001\n\024Pri" + + "vateClusterConfig\022\034\n\024enable_private_node" + + "s\030\001 \001(\010\022\037\n\027enable_private_endpoint\030\002 \001(\010" + + "\022\036\n\026master_ipv4_cidr_block\030\003 \001(\t\022\030\n\020priv" + + "ate_endpoint\030\004 \001(\t\022\027\n\017public_endpoint\030\005 " + + "\001(\t\"\301\001\n\036MasterAuthorizedNetworksConfig\022\017" + + "\n\007enabled\030\001 \001(\010\022W\n\013cidr_blocks\030\002 \003(\0132B.g" + + "oogle.container.v1beta1.MasterAuthorized" + + "NetworksConfig.CidrBlock\0325\n\tCidrBlock\022\024\n" + + "\014display_name\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\t\"" + + "\035\n\nLegacyAbac\022\017\n\007enabled\030\001 \001(\010\"\226\001\n\rNetwo" + + "rkPolicy\022B\n\010provider\030\001 \001(\01620.google.cont" + + "ainer.v1beta1.NetworkPolicy.Provider\022\017\n\007" + + "enabled\030\002 \001(\010\"0\n\010Provider\022\030\n\024PROVIDER_UN" + + "SPECIFIED\020\000\022\n\n\006CALICO\020\001\"\243\003\n\022IPAllocation" + + "Policy\022\026\n\016use_ip_aliases\030\001 \001(\010\022\031\n\021create" + + "_subnetwork\030\002 \001(\010\022\027\n\017subnetwork_name\030\003 \001" + + "(\t\022\035\n\021cluster_ipv4_cidr\030\004 \001(\tB\002\030\001\022\032\n\016nod" + + "e_ipv4_cidr\030\005 \001(\tB\002\030\001\022\036\n\022services_ipv4_c" + + "idr\030\006 \001(\tB\002\030\001\022$\n\034cluster_secondary_range" + + "_name\030\007 \001(\t\022%\n\035services_secondary_range_" + + "name\030\010 \001(\t\022\037\n\027cluster_ipv4_cidr_block\030\t " + + "\001(\t\022\034\n\024node_ipv4_cidr_block\030\n \001(\t\022 \n\030ser" + + "vices_ipv4_cidr_block\030\013 \001(\t\022\033\n\023allow_rou" + + "te_overlap\030\014 \001(\010\022\033\n\023tpu_ipv4_cidr_block\030" + + "\r \001(\t\"&\n\023BinaryAuthorization\022\017\n\007enabled\030" + + "\001 \001(\010\"*\n\027PodSecurityPolicyConfig\022\017\n\007enab" + + "led\030\001 \001(\010\"\210\021\n\007Cluster\022\014\n\004name\030\001 \001(\t\022\023\n\013d" + + "escription\030\002 \001(\t\022\032\n\022initial_node_count\030\003" + + " \001(\005\0229\n\013node_config\030\004 \001(\0132$.google.conta" + + "iner.v1beta1.NodeConfig\0229\n\013master_auth\030\005" + + " \001(\0132$.google.container.v1beta1.MasterAu" + + "th\022\027\n\017logging_service\030\006 \001(\t\022\032\n\022monitorin" + + "g_service\030\007 \001(\t\022\017\n\007network\030\010 \001(\t\022\031\n\021clus" + + "ter_ipv4_cidr\030\t \001(\t\022=\n\raddons_config\030\n \001" + + "(\0132&.google.container.v1beta1.AddonsConf" + + "ig\022\022\n\nsubnetwork\030\013 \001(\t\0226\n\nnode_pools\030\014 \003" + + "(\0132\".google.container.v1beta1.NodePool\022\021" + + "\n\tlocations\030\r \003(\t\022\037\n\027enable_kubernetes_a" + + "lpha\030\016 \001(\010\022N\n\017resource_labels\030\017 \003(\01325.go" + + "ogle.container.v1beta1.Cluster.ResourceL" + + "abelsEntry\022\031\n\021label_fingerprint\030\020 \001(\t\0229\n" + + "\013legacy_abac\030\022 \001(\0132$.google.container.v1" + + "beta1.LegacyAbac\022?\n\016network_policy\030\023 \001(\013" + + "2\'.google.container.v1beta1.NetworkPolic" + + "y\022J\n\024ip_allocation_policy\030\024 \001(\0132,.google" + + ".container.v1beta1.IPAllocationPolicy\022c\n" + + "!master_authorized_networks_config\030\026 \001(\013" + + "28.google.container.v1beta1.MasterAuthor" + + "izedNetworksConfig\022G\n\022maintenance_policy" + + "\030\027 \001(\0132+.google.container.v1beta1.Mainte" + + "nancePolicy\022K\n\024binary_authorization\030\030 \001(" + + "\0132-.google.container.v1beta1.BinaryAutho" + + "rization\022U\n\032pod_security_policy_config\030\031" + + " \001(\01321.google.container.v1beta1.PodSecur" + + "ityPolicyConfig\022A\n\013autoscaling\030\032 \001(\0132,.g" + + "oogle.container.v1beta1.ClusterAutoscali" + + "ng\022?\n\016network_config\030\033 \001(\0132\'.google.cont" + + "ainer.v1beta1.NetworkConfig\022\033\n\017private_c" + + "luster\030\034 \001(\010B\002\030\001\022\"\n\026master_ipv4_cidr_blo" + + "ck\030\035 \001(\tB\002\030\001\022P\n\033default_max_pods_constra" + + "int\030\036 \001(\0132+.google.container.v1beta1.Max" + + "PodsConstraint\022N\n\026private_cluster_config" + + "\030% \001(\0132..google.container.v1beta1.Privat" + + "eClusterConfig\022\021\n\tself_link\030d \001(\t\022\020\n\004zon" + + "e\030e \001(\tB\002\030\001\022\020\n\010endpoint\030f \001(\t\022\037\n\027initial" + + "_cluster_version\030g \001(\t\022\036\n\026current_master" + + "_version\030h \001(\t\022 \n\024current_node_version\030i" + + " \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0228\n\006status\030" + + "k \001(\0162(.google.container.v1beta1.Cluster" + + ".Status\022\026\n\016status_message\030l \001(\t\022\033\n\023node_" + + "ipv4_cidr_size\030m \001(\005\022\032\n\022services_ipv4_ci" + + "dr\030n \001(\t\022\037\n\023instance_group_urls\030o \003(\tB\002\030" + + "\001\022\032\n\022current_node_count\030p \001(\005\022\023\n\013expire_" + + "time\030q \001(\t\022\020\n\010location\030r \001(\t\022\022\n\nenable_t" + + "pu\030s \001(\010\022\033\n\023tpu_ipv4_cidr_block\030t \001(\t\022=\n" + + "\nconditions\030v \003(\0132).google.container.v1b" + + "eta1.StatusCondition\0325\n\023ResourceLabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006S" + + "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISI" + + "ONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n" + + "\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006\"\370\005\n" + + "\rClusterUpdate\022\034\n\024desired_node_version\030\004" + + " \001(\t\022\"\n\032desired_monitoring_service\030\005 \001(\t" + + "\022E\n\025desired_addons_config\030\006 \001(\0132&.google" + + ".container.v1beta1.AddonsConfig\022\034\n\024desir" + + "ed_node_pool_id\030\007 \001(\t\022\032\n\022desired_image_t" + + "ype\030\010 \001(\t\022T\n\035desired_node_pool_autoscali" + + "ng\030\t \001(\0132-.google.container.v1beta1.Node" + + "PoolAutoscaling\022\031\n\021desired_locations\030\n \003" + + "(\t\022k\n)desired_master_authorized_networks" + + "_config\030\014 \001(\01328.google.container.v1beta1" + + ".MasterAuthorizedNetworksConfig\022]\n\"desir" + + "ed_pod_security_policy_config\030\016 \001(\01321.go" + + "ogle.container.v1beta1.PodSecurityPolicy" + + "Config\022Q\n\033desired_cluster_autoscaling\030\017 " + + "\001(\0132,.google.container.v1beta1.ClusterAu" + + "toscaling\022S\n\034desired_binary_authorizatio" + + "n\030\020 \001(\0132-.google.container.v1beta1.Binar" + + "yAuthorization\022\037\n\027desired_logging_servic" + + "e\030\023 \001(\t\022\036\n\026desired_master_version\030d \001(\t\"" + + "\323\007\n\tOperation\022\014\n\004name\030\001 \001(\t\022\020\n\004zone\030\002 \001(" + + "\tB\002\030\001\022@\n\016operation_type\030\003 \001(\0162(.google.c" + + "ontainer.v1beta1.Operation.Type\022:\n\006statu" + + "s\030\004 \001(\0162*.google.container.v1beta1.Opera" + + "tion.Status\022\016\n\006detail\030\010 \001(\t\022\026\n\016status_me" + + "ssage\030\005 \001(\t\022\021\n\tself_link\030\006 \001(\t\022\023\n\013target" + + "_link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart_t" + + "ime\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022=\n\010progress\030" + + "\014 \001(\0132+.google.container.v1beta1.Operati" + + "onProgress\022E\n\022cluster_conditions\030\r \003(\0132)" + + ".google.container.v1beta1.StatusConditio" + + "n\022F\n\023nodepool_conditions\030\016 \003(\0132).google." + + "container.v1beta1.StatusCondition\"R\n\006Sta" + + "tus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001" + + "\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004\"\375\002" + + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREATE_C" + + "LUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGRADE_" + + "MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAIR_CL" + + "USTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREATE_NO" + + "DE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030SET_N" + + "ODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR_NOD" + + "ES\020\n\022\026\n\022AUTO_UPGRADE_NODES\020\013\022\016\n\nSET_LABE" + + "LS\020\014\022\023\n\017SET_MASTER_AUTH\020\r\022\026\n\022SET_NODE_PO" + + "OL_SIZE\020\016\022\026\n\022SET_NETWORK_POLICY\020\017\022\032\n\026SET" + + "_MAINTENANCE_POLICY\020\020\"\305\002\n\021OperationProgr" + + "ess\022\014\n\004name\030\001 \001(\t\022:\n\006status\030\002 \001(\0162*.goog" + + "le.container.v1beta1.Operation.Status\022C\n" + + "\007metrics\030\003 \003(\01322.google.container.v1beta" + + "1.OperationProgress.Metric\022;\n\006stages\030\004 \003" + + "(\0132+.google.container.v1beta1.OperationP" + + "rogress\032d\n\006Metric\022\014\n\004name\030\001 \001(\t\022\023\n\tint_v" + + "alue\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014" + + "string_value\030\004 \001(\tH\000B\007\n\005value\"\204\001\n\024Create" + + "ClusterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020" + + "\n\004zone\030\002 \001(\tB\002\030\001\0222\n\007cluster\030\003 \001(\0132!.goog" + + "le.container.v1beta1.Cluster\022\016\n\006parent\030\005" + + " \001(\t\"c\n\021GetClusterRequest\022\026\n\nproject_id\030" + + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_i" + + "d\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001(\t\"\237\001\n\024UpdateClus" + + "terRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zo" + + "ne\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0227\n\006" + + "update\030\004 \001(\0132\'.google.container.v1beta1." + + "ClusterUpdate\022\014\n\004name\030\005 \001(\t\"\253\001\n\025UpdateNo" + + "dePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n" + + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022" + + "\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\024\n\014node_versio" + + "n\030\005 \001(\t\022\022\n\nimage_type\030\006 \001(\t\022\014\n\004name\030\010 \001(" + + "\t\"\315\001\n\035SetNodePoolAutoscalingRequest\022\026\n\np" + + "roject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n" + + "\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 " + + "\001(\tB\002\030\001\022B\n\013autoscaling\030\005 \001(\0132-.google.co" + + "ntainer.v1beta1.NodePoolAutoscaling\022\014\n\004n" + + "ame\030\006 \001(\t\"\177\n\030SetLoggingServiceRequest\022\026\n" + + "\nproject_id\030\001 \001(\tB\002\030\001\022\014\n\004zone\030\002 \001(\t\022\026\n\nc" + + "luster_id\030\003 \001(\tB\002\030\001\022\027\n\017logging_service\030\004" + + " \001(\t\022\014\n\004name\030\005 \001(\t\"\211\001\n\033SetMonitoringServ" + + "iceRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zo" + + "ne\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\032\n\022" + + "monitoring_service\030\004 \001(\t\022\014\n\004name\030\006 \001(\t\"\247" + + "\001\n\026SetAddonsConfigRequest\022\026\n\nproject_id\030" + + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_i" + + "d\030\003 \001(\tB\002\030\001\022=\n\raddons_config\030\004 \001(\0132&.goo" + + "gle.container.v1beta1.AddonsConfig\022\014\n\004na" + + "me\030\006 \001(\t\"x\n\023SetLocationsRequest\022\026\n\nproje" + + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclu" + + "ster_id\030\003 \001(\tB\002\030\001\022\021\n\tlocations\030\004 \003(\t\022\014\n\004" + + "name\030\006 \001(\t\"}\n\023UpdateMasterRequest\022\026\n\npro" + + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" + + "luster_id\030\003 \001(\tB\002\030\001\022\026\n\016master_version\030\004 " + + "\001(\t\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMasterAuthReque" + + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" + + "B\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022E\n\006action\030\004" + + " \001(\01625.google.container.v1beta1.SetMaste" + + "rAuthRequest.Action\0224\n\006update\030\005 \001(\0132$.go" + + "ogle.container.v1beta1.MasterAuth\022\014\n\004nam" + + "e\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PA" + + "SSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022\020\n\014SET_U" + + "SERNAME\020\003\"f\n\024DeleteClusterRequest\022\026\n\npro" + + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" + + "luster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"O\n\023Lis" + + "tClustersRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" + + "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"b\n\024Li" + + "stClustersResponse\0223\n\010clusters\030\001 \003(\0132!.g" + + "oogle.container.v1beta1.Cluster\022\025\n\rmissi" + + "ng_zones\030\002 \003(\t\"g\n\023GetOperationRequest\022\026\n" + + "\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022" + + "\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001(\t\"" + + "Q\n\025ListOperationsRequest\022\026\n\nproject_id\030\001" + + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001" + + "(\t\"j\n\026CancelOperationRequest\022\026\n\nproject_" + + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014operat" + + "ion_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"h\n\026ListOp" + + "erationsResponse\0227\n\noperations\030\001 \003(\0132#.g" + + "oogle.container.v1beta1.Operation\022\025\n\rmis" + + "sing_zones\030\002 \003(\t\"P\n\026GetServerConfigReque" + + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" + + "B\002\030\001\022\014\n\004name\030\004 \001(\t\"\242\001\n\014ServerConfig\022\037\n\027d" + + "efault_cluster_version\030\001 \001(\t\022\033\n\023valid_no" + + "de_versions\030\003 \003(\t\022\032\n\022default_image_type\030" + + "\004 \001(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025vali" + + "d_master_versions\030\006 \003(\t\"\240\001\n\025CreateNodePo" + + "olRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" + + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0225\n\tn" + + "ode_pool\030\004 \001(\0132\".google.container.v1beta" + + "1.NodePool\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025DeleteNod" + + "ePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004" + + "zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030" + + "\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"h" + + "\n\024ListNodePoolsRequest\022\026\n\nproject_id\030\001 \001" + + "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003" + + " \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022GetNodePoolR" + + "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" + + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node" + + "_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"\215\005\n\010Nod" + + "ePool\022\014\n\004name\030\001 \001(\t\0224\n\006config\030\002 \001(\0132$.go" + + "ogle.container.v1beta1.NodeConfig\022\032\n\022ini" + + "tial_node_count\030\003 \001(\005\022\021\n\tself_link\030d \001(\t" + + "\022\017\n\007version\030e \001(\t\022\033\n\023instance_group_urls" + + "\030f \003(\t\0229\n\006status\030g \001(\0162).google.containe" + + "r.v1beta1.NodePool.Status\022\026\n\016status_mess" + + "age\030h \001(\t\022B\n\013autoscaling\030\004 \001(\0132-.google." + + "container.v1beta1.NodePoolAutoscaling\022<\n" + + "\nmanagement\030\005 \001(\0132(.google.container.v1b" + + "eta1.NodeManagement\022H\n\023max_pods_constrai" + + "nt\030\006 \001(\0132+.google.container.v1beta1.MaxP" + + "odsConstraint\022=\n\nconditions\030i \003(\0132).goog" + + "le.container.v1beta1.StatusCondition\"\201\001\n" + + "\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVI" + + "SIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_E" + + "RROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n" + + "\005ERROR\020\006\"\202\001\n\016NodeManagement\022\024\n\014auto_upgr" + + "ade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022E\n\017upgrad" + + "e_options\030\n \001(\0132,.google.container.v1bet" + + "a1.AutoUpgradeOptions\"J\n\022AutoUpgradeOpti" + + "ons\022\037\n\027auto_upgrade_start_time\030\001 \001(\t\022\023\n\013" + + "description\030\002 \001(\t\"P\n\021MaintenancePolicy\022;" + + "\n\006window\030\001 \001(\0132+.google.container.v1beta" + + "1.MaintenanceWindow\"s\n\021MaintenanceWindow" + + "\022T\n\030daily_maintenance_window\030\002 \001(\01320.goo" + + "gle.container.v1beta1.DailyMaintenanceWi" + + "ndowH\000B\010\n\006policy\">\n\026DailyMaintenanceWind" + + "ow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t" + + "\"\306\001\n\034SetNodePoolManagementRequest\022\026\n\npro" + + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" + + "luster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(" + + "\tB\002\030\001\022<\n\nmanagement\030\005 \001(\0132(.google.conta" + + "iner.v1beta1.NodeManagement\022\014\n\004name\030\007 \001(" + + "\t\"\226\001\n\026SetNodePoolSizeRequest\022\026\n\nproject_" + + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluste" + + "r_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001" + + "\022\022\n\nnode_count\030\005 \001(\005\022\014\n\004name\030\007 \001(\t\"\212\001\n\036R" + + "ollbackNodePoolUpgradeRequest\022\026\n\nproject" + + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclust" + + "er_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030" + + "\001\022\014\n\004name\030\006 \001(\t\"O\n\025ListNodePoolsResponse" + + "\0226\n\nnode_pools\030\001 \003(\0132\".google.container." + + "v1beta1.NodePool\"|\n\022ClusterAutoscaling\022$" + + "\n\034enable_node_autoprovisioning\030\001 \001(\010\022@\n\017" + + "resource_limits\030\002 \003(\0132\'.google.container" + + ".v1beta1.ResourceLimit\"H\n\rResourceLimit\022" + + "\025\n\rresource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022" + + "\017\n\007maximum\030\003 \001(\003\"o\n\023NodePoolAutoscaling\022" + + "\017\n\007enabled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001(\005" + + "\022\026\n\016max_node_count\030\003 \001(\005\022\027\n\017autoprovisio" + + "ned\030\004 \001(\010\"\215\002\n\020SetLabelsRequest\022\026\n\nprojec" + + "t_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclus" + + "ter_id\030\003 \001(\tB\002\030\001\022W\n\017resource_labels\030\004 \003(" + + "\0132>.google.container.v1beta1.SetLabelsRe" + + "quest.ResourceLabelsEntry\022\031\n\021label_finge" + + "rprint\030\005 \001(\t\022\014\n\004name\030\007 \001(\t\0325\n\023ResourceLa" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"w\n\024SetLegacyAbacRequest\022\026\n\nproject_id\030" + + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_i" + + "d\030\003 \001(\tB\002\030\001\022\017\n\007enabled\030\004 \001(\010\022\014\n\004name\030\006 \001" + + "(\t\"\204\001\n\026StartIPRotationRequest\022\026\n\nproject" + + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclust" + + "er_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\032\n\022rotate_" + + "credentials\030\007 \001(\010\"k\n\031CompleteIPRotationR" + + "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" + + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name" + + "\030\007 \001(\t\"H\n\021AcceleratorConfig\022\031\n\021accelerat" + + "or_count\030\001 \001(\003\022\030\n\020accelerator_type\030\002 \001(\t" + + "\"\247\001\n\026WorkloadMetadataConfig\022T\n\rnode_meta" + + "data\030\001 \001(\0162=.google.container.v1beta1.Wo" + + "rkloadMetadataConfig.NodeMetadata\"7\n\014Nod" + + "eMetadata\022\017\n\013UNSPECIFIED\020\000\022\n\n\006SECURE\020\001\022\n" + + "\n\006EXPOSE\020\002\"\252\001\n\027SetNetworkPolicyRequest\022\026" + + "\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001" + + "\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022?\n\016network_poli" + + "cy\030\004 \001(\0132\'.google.container.v1beta1.Netw" + + "orkPolicy\022\014\n\004name\030\006 \001(\t\"\252\001\n\033SetMaintenan" + + "cePolicyRequest\022\022\n\nproject_id\030\001 \001(\t\022\014\n\004z" + + "one\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001(\t\022G\n\022mainten" + + "ance_policy\030\004 \001(\0132+.google.container.v1b" + + "eta1.MaintenancePolicy\022\014\n\004name\030\005 \001(\t\"&\n\024" + + "ListLocationsRequest\022\016\n\006parent\030\001 \001(\t\"g\n\025" + + "ListLocationsResponse\0225\n\tlocations\030\001 \003(\013" + + "2\".google.container.v1beta1.Location\022\027\n\017" + + "next_page_token\030\002 \001(\t\"\261\001\n\010Location\022=\n\004ty" + + "pe\030\001 \001(\0162/.google.container.v1beta1.Loca" + + "tion.LocationType\022\014\n\004name\030\002 \001(\t\022\023\n\013recom" + + "mended\030\003 \001(\010\"C\n\014LocationType\022\035\n\031LOCATION" + + "_TYPE_UNSPECIFIED\020\000\022\010\n\004ZONE\020\001\022\n\n\006REGION\020" + + "\002\"\250\001\n\017StatusCondition\022<\n\004code\030\001 \001(\0162..go" + + "ogle.container.v1beta1.StatusCondition.C" + + "ode\022\017\n\007message\030\002 \001(\t\"F\n\004Code\022\013\n\007UNKNOWN\020" + + "\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOU" + + "NT_DELETED\020\002\"4\n\rNetworkConfig\022\017\n\007network" + + "\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\"e\n\034ListUsable" + + "SubnetworksRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006fi" + + "lter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_to" + + "ken\030\004 \001(\t\"y\n\035ListUsableSubnetworksRespon" + + "se\022?\n\013subnetworks\030\001 \003(\0132*.google.contain" + + "er.v1beta1.UsableSubnetwork\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\205\002\n\036UsableSubnetworkSeconda" + + "ryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_cidr_r" + + "ange\030\002 \001(\t\022O\n\006status\030\003 \001(\0162?.google.cont" + + "ainer.v1beta1.UsableSubnetworkSecondaryR" + + "ange.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UN" + + "USED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE_SHA" + + "REABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\275\001\n" + + "\020UsableSubnetwork\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n" + + "\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022U\n" + + "\023secondary_ip_ranges\030\004 \003(\01328.google.cont" + + "ainer.v1beta1.UsableSubnetworkSecondaryR" + + "ange\022\026\n\016status_message\030\005 \001(\t\".\n\021MaxPodsC" + + "onstraint\022\031\n\021max_pods_per_node\030\001 \001(\0032\221A\n" + + "\016ClusterManager\022\340\001\n\014ListClusters\022-.googl" + + "e.container.v1beta1.ListClustersRequest\032" + + "..google.container.v1beta1.ListClustersR" + + "esponse\"q\202\323\344\223\002k\0221/v1beta1/{parent=projec" + + "ts/*/locations/*}/clustersZ6\0224/v1beta1/p" + + "rojects/{project_id}/zones/{zone}/cluste" + + "rs\022\334\001\n\nGetCluster\022+.google.container.v1b" + + "eta1.GetClusterRequest\032!.google.containe" + + "r.v1beta1.Cluster\"~\202\323\344\223\002x\0221/v1beta1/{nam" + + "e=projects/*/locations/*/clusters/*}ZC\022A" + + "/v1beta1/projects/{project_id}/zones/{zo" + + "ne}/clusters/{cluster_id}\022\335\001\n\rCreateClus" + + "ter\022..google.container.v1beta1.CreateClu" + + "sterRequest\032#.google.container.v1beta1.O" + + "peration\"w\202\323\344\223\002q\"1/v1beta1/{parent=proje" + + "cts/*/locations/*}/clusters:\001*Z9\"4/v1bet" + + "a1/projects/{project_id}/zones/{zone}/cl" + + "usters:\001*\022\353\001\n\rUpdateCluster\022..google.con" + + "tainer.v1beta1.UpdateClusterRequest\032#.go" + + "ogle.container.v1beta1.Operation\"\204\001\202\323\344\223\002" + + "~\0321/v1beta1/{name=projects/*/locations/*" + + "/clusters/*}:\001*ZF\032A/v1beta1/projects/{pr" + + "oject_id}/zones/{zone}/clusters/{cluster" + + "_id}:\001*\022\232\002\n\016UpdateNodePool\022/.google.cont" + + "ainer.v1beta1.UpdateNodePoolRequest\032#.go" + + "ogle.container.v1beta1.Operation\"\261\001\202\323\344\223\002" + + "\252\001\032=/v1beta1/{name=projects/*/locations/", + "*/clusters/*/nodePools/*}:\001*Zf\"a/v1beta1" + + "/projects/{project_id}/zones/{zone}/clus" + + "ters/{cluster_id}/nodePools/{node_pool_i" + + "d}/update:\001*\022\276\002\n\026SetNodePoolAutoscaling\022" + + "7.google.container.v1beta1.SetNodePoolAu" + + "toscalingRequest\032#.google.container.v1be" + + "ta1.Operation\"\305\001\202\323\344\223\002\276\001\"L/v1beta1/{name=" + + "projects/*/locations/*/clusters/*/nodePo" + + "ols/*}:setAutoscaling:\001*Zk\"f/v1beta1/pro" + + "jects/{project_id}/zones/{zone}/clusters" + + "/{cluster_id}/nodePools/{node_pool_id}/a" + + "utoscaling:\001*\022\207\002\n\021SetLoggingService\0222.go" + + "ogle.container.v1beta1.SetLoggingService" + + "Request\032#.google.container.v1beta1.Opera" + + "tion\"\230\001\202\323\344\223\002\221\001\"/v1beta1/{name=projects/*/loca" + + "tions/*/clusters/*}:setLocations:\001*ZP\"K/" + + "v1beta1/projects/{project_id}/zones/{zon" + + "e}/clusters/{cluster_id}/locations:\001*\022\376\001" + + "\n\014UpdateMaster\022-.google.container.v1beta" + + "1.UpdateMasterRequest\032#.google.container" + + ".v1beta1.Operation\"\231\001\202\323\344\223\002\222\001\">/v1beta1/{" + + "name=projects/*/locations/*/clusters/*}:" + + "updateMaster:\001*ZM\"H/v1beta1/projects/{pr" + + "oject_id}/zones/{zone}/clusters/{cluster" + + "_id}/master:\001*\022\210\002\n\rSetMasterAuth\022..googl" + + "e.container.v1beta1.SetMasterAuthRequest" + + "\032#.google.container.v1beta1.Operation\"\241\001" + + "\202\323\344\223\002\232\001\"?/v1beta1/{name=projects/*/locat" + + "ions/*/clusters/*}:setMasterAuth:\001*ZT\"O/" + + "v1beta1/projects/{project_id}/zones/{zon" + + "e}/clusters/{cluster_id}:setMasterAuth:\001" + + "*\022\344\001\n\rDeleteCluster\022..google.container.v" + + "1beta1.DeleteClusterRequest\032#.google.con" + + "tainer.v1beta1.Operation\"~\202\323\344\223\002x*1/v1bet" + + "a1/{name=projects/*/locations/*/clusters" + + "/*}ZC*A/v1beta1/projects/{project_id}/zo" + + "nes/{zone}/clusters/{cluster_id}\022\352\001\n\016Lis" + + "tOperations\022/.google.container.v1beta1.L" + + "istOperationsRequest\0320.google.container." + + "v1beta1.ListOperationsResponse\"u\202\323\344\223\002o\0223" + + "/v1beta1/{parent=projects/*/locations/*}" + + "/operationsZ8\0226/v1beta1/projects/{projec" + + "t_id}/zones/{zone}/operations\022\351\001\n\014GetOpe" + + "ration\022-.google.container.v1beta1.GetOpe" + + "rationRequest\032#.google.container.v1beta1" + + ".Operation\"\204\001\202\323\344\223\002~\0223/v1beta1/{name=proj" + + "ects/*/locations/*/operations/*}ZG\022E/v1b" + + "eta1/projects/{project_id}/zones/{zone}/" + + "operations/{operation_id}\022\367\001\n\017CancelOper" + + "ation\0220.google.container.v1beta1.CancelO" + + "perationRequest\032\026.google.protobuf.Empty\"" + + "\231\001\202\323\344\223\002\222\001\":/v1beta1/{name=projects/*/loc" + + "ations/*/operations/*}:cancel:\001*ZQ\"L/v1b" + + "eta1/projects/{project_id}/zones/{zone}/" + + "operations/{operation_id}:cancel:\001*\022\344\001\n\017" + + "GetServerConfig\0220.google.container.v1bet" + + "a1.GetServerConfigRequest\032&.google.conta" + + "iner.v1beta1.ServerConfig\"w\202\323\344\223\002q\0223/v1be" + + "ta1/{name=projects/*/locations/*}/server" + + "ConfigZ:\0228/v1beta1/projects/{project_id}" + + "/zones/{zone}/serverconfig\022\210\002\n\rListNodeP" + + "ools\022..google.container.v1beta1.ListNode" + + "PoolsRequest\032/.google.container.v1beta1." + + "ListNodePoolsResponse\"\225\001\202\323\344\223\002\216\001\022=/v1beta" + + "1/{parent=projects/*/locations/*/cluster" + + "s/*}/nodePoolsZM\022K/v1beta1/projects/{pro" + + "ject_id}/zones/{zone}/clusters/{cluster_" + + "id}/nodePools\022\206\002\n\013GetNodePool\022,.google.c" + + "ontainer.v1beta1.GetNodePoolRequest\032\".go" + + "ogle.container.v1beta1.NodePool\"\244\001\202\323\344\223\002\235" + + "\001\022=/v1beta1/{name=projects/*/locations/*" + + "/clusters/*/nodePools/*}Z\\\022Z/v1beta1/pro" + + "jects/{project_id}/zones/{zone}/clusters" + + "/{cluster_id}/nodePools/{node_pool_id}\022\204" + + "\002\n\016CreateNodePool\022/.google.container.v1b" + + "eta1.CreateNodePoolRequest\032#.google.cont" + + "ainer.v1beta1.Operation\"\233\001\202\323\344\223\002\224\001\"=/v1be" + + "ta1/{parent=projects/*/locations/*/clust" + + "ers/*}/nodePools:\001*ZP\"K/v1beta1/projects" + + "/{project_id}/zones/{zone}/clusters/{clu" + + "ster_id}/nodePools:\001*\022\215\002\n\016DeleteNodePool" + + "\022/.google.container.v1beta1.DeleteNodePo" + + "olRequest\032#.google.container.v1beta1.Ope" + + "ration\"\244\001\202\323\344\223\002\235\001*=/v1beta1/{name=project" + + "s/*/locations/*/clusters/*/nodePools/*}Z" + + "\\*Z/v1beta1/projects/{project_id}/zones/" + + "{zone}/clusters/{cluster_id}/nodePools/{" + + "node_pool_id}\022\267\002\n\027RollbackNodePoolUpgrad" + + "e\0228.google.container.v1beta1.RollbackNod" + + "ePoolUpgradeRequest\032#.google.container.v" + + "1beta1.Operation\"\274\001\202\323\344\223\002\265\001\"F/v1beta1/{na" + + "me=projects/*/locations/*/clusters/*/nod" + + "ePools/*}:rollback:\001*Zh\"c/v1beta1/projec" + + "ts/{project_id}/zones/{zone}/clusters/{c" + + "luster_id}/nodePools/{node_pool_id}:roll" + + "back:\001*\022\275\002\n\025SetNodePoolManagement\0226.goog" + + "le.container.v1beta1.SetNodePoolManageme" + + "ntRequest\032#.google.container.v1beta1.Ope" + + "ration\"\306\001\202\323\344\223\002\277\001\"K/v1beta1/{name=project" + + "s/*/locations/*/clusters/*/nodePools/*}:" + + "setManagement:\001*Zm\"h/v1beta1/projects/{p" + + "roject_id}/zones/{zone}/clusters/{cluste" + + "r_id}/nodePools/{node_pool_id}/setManage" + + "ment:\001*\022\205\002\n\tSetLabels\022*.google.container" + + ".v1beta1.SetLabelsRequest\032#.google.conta" + + "iner.v1beta1.Operation\"\246\001\202\323\344\223\002\237\001\"C/v1bet" + + "a1/{name=projects/*/locations/*/clusters" + + "/*}:setResourceLabels:\001*ZU\"P/v1beta1/pro" + + "jects/{project_id}/zones/{zone}/clusters" + + "/{cluster_id}/resourceLabels:\001*\022\205\002\n\rSetL" + + "egacyAbac\022..google.container.v1beta1.Set" + + "LegacyAbacRequest\032#.google.container.v1b" + + "eta1.Operation\"\236\001\202\323\344\223\002\227\001\"?/v1beta1/{name" + + "=projects/*/locations/*/clusters/*}:setL" + + "egacyAbac:\001*ZQ\"L/v1beta1/projects/{proje" + + "ct_id}/zones/{zone}/clusters/{cluster_id" + + "}/legacyAbac:\001*\022\220\002\n\017StartIPRotation\0220.go" + + "ogle.container.v1beta1.StartIPRotationRe" + + "quest\032#.google.container.v1beta1.Operati" + + "on\"\245\001\202\323\344\223\002\236\001\"A/v1beta1/{name=projects/*/" + + "locations/*/clusters/*}:startIpRotation:" + + "\001*ZV\"Q/v1beta1/projects/{project_id}/zon" + + "es/{zone}/clusters/{cluster_id}:startIpR" + + "otation:\001*\022\234\002\n\022CompleteIPRotation\0223.goog" + + "le.container.v1beta1.CompleteIPRotationR" + + "equest\032#.google.container.v1beta1.Operat" + + "ion\"\253\001\202\323\344\223\002\244\001\"D/v1beta1/{name=projects/*" + + "/locations/*/clusters/*}:completeIpRotat" + + "ion:\001*ZY\"T/v1beta1/projects/{project_id}" + + "/zones/{zone}/clusters/{cluster_id}:comp" + + "leteIpRotation:\001*\022\245\002\n\017SetNodePoolSize\0220." + + "google.container.v1beta1.SetNodePoolSize" + + "Request\032#.google.container.v1beta1.Opera" + + "tion\"\272\001\202\323\344\223\002\263\001\"E/v1beta1/{name=projects/" + + "*/locations/*/clusters/*/nodePools/*}:se" + + "tSize:\001*Zg\"b/v1beta1/projects/{project_i" + + "d}/zones/{zone}/clusters/{cluster_id}/no" + + "dePools/{node_pool_id}/setSize:\001*\022\224\002\n\020Se" + + "tNetworkPolicy\0221.google.container.v1beta" + + "1.SetNetworkPolicyRequest\032#.google.conta" + + "iner.v1beta1.Operation\"\247\001\202\323\344\223\002\240\001\"B/v1bet" + + "a1/{name=projects/*/locations/*/clusters" + + "/*}:setNetworkPolicy:\001*ZW\"R/v1beta1/proj" + + "ects/{project_id}/zones/{zone}/clusters/" + + "{cluster_id}:setNetworkPolicy:\001*\022\244\002\n\024Set" + + "MaintenancePolicy\0225.google.container.v1b" + + "eta1.SetMaintenancePolicyRequest\032#.googl" + + "e.container.v1beta1.Operation\"\257\001\202\323\344\223\002\250\001\"" + + "F/v1beta1/{name=projects/*/locations/*/c" + + "lusters/*}:setMaintenancePolicy:\001*Z[\"V/v" + + "1beta1/projects/{project_id}/zones/{zone" + + "}/clusters/{cluster_id}:setMaintenancePo" + + "licy:\001*\022\313\001\n\025ListUsableSubnetworks\0226.goog" + + "le.container.v1beta1.ListUsableSubnetwor" + + "ksRequest\0327.google.container.v1beta1.Lis" + + "tUsableSubnetworksResponse\"A\202\323\344\223\002;\0229/v1b" + + "eta1/{parent=projects/*}/aggregated/usab" + + "leSubnetworks\022\240\001\n\rListLocations\022..google" + + ".container.v1beta1.ListLocationsRequest\032" + + "/.google.container.v1beta1.ListLocations" + + "Response\".\202\323\344\223\002(\022&/v1beta1/{parent=proje" + + "cts/*}/locationsB\272\001\n\034com.google.containe" + + "r.v1beta1B\023ClusterServiceProtoP\001ZAgoogle" + + ".golang.org/genproto/googleapis/containe" + + "r/v1beta1;container\252\002\036Google.Cloud.Conta" + + "iner.V1Beta1\312\002\036Google\\Cloud\\Container\\V1" + + "beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }, assigner); + internal_static_google_container_v1beta1_NodeConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_container_v1beta1_NodeConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NodeConfig_descriptor, + new java.lang.String[] { "MachineType", "DiskSizeGb", "OauthScopes", "ServiceAccount", "Metadata", "ImageType", "Labels", "LocalSsdCount", "Tags", "Preemptible", "Accelerators", "DiskType", "MinCpuPlatform", "WorkloadMetadataConfig", "Taints", }); + internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor = + internal_static_google_container_v1beta1_NodeConfig_descriptor.getNestedTypes().get(0); + internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor = + internal_static_google_container_v1beta1_NodeConfig_descriptor.getNestedTypes().get(1); + internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_container_v1beta1_NodeTaint_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NodeTaint_descriptor, + new java.lang.String[] { "Key", "Value", "Effect", }); + internal_static_google_container_v1beta1_MasterAuth_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_container_v1beta1_MasterAuth_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_MasterAuth_descriptor, + new java.lang.String[] { "Username", "Password", "ClientCertificateConfig", "ClusterCaCertificate", "ClientCertificate", "ClientKey", }); + internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_container_v1beta1_ClientCertificateConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor, + new java.lang.String[] { "IssueClientCertificate", }); + internal_static_google_container_v1beta1_AddonsConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_container_v1beta1_AddonsConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_AddonsConfig_descriptor, + new java.lang.String[] { "HttpLoadBalancing", "HorizontalPodAutoscaling", "KubernetesDashboard", "NetworkPolicyConfig", }); + internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_container_v1beta1_HttpLoadBalancing_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor, + new java.lang.String[] { "Disabled", }); + internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_container_v1beta1_HorizontalPodAutoscaling_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor, + new java.lang.String[] { "Disabled", }); + internal_static_google_container_v1beta1_KubernetesDashboard_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_container_v1beta1_KubernetesDashboard_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_KubernetesDashboard_descriptor, + new java.lang.String[] { "Disabled", }); + internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_container_v1beta1_NetworkPolicyConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor, + new java.lang.String[] { "Disabled", }); + internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor, + new java.lang.String[] { "EnablePrivateNodes", "EnablePrivateEndpoint", "MasterIpv4CidrBlock", "PrivateEndpoint", "PublicEndpoint", }); + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor, + new java.lang.String[] { "Enabled", "CidrBlocks", }); + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor = + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor.getNestedTypes().get(0); + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor, + new java.lang.String[] { "DisplayName", "CidrBlock", }); + internal_static_google_container_v1beta1_LegacyAbac_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_LegacyAbac_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_container_v1beta1_NetworkPolicy_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NetworkPolicy_descriptor, + new java.lang.String[] { "Provider", "Enabled", }); + internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_container_v1beta1_IPAllocationPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor, + new java.lang.String[] { "UseIpAliases", "CreateSubnetwork", "SubnetworkName", "ClusterIpv4Cidr", "NodeIpv4Cidr", "ServicesIpv4Cidr", "ClusterSecondaryRangeName", "ServicesSecondaryRangeName", "ClusterIpv4CidrBlock", "NodeIpv4CidrBlock", "ServicesIpv4CidrBlock", "AllowRouteOverlap", "TpuIpv4CidrBlock", }); + internal_static_google_container_v1beta1_BinaryAuthorization_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_container_v1beta1_BinaryAuthorization_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_BinaryAuthorization_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_container_v1beta1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_container_v1beta1_Cluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_Cluster_descriptor, + new java.lang.String[] { "Name", "Description", "InitialNodeCount", "NodeConfig", "MasterAuth", "LoggingService", "MonitoringService", "Network", "ClusterIpv4Cidr", "AddonsConfig", "Subnetwork", "NodePools", "Locations", "EnableKubernetesAlpha", "ResourceLabels", "LabelFingerprint", "LegacyAbac", "NetworkPolicy", "IpAllocationPolicy", "MasterAuthorizedNetworksConfig", "MaintenancePolicy", "BinaryAuthorization", "PodSecurityPolicyConfig", "Autoscaling", "NetworkConfig", "PrivateCluster", "MasterIpv4CidrBlock", "DefaultMaxPodsConstraint", "PrivateClusterConfig", "SelfLink", "Zone", "Endpoint", "InitialClusterVersion", "CurrentMasterVersion", "CurrentNodeVersion", "CreateTime", "Status", "StatusMessage", "NodeIpv4CidrSize", "ServicesIpv4Cidr", "InstanceGroupUrls", "CurrentNodeCount", "ExpireTime", "Location", "EnableTpu", "TpuIpv4CidrBlock", "Conditions", }); + internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor = + internal_static_google_container_v1beta1_Cluster_descriptor.getNestedTypes().get(0); + internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_container_v1beta1_ClusterUpdate_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ClusterUpdate_descriptor, + new java.lang.String[] { "DesiredNodeVersion", "DesiredMonitoringService", "DesiredAddonsConfig", "DesiredNodePoolId", "DesiredImageType", "DesiredNodePoolAutoscaling", "DesiredLocations", "DesiredMasterAuthorizedNetworksConfig", "DesiredPodSecurityPolicyConfig", "DesiredClusterAutoscaling", "DesiredBinaryAuthorization", "DesiredLoggingService", "DesiredMasterVersion", }); + internal_static_google_container_v1beta1_Operation_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_container_v1beta1_Operation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_Operation_descriptor, + new java.lang.String[] { "Name", "Zone", "OperationType", "Status", "Detail", "StatusMessage", "SelfLink", "TargetLink", "Location", "StartTime", "EndTime", "Progress", "ClusterConditions", "NodepoolConditions", }); + internal_static_google_container_v1beta1_OperationProgress_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_container_v1beta1_OperationProgress_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_OperationProgress_descriptor, + new java.lang.String[] { "Name", "Status", "Metrics", "Stages", }); + internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor = + internal_static_google_container_v1beta1_OperationProgress_descriptor.getNestedTypes().get(0); + internal_static_google_container_v1beta1_OperationProgress_Metric_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor, + new java.lang.String[] { "Name", "IntValue", "DoubleValue", "StringValue", "Value", }); + internal_static_google_container_v1beta1_CreateClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_container_v1beta1_CreateClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_CreateClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "Cluster", "Parent", }); + internal_static_google_container_v1beta1_GetClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_container_v1beta1_GetClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_GetClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Name", }); + internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_container_v1beta1_UpdateClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Update", "Name", }); + internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_container_v1beta1_UpdateNodePoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "NodeVersion", "ImageType", "Name", }); + internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Autoscaling", "Name", }); + internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_container_v1beta1_SetLoggingServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "LoggingService", "Name", }); + internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_container_v1beta1_SetMonitoringServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "MonitoringService", "Name", }); + internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_container_v1beta1_SetAddonsConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "AddonsConfig", "Name", }); + internal_static_google_container_v1beta1_SetLocationsRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_container_v1beta1_SetLocationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetLocationsRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Locations", "Name", }); + internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_container_v1beta1_UpdateMasterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "MasterVersion", "Name", }); + internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_container_v1beta1_SetMasterAuthRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Action", "Update", "Name", }); + internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_container_v1beta1_DeleteClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Name", }); + internal_static_google_container_v1beta1_ListClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_container_v1beta1_ListClustersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ListClustersRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "Parent", }); + internal_static_google_container_v1beta1_ListClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_container_v1beta1_ListClustersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ListClustersResponse_descriptor, + new java.lang.String[] { "Clusters", "MissingZones", }); + internal_static_google_container_v1beta1_GetOperationRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_container_v1beta1_GetOperationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_GetOperationRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "OperationId", "Name", }); + internal_static_google_container_v1beta1_ListOperationsRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_container_v1beta1_ListOperationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ListOperationsRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "Parent", }); + internal_static_google_container_v1beta1_CancelOperationRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_container_v1beta1_CancelOperationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_CancelOperationRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "OperationId", "Name", }); + internal_static_google_container_v1beta1_ListOperationsResponse_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_container_v1beta1_ListOperationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ListOperationsResponse_descriptor, + new java.lang.String[] { "Operations", "MissingZones", }); + internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_container_v1beta1_GetServerConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "Name", }); + internal_static_google_container_v1beta1_ServerConfig_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_container_v1beta1_ServerConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ServerConfig_descriptor, + new java.lang.String[] { "DefaultClusterVersion", "ValidNodeVersions", "DefaultImageType", "ValidImageTypes", "ValidMasterVersions", }); + internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_container_v1beta1_CreateNodePoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePool", "Parent", }); + internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_container_v1beta1_DeleteNodePoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Name", }); + internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_container_v1beta1_ListNodePoolsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Parent", }); + internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_container_v1beta1_GetNodePoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Name", }); + internal_static_google_container_v1beta1_NodePool_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_container_v1beta1_NodePool_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NodePool_descriptor, + new java.lang.String[] { "Name", "Config", "InitialNodeCount", "SelfLink", "Version", "InstanceGroupUrls", "Status", "StatusMessage", "Autoscaling", "Management", "MaxPodsConstraint", "Conditions", }); + internal_static_google_container_v1beta1_NodeManagement_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_container_v1beta1_NodeManagement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NodeManagement_descriptor, + new java.lang.String[] { "AutoUpgrade", "AutoRepair", "UpgradeOptions", }); + internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_container_v1beta1_AutoUpgradeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor, + new java.lang.String[] { "AutoUpgradeStartTime", "Description", }); + internal_static_google_container_v1beta1_MaintenancePolicy_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_container_v1beta1_MaintenancePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_MaintenancePolicy_descriptor, + new java.lang.String[] { "Window", }); + internal_static_google_container_v1beta1_MaintenanceWindow_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_MaintenanceWindow_descriptor, + new java.lang.String[] { "DailyMaintenanceWindow", "Policy", }); + internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_container_v1beta1_DailyMaintenanceWindow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor, + new java.lang.String[] { "StartTime", "Duration", }); + internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_container_v1beta1_SetNodePoolManagementRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Management", "Name", }); + internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_container_v1beta1_SetNodePoolSizeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "NodeCount", "Name", }); + internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Name", }); + internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_container_v1beta1_ListNodePoolsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor, + new java.lang.String[] { "NodePools", }); + internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_container_v1beta1_ClusterAutoscaling_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor, + new java.lang.String[] { "EnableNodeAutoprovisioning", "ResourceLimits", }); + internal_static_google_container_v1beta1_ResourceLimit_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_container_v1beta1_ResourceLimit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ResourceLimit_descriptor, + new java.lang.String[] { "ResourceType", "Minimum", "Maximum", }); + internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_container_v1beta1_NodePoolAutoscaling_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor, + new java.lang.String[] { "Enabled", "MinNodeCount", "MaxNodeCount", "Autoprovisioned", }); + internal_static_google_container_v1beta1_SetLabelsRequest_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetLabelsRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "ResourceLabels", "LabelFingerprint", "Name", }); + internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_descriptor = + internal_static_google_container_v1beta1_SetLabelsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_container_v1beta1_SetLegacyAbacRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Enabled", "Name", }); + internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_container_v1beta1_StartIPRotationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Name", "RotateCredentials", }); + internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_container_v1beta1_CompleteIPRotationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "Name", }); + internal_static_google_container_v1beta1_AcceleratorConfig_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_container_v1beta1_AcceleratorConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_AcceleratorConfig_descriptor, + new java.lang.String[] { "AcceleratorCount", "AcceleratorType", }); + internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_google_container_v1beta1_WorkloadMetadataConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor, + new java.lang.String[] { "NodeMetadata", }); + internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_google_container_v1beta1_SetNetworkPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "NetworkPolicy", "Name", }); + internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor, + new java.lang.String[] { "ProjectId", "Zone", "ClusterId", "MaintenancePolicy", "Name", }); + internal_static_google_container_v1beta1_ListLocationsRequest_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_google_container_v1beta1_ListLocationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ListLocationsRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_container_v1beta1_ListLocationsResponse_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_google_container_v1beta1_ListLocationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ListLocationsResponse_descriptor, + new java.lang.String[] { "Locations", "NextPageToken", }); + internal_static_google_container_v1beta1_Location_descriptor = + getDescriptor().getMessageTypes().get(67); + internal_static_google_container_v1beta1_Location_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_Location_descriptor, + new java.lang.String[] { "Type", "Name", "Recommended", }); + internal_static_google_container_v1beta1_StatusCondition_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_google_container_v1beta1_StatusCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_StatusCondition_descriptor, + new java.lang.String[] { "Code", "Message", }); + internal_static_google_container_v1beta1_NetworkConfig_descriptor = + getDescriptor().getMessageTypes().get(69); + internal_static_google_container_v1beta1_NetworkConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NetworkConfig_descriptor, + new java.lang.String[] { "Network", "Subnetwork", }); + internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor = + getDescriptor().getMessageTypes().get(70); + internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor = + getDescriptor().getMessageTypes().get(71); + internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor, + new java.lang.String[] { "Subnetworks", "NextPageToken", }); + internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor = + getDescriptor().getMessageTypes().get(72); + internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor, + new java.lang.String[] { "RangeName", "IpCidrRange", "Status", }); + internal_static_google_container_v1beta1_UsableSubnetwork_descriptor = + getDescriptor().getMessageTypes().get(73); + internal_static_google_container_v1beta1_UsableSubnetwork_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_UsableSubnetwork_descriptor, + new java.lang.String[] { "Subnetwork", "Network", "IpCidrRange", "SecondaryIpRanges", "StatusMessage", }); + internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor = + getDescriptor().getMessageTypes().get(74); + internal_static_google_container_v1beta1_MaxPodsConstraint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor, + new java.lang.String[] { "MaxPodsPerNode", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java new file mode 100644 index 000000000000..765b251c84e3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java @@ -0,0 +1,3268 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ClusterUpdate describes an update to the cluster. Exactly one update can
+ * be applied to a cluster with each request, so at most one field can be
+ * provided.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterUpdate} + */ +public final class ClusterUpdate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterUpdate) + ClusterUpdateOrBuilder { +private static final long serialVersionUID = 0L; + // Use ClusterUpdate.newBuilder() to construct. + private ClusterUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterUpdate() { + desiredNodeVersion_ = ""; + desiredMonitoringService_ = ""; + desiredNodePoolId_ = ""; + desiredImageType_ = ""; + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + desiredLoggingService_ = ""; + desiredMasterVersion_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClusterUpdate( + 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 34: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredNodeVersion_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredMonitoringService_ = s; + break; + } + case 50: { + com.google.container.v1beta1.AddonsConfig.Builder subBuilder = null; + if (desiredAddonsConfig_ != null) { + subBuilder = desiredAddonsConfig_.toBuilder(); + } + desiredAddonsConfig_ = input.readMessage(com.google.container.v1beta1.AddonsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredAddonsConfig_); + desiredAddonsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredNodePoolId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredImageType_ = s; + break; + } + case 74: { + com.google.container.v1beta1.NodePoolAutoscaling.Builder subBuilder = null; + if (desiredNodePoolAutoscaling_ != null) { + subBuilder = desiredNodePoolAutoscaling_.toBuilder(); + } + desiredNodePoolAutoscaling_ = input.readMessage(com.google.container.v1beta1.NodePoolAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredNodePoolAutoscaling_); + desiredNodePoolAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + desiredLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000040; + } + desiredLocations_.add(s); + break; + } + case 98: { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder subBuilder = null; + if (desiredMasterAuthorizedNetworksConfig_ != null) { + subBuilder = desiredMasterAuthorizedNetworksConfig_.toBuilder(); + } + desiredMasterAuthorizedNetworksConfig_ = input.readMessage(com.google.container.v1beta1.MasterAuthorizedNetworksConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredMasterAuthorizedNetworksConfig_); + desiredMasterAuthorizedNetworksConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 114: { + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder subBuilder = null; + if (desiredPodSecurityPolicyConfig_ != null) { + subBuilder = desiredPodSecurityPolicyConfig_.toBuilder(); + } + desiredPodSecurityPolicyConfig_ = input.readMessage(com.google.container.v1beta1.PodSecurityPolicyConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredPodSecurityPolicyConfig_); + desiredPodSecurityPolicyConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 122: { + com.google.container.v1beta1.ClusterAutoscaling.Builder subBuilder = null; + if (desiredClusterAutoscaling_ != null) { + subBuilder = desiredClusterAutoscaling_.toBuilder(); + } + desiredClusterAutoscaling_ = input.readMessage(com.google.container.v1beta1.ClusterAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredClusterAutoscaling_); + desiredClusterAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + com.google.container.v1beta1.BinaryAuthorization.Builder subBuilder = null; + if (desiredBinaryAuthorization_ != null) { + subBuilder = desiredBinaryAuthorization_.toBuilder(); + } + desiredBinaryAuthorization_ = input.readMessage(com.google.container.v1beta1.BinaryAuthorization.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredBinaryAuthorization_); + desiredBinaryAuthorization_ = subBuilder.buildPartial(); + } + + break; + } + case 154: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredLoggingService_ = s; + break; + } + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + + desiredMasterVersion_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + desiredLocations_ = desiredLocations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterUpdate.class, com.google.container.v1beta1.ClusterUpdate.Builder.class); + } + + private int bitField0_; + public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object desiredNodeVersion_; + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + */ + public java.lang.String getDesiredNodeVersion() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodeVersion_ = s; + return s; + } + } + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + */ + public com.google.protobuf.ByteString + getDesiredNodeVersionBytes() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_MONITORING_SERVICE_FIELD_NUMBER = 5; + private volatile java.lang.Object desiredMonitoringService_; + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string desired_monitoring_service = 5; + */ + public java.lang.String getDesiredMonitoringService() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMonitoringService_ = s; + return s; + } + } + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string desired_monitoring_service = 5; + */ + public com.google.protobuf.ByteString + getDesiredMonitoringServiceBytes() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredMonitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_ADDONS_CONFIG_FIELD_NUMBER = 6; + private com.google.container.v1beta1.AddonsConfig desiredAddonsConfig_; + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public boolean hasDesiredAddonsConfig() { + return desiredAddonsConfig_ != null; + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig() { + return desiredAddonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { + return getDesiredAddonsConfig(); + } + + public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object desiredNodePoolId_; + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + */ + public java.lang.String getDesiredNodePoolId() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodePoolId_ = s; + return s; + } + } + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + */ + public com.google.protobuf.ByteString + getDesiredNodePoolIdBytes() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredNodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_IMAGE_TYPE_FIELD_NUMBER = 8; + private volatile java.lang.Object desiredImageType_; + /** + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + */ + public java.lang.String getDesiredImageType() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredImageType_ = s; + return s; + } + } + /** + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + */ + public com.google.protobuf.ByteString + getDesiredImageTypeBytes() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; + private com.google.container.v1beta1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public boolean hasDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscaling_ != null; + } + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; + } + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder() { + return getDesiredNodePoolAutoscaling(); + } + + public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList desiredLocations_; + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + public com.google.protobuf.ProtocolStringList + getDesiredLocationsList() { + return desiredLocations_; + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + public int getDesiredLocationsCount() { + return desiredLocations_.size(); + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + public java.lang.String getDesiredLocations(int index) { + return desiredLocations_.get(index); + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + public com.google.protobuf.ByteString + getDesiredLocationsBytes(int index) { + return desiredLocations_.getByteString(index); + } + + public static final int DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 12; + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig_; + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public boolean hasDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfig_ != null; + } + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfig_ == null ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder() { + return getDesiredMasterAuthorizedNetworksConfig(); + } + + public static final int DESIRED_POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.PodSecurityPolicyConfig desiredPodSecurityPolicyConfig_; + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public boolean hasDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfig_ != null; + } + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfig_ == null ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : desiredPodSecurityPolicyConfig_; + } + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getDesiredPodSecurityPolicyConfigOrBuilder() { + return getDesiredPodSecurityPolicyConfig(); + } + + public static final int DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER = 15; + private com.google.container.v1beta1.ClusterAutoscaling desiredClusterAutoscaling_; + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public boolean hasDesiredClusterAutoscaling() { + return desiredClusterAutoscaling_ != null; + } + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling() { + return desiredClusterAutoscaling_ == null ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder() { + return getDesiredClusterAutoscaling(); + } + + public static final int DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER = 16; + private com.google.container.v1beta1.BinaryAuthorization desiredBinaryAuthorization_; + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public boolean hasDesiredBinaryAuthorization() { + return desiredBinaryAuthorization_ != null; + } + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization() { + return desiredBinaryAuthorization_ == null ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder() { + return getDesiredBinaryAuthorization(); + } + + public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; + private volatile java.lang.Object desiredLoggingService_; + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * string desired_logging_service = 19; + */ + public java.lang.String getDesiredLoggingService() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredLoggingService_ = s; + return s; + } + } + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * string desired_logging_service = 19; + */ + public com.google.protobuf.ByteString + getDesiredLoggingServiceBytes() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredLoggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; + private volatile java.lang.Object desiredMasterVersion_; + /** + *
+   * The Kubernetes version to change the master to. The only valid value is the
+   * latest supported version.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + */ + public java.lang.String getDesiredMasterVersion() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMasterVersion_ = s; + return s; + } + } + /** + *
+   * The Kubernetes version to change the master to. The only valid value is the
+   * latest supported version.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + */ + public com.google.protobuf.ByteString + getDesiredMasterVersionBytes() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredMasterVersion_ = 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 (!getDesiredNodeVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desiredNodeVersion_); + } + if (!getDesiredMonitoringServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, desiredMonitoringService_); + } + if (desiredAddonsConfig_ != null) { + output.writeMessage(6, getDesiredAddonsConfig()); + } + if (!getDesiredNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, desiredNodePoolId_); + } + if (!getDesiredImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, desiredImageType_); + } + if (desiredNodePoolAutoscaling_ != null) { + output.writeMessage(9, getDesiredNodePoolAutoscaling()); + } + for (int i = 0; i < desiredLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredPodSecurityPolicyConfig_ != null) { + output.writeMessage(14, getDesiredPodSecurityPolicyConfig()); + } + if (desiredClusterAutoscaling_ != null) { + output.writeMessage(15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + output.writeMessage(16, getDesiredBinaryAuthorization()); + } + if (!getDesiredLoggingServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); + } + if (!getDesiredMasterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDesiredNodeVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desiredNodeVersion_); + } + if (!getDesiredMonitoringServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, desiredMonitoringService_); + } + if (desiredAddonsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDesiredAddonsConfig()); + } + if (!getDesiredNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, desiredNodePoolId_); + } + if (!getDesiredImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, desiredImageType_); + } + if (desiredNodePoolAutoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDesiredNodePoolAutoscaling()); + } + { + int dataSize = 0; + for (int i = 0; i < desiredLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(desiredLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getDesiredLocationsList().size(); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredPodSecurityPolicyConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getDesiredPodSecurityPolicyConfig()); + } + if (desiredClusterAutoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getDesiredBinaryAuthorization()); + } + if (!getDesiredLoggingServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); + } + if (!getDesiredMasterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); + } + 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.container.v1beta1.ClusterUpdate)) { + return super.equals(obj); + } + com.google.container.v1beta1.ClusterUpdate other = (com.google.container.v1beta1.ClusterUpdate) obj; + + boolean result = true; + result = result && getDesiredNodeVersion() + .equals(other.getDesiredNodeVersion()); + result = result && getDesiredMonitoringService() + .equals(other.getDesiredMonitoringService()); + result = result && (hasDesiredAddonsConfig() == other.hasDesiredAddonsConfig()); + if (hasDesiredAddonsConfig()) { + result = result && getDesiredAddonsConfig() + .equals(other.getDesiredAddonsConfig()); + } + result = result && getDesiredNodePoolId() + .equals(other.getDesiredNodePoolId()); + result = result && getDesiredImageType() + .equals(other.getDesiredImageType()); + result = result && (hasDesiredNodePoolAutoscaling() == other.hasDesiredNodePoolAutoscaling()); + if (hasDesiredNodePoolAutoscaling()) { + result = result && getDesiredNodePoolAutoscaling() + .equals(other.getDesiredNodePoolAutoscaling()); + } + result = result && getDesiredLocationsList() + .equals(other.getDesiredLocationsList()); + result = result && (hasDesiredMasterAuthorizedNetworksConfig() == other.hasDesiredMasterAuthorizedNetworksConfig()); + if (hasDesiredMasterAuthorizedNetworksConfig()) { + result = result && getDesiredMasterAuthorizedNetworksConfig() + .equals(other.getDesiredMasterAuthorizedNetworksConfig()); + } + result = result && (hasDesiredPodSecurityPolicyConfig() == other.hasDesiredPodSecurityPolicyConfig()); + if (hasDesiredPodSecurityPolicyConfig()) { + result = result && getDesiredPodSecurityPolicyConfig() + .equals(other.getDesiredPodSecurityPolicyConfig()); + } + result = result && (hasDesiredClusterAutoscaling() == other.hasDesiredClusterAutoscaling()); + if (hasDesiredClusterAutoscaling()) { + result = result && getDesiredClusterAutoscaling() + .equals(other.getDesiredClusterAutoscaling()); + } + result = result && (hasDesiredBinaryAuthorization() == other.hasDesiredBinaryAuthorization()); + if (hasDesiredBinaryAuthorization()) { + result = result && getDesiredBinaryAuthorization() + .equals(other.getDesiredBinaryAuthorization()); + } + result = result && getDesiredLoggingService() + .equals(other.getDesiredLoggingService()); + result = result && getDesiredMasterVersion() + .equals(other.getDesiredMasterVersion()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESIRED_NODE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodeVersion().hashCode(); + hash = (37 * hash) + DESIRED_MONITORING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMonitoringService().hashCode(); + if (hasDesiredAddonsConfig()) { + hash = (37 * hash) + DESIRED_ADDONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredAddonsConfig().hashCode(); + } + hash = (37 * hash) + DESIRED_NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolId().hashCode(); + hash = (37 * hash) + DESIRED_IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDesiredImageType().hashCode(); + if (hasDesiredNodePoolAutoscaling()) { + hash = (37 * hash) + DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolAutoscaling().hashCode(); + } + if (getDesiredLocationsCount() > 0) { + hash = (37 * hash) + DESIRED_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredLocationsList().hashCode(); + } + if (hasDesiredMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMasterAuthorizedNetworksConfig().hashCode(); + } + if (hasDesiredPodSecurityPolicyConfig()) { + hash = (37 * hash) + DESIRED_POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredPodSecurityPolicyConfig().hashCode(); + } + if (hasDesiredClusterAutoscaling()) { + hash = (37 * hash) + DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getDesiredClusterAutoscaling().hashCode(); + } + if (hasDesiredBinaryAuthorization()) { + hash = (37 * hash) + DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredBinaryAuthorization().hashCode(); + } + hash = (37 * hash) + DESIRED_LOGGING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getDesiredLoggingService().hashCode(); + hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMasterVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ClusterUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ClusterUpdate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ClusterUpdate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ClusterUpdate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ClusterUpdate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ClusterUpdate describes an update to the cluster. Exactly one update can
+   * be applied to a cluster with each request, so at most one field can be
+   * provided.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterUpdate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ClusterUpdate) + com.google.container.v1beta1.ClusterUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterUpdate.class, com.google.container.v1beta1.ClusterUpdate.Builder.class); + } + + // Construct using com.google.container.v1beta1.ClusterUpdate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + desiredNodeVersion_ = ""; + + desiredMonitoringService_ = ""; + + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = null; + } else { + desiredAddonsConfig_ = null; + desiredAddonsConfigBuilder_ = null; + } + desiredNodePoolId_ = ""; + + desiredImageType_ = ""; + + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = null; + } else { + desiredNodePoolAutoscaling_ = null; + desiredNodePoolAutoscalingBuilder_ = null; + } + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = null; + } else { + desiredMasterAuthorizedNetworksConfig_ = null; + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = null; + } else { + desiredPodSecurityPolicyConfig_ = null; + desiredPodSecurityPolicyConfigBuilder_ = null; + } + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = null; + } else { + desiredClusterAutoscaling_ = null; + desiredClusterAutoscalingBuilder_ = null; + } + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = null; + } else { + desiredBinaryAuthorization_ = null; + desiredBinaryAuthorizationBuilder_ = null; + } + desiredLoggingService_ = ""; + + desiredMasterVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate getDefaultInstanceForType() { + return com.google.container.v1beta1.ClusterUpdate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate build() { + com.google.container.v1beta1.ClusterUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate buildPartial() { + com.google.container.v1beta1.ClusterUpdate result = new com.google.container.v1beta1.ClusterUpdate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.desiredNodeVersion_ = desiredNodeVersion_; + result.desiredMonitoringService_ = desiredMonitoringService_; + if (desiredAddonsConfigBuilder_ == null) { + result.desiredAddonsConfig_ = desiredAddonsConfig_; + } else { + result.desiredAddonsConfig_ = desiredAddonsConfigBuilder_.build(); + } + result.desiredNodePoolId_ = desiredNodePoolId_; + result.desiredImageType_ = desiredImageType_; + if (desiredNodePoolAutoscalingBuilder_ == null) { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; + } else { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_.build(); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + desiredLocations_ = desiredLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.desiredLocations_ = desiredLocations_; + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfig_; + } else { + result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfigBuilder_.build(); + } + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfig_; + } else { + result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfigBuilder_.build(); + } + if (desiredClusterAutoscalingBuilder_ == null) { + result.desiredClusterAutoscaling_ = desiredClusterAutoscaling_; + } else { + result.desiredClusterAutoscaling_ = desiredClusterAutoscalingBuilder_.build(); + } + if (desiredBinaryAuthorizationBuilder_ == null) { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorization_; + } else { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorizationBuilder_.build(); + } + result.desiredLoggingService_ = desiredLoggingService_; + result.desiredMasterVersion_ = desiredMasterVersion_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ClusterUpdate) { + return mergeFrom((com.google.container.v1beta1.ClusterUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClusterUpdate other) { + if (other == com.google.container.v1beta1.ClusterUpdate.getDefaultInstance()) return this; + if (!other.getDesiredNodeVersion().isEmpty()) { + desiredNodeVersion_ = other.desiredNodeVersion_; + onChanged(); + } + if (!other.getDesiredMonitoringService().isEmpty()) { + desiredMonitoringService_ = other.desiredMonitoringService_; + onChanged(); + } + if (other.hasDesiredAddonsConfig()) { + mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); + } + if (!other.getDesiredNodePoolId().isEmpty()) { + desiredNodePoolId_ = other.desiredNodePoolId_; + onChanged(); + } + if (!other.getDesiredImageType().isEmpty()) { + desiredImageType_ = other.desiredImageType_; + onChanged(); + } + if (other.hasDesiredNodePoolAutoscaling()) { + mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); + } + if (!other.desiredLocations_.isEmpty()) { + if (desiredLocations_.isEmpty()) { + desiredLocations_ = other.desiredLocations_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureDesiredLocationsIsMutable(); + desiredLocations_.addAll(other.desiredLocations_); + } + onChanged(); + } + if (other.hasDesiredMasterAuthorizedNetworksConfig()) { + mergeDesiredMasterAuthorizedNetworksConfig(other.getDesiredMasterAuthorizedNetworksConfig()); + } + if (other.hasDesiredPodSecurityPolicyConfig()) { + mergeDesiredPodSecurityPolicyConfig(other.getDesiredPodSecurityPolicyConfig()); + } + if (other.hasDesiredClusterAutoscaling()) { + mergeDesiredClusterAutoscaling(other.getDesiredClusterAutoscaling()); + } + if (other.hasDesiredBinaryAuthorization()) { + mergeDesiredBinaryAuthorization(other.getDesiredBinaryAuthorization()); + } + if (!other.getDesiredLoggingService().isEmpty()) { + desiredLoggingService_ = other.desiredLoggingService_; + onChanged(); + } + if (!other.getDesiredMasterVersion().isEmpty()) { + desiredMasterVersion_ = other.desiredMasterVersion_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ClusterUpdate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ClusterUpdate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object desiredNodeVersion_ = ""; + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + */ + public java.lang.String getDesiredNodeVersion() { + java.lang.Object ref = desiredNodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + */ + public com.google.protobuf.ByteString + getDesiredNodeVersionBytes() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + */ + public Builder setDesiredNodeVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredNodeVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + */ + public Builder clearDesiredNodeVersion() { + + desiredNodeVersion_ = getDefaultInstance().getDesiredNodeVersion(); + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + */ + public Builder setDesiredNodeVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredNodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredMonitoringService_ = ""; + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string desired_monitoring_service = 5; + */ + public java.lang.String getDesiredMonitoringService() { + java.lang.Object ref = desiredMonitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMonitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string desired_monitoring_service = 5; + */ + public com.google.protobuf.ByteString + getDesiredMonitoringServiceBytes() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredMonitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string desired_monitoring_service = 5; + */ + public Builder setDesiredMonitoringService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredMonitoringService_ = value; + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string desired_monitoring_service = 5; + */ + public Builder clearDesiredMonitoringService() { + + desiredMonitoringService_ = getDefaultInstance().getDesiredMonitoringService(); + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string desired_monitoring_service = 5; + */ + public Builder setDesiredMonitoringServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredMonitoringService_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AddonsConfig desiredAddonsConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> desiredAddonsConfigBuilder_; + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public boolean hasDesiredAddonsConfig() { + return desiredAddonsConfigBuilder_ != null || desiredAddonsConfig_ != null; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig() { + if (desiredAddonsConfigBuilder_ == null) { + return desiredAddonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } else { + return desiredAddonsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder setDesiredAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (desiredAddonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAddonsConfig_ = value; + onChanged(); + } else { + desiredAddonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder setDesiredAddonsConfig( + com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder mergeDesiredAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (desiredAddonsConfigBuilder_ == null) { + if (desiredAddonsConfig_ != null) { + desiredAddonsConfig_ = + com.google.container.v1beta1.AddonsConfig.newBuilder(desiredAddonsConfig_).mergeFrom(value).buildPartial(); + } else { + desiredAddonsConfig_ = value; + } + onChanged(); + } else { + desiredAddonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder clearDesiredAddonsConfig() { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = null; + onChanged(); + } else { + desiredAddonsConfig_ = null; + desiredAddonsConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1beta1.AddonsConfig.Builder getDesiredAddonsConfigBuilder() { + + onChanged(); + return getDesiredAddonsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { + if (desiredAddonsConfigBuilder_ != null) { + return desiredAddonsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAddonsConfig_ == null ? + com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> + getDesiredAddonsConfigFieldBuilder() { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder>( + getDesiredAddonsConfig(), + getParentForChildren(), + isClean()); + desiredAddonsConfig_ = null; + } + return desiredAddonsConfigBuilder_; + } + + private java.lang.Object desiredNodePoolId_ = ""; + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + */ + public java.lang.String getDesiredNodePoolId() { + java.lang.Object ref = desiredNodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + */ + public com.google.protobuf.ByteString + getDesiredNodePoolIdBytes() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredNodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + */ + public Builder setDesiredNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredNodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + */ + public Builder clearDesiredNodePoolId() { + + desiredNodePoolId_ = getDefaultInstance().getDesiredNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + */ + public Builder setDesiredNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredNodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredImageType_ = ""; + /** + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + */ + public java.lang.String getDesiredImageType() { + java.lang.Object ref = desiredImageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredImageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + */ + public com.google.protobuf.ByteString + getDesiredImageTypeBytes() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + */ + public Builder setDesiredImageType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredImageType_ = value; + onChanged(); + return this; + } + /** + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + */ + public Builder clearDesiredImageType() { + + desiredImageType_ = getDefaultInstance().getDesiredImageType(); + onChanged(); + return this; + } + /** + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + */ + public Builder setDesiredImageTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredImageType_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolAutoscaling desiredNodePoolAutoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> desiredNodePoolAutoscalingBuilder_; + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public boolean hasDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscalingBuilder_ != null || desiredNodePoolAutoscaling_ != null; + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + return desiredNodePoolAutoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; + } else { + return desiredNodePoolAutoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolAutoscaling_ = value; + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder mergeDesiredNodePoolAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (desiredNodePoolAutoscaling_ != null) { + desiredNodePoolAutoscaling_ = + com.google.container.v1beta1.NodePoolAutoscaling.newBuilder(desiredNodePoolAutoscaling_).mergeFrom(value).buildPartial(); + } else { + desiredNodePoolAutoscaling_ = value; + } + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder clearDesiredNodePoolAutoscaling() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = null; + onChanged(); + } else { + desiredNodePoolAutoscaling_ = null; + desiredNodePoolAutoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1beta1.NodePoolAutoscaling.Builder getDesiredNodePoolAutoscalingBuilder() { + + onChanged(); + return getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder() { + if (desiredNodePoolAutoscalingBuilder_ != null) { + return desiredNodePoolAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolAutoscaling_ == null ? + com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; + } + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + getDesiredNodePoolAutoscalingFieldBuilder() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( + getDesiredNodePoolAutoscaling(), + getParentForChildren(), + isClean()); + desiredNodePoolAutoscaling_ = null; + } + return desiredNodePoolAutoscalingBuilder_; + } + + private com.google.protobuf.LazyStringList desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDesiredLocationsIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); + bitField0_ |= 0x00000040; + } + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public com.google.protobuf.ProtocolStringList + getDesiredLocationsList() { + return desiredLocations_.getUnmodifiableView(); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public int getDesiredLocationsCount() { + return desiredLocations_.size(); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public java.lang.String getDesiredLocations(int index) { + return desiredLocations_.get(index); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public com.google.protobuf.ByteString + getDesiredLocationsBytes(int index) { + return desiredLocations_.getByteString(index); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public Builder setDesiredLocations( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDesiredLocationsIsMutable(); + desiredLocations_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public Builder addDesiredLocations( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(value); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public Builder addAllDesiredLocations( + java.lang.Iterable values) { + ensureDesiredLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, desiredLocations_); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public Builder clearDesiredLocations() { + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string desired_locations = 10; + */ + public Builder addDesiredLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(value); + onChanged(); + return this; + } + + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> desiredMasterAuthorizedNetworksConfigBuilder_; + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public boolean hasDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfigBuilder_ != null || desiredMasterAuthorizedNetworksConfig_ != null; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + return desiredMasterAuthorizedNetworksConfig_ == null ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } else { + return desiredMasterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder setDesiredMasterAuthorizedNetworksConfig(com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMasterAuthorizedNetworksConfig_ = value; + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder setDesiredMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder mergeDesiredMasterAuthorizedNetworksConfig(com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + if (desiredMasterAuthorizedNetworksConfig_ != null) { + desiredMasterAuthorizedNetworksConfig_ = + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.newBuilder(desiredMasterAuthorizedNetworksConfig_).mergeFrom(value).buildPartial(); + } else { + desiredMasterAuthorizedNetworksConfig_ = value; + } + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder clearDesiredMasterAuthorizedNetworksConfig() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = null; + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfig_ = null; + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder getDesiredMasterAuthorizedNetworksConfigBuilder() { + + onChanged(); + return getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { + return desiredMasterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredMasterAuthorizedNetworksConfig_ == null ? + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> + getDesiredMasterAuthorizedNetworksConfigFieldBuilder() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder>( + getDesiredMasterAuthorizedNetworksConfig(), + getParentForChildren(), + isClean()); + desiredMasterAuthorizedNetworksConfig_ = null; + } + return desiredMasterAuthorizedNetworksConfigBuilder_; + } + + private com.google.container.v1beta1.PodSecurityPolicyConfig desiredPodSecurityPolicyConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> desiredPodSecurityPolicyConfigBuilder_; + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public boolean hasDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfigBuilder_ != null || desiredPodSecurityPolicyConfig_ != null; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + return desiredPodSecurityPolicyConfig_ == null ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : desiredPodSecurityPolicyConfig_; + } else { + return desiredPodSecurityPolicyConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public Builder setDesiredPodSecurityPolicyConfig(com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredPodSecurityPolicyConfig_ = value; + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public Builder setDesiredPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder builderForValue) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public Builder mergeDesiredPodSecurityPolicyConfig(com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + if (desiredPodSecurityPolicyConfig_ != null) { + desiredPodSecurityPolicyConfig_ = + com.google.container.v1beta1.PodSecurityPolicyConfig.newBuilder(desiredPodSecurityPolicyConfig_).mergeFrom(value).buildPartial(); + } else { + desiredPodSecurityPolicyConfig_ = value; + } + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public Builder clearDesiredPodSecurityPolicyConfig() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = null; + onChanged(); + } else { + desiredPodSecurityPolicyConfig_ = null; + desiredPodSecurityPolicyConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig.Builder getDesiredPodSecurityPolicyConfigBuilder() { + + onChanged(); + return getDesiredPodSecurityPolicyConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getDesiredPodSecurityPolicyConfigOrBuilder() { + if (desiredPodSecurityPolicyConfigBuilder_ != null) { + return desiredPodSecurityPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredPodSecurityPolicyConfig_ == null ? + com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : desiredPodSecurityPolicyConfig_; + } + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> + getDesiredPodSecurityPolicyConfigFieldBuilder() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder>( + getDesiredPodSecurityPolicyConfig(), + getParentForChildren(), + isClean()); + desiredPodSecurityPolicyConfig_ = null; + } + return desiredPodSecurityPolicyConfigBuilder_; + } + + private com.google.container.v1beta1.ClusterAutoscaling desiredClusterAutoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder> desiredClusterAutoscalingBuilder_; + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public boolean hasDesiredClusterAutoscaling() { + return desiredClusterAutoscalingBuilder_ != null || desiredClusterAutoscaling_ != null; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling() { + if (desiredClusterAutoscalingBuilder_ == null) { + return desiredClusterAutoscaling_ == null ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } else { + return desiredClusterAutoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder setDesiredClusterAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredClusterAutoscaling_ = value; + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder setDesiredClusterAutoscaling( + com.google.container.v1beta1.ClusterAutoscaling.Builder builderForValue) { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder mergeDesiredClusterAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (desiredClusterAutoscaling_ != null) { + desiredClusterAutoscaling_ = + com.google.container.v1beta1.ClusterAutoscaling.newBuilder(desiredClusterAutoscaling_).mergeFrom(value).buildPartial(); + } else { + desiredClusterAutoscaling_ = value; + } + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder clearDesiredClusterAutoscaling() { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = null; + onChanged(); + } else { + desiredClusterAutoscaling_ = null; + desiredClusterAutoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1beta1.ClusterAutoscaling.Builder getDesiredClusterAutoscalingBuilder() { + + onChanged(); + return getDesiredClusterAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder() { + if (desiredClusterAutoscalingBuilder_ != null) { + return desiredClusterAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredClusterAutoscaling_ == null ? + com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder> + getDesiredClusterAutoscalingFieldBuilder() { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder>( + getDesiredClusterAutoscaling(), + getParentForChildren(), + isClean()); + desiredClusterAutoscaling_ = null; + } + return desiredClusterAutoscalingBuilder_; + } + + private com.google.container.v1beta1.BinaryAuthorization desiredBinaryAuthorization_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder> desiredBinaryAuthorizationBuilder_; + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public boolean hasDesiredBinaryAuthorization() { + return desiredBinaryAuthorizationBuilder_ != null || desiredBinaryAuthorization_ != null; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization() { + if (desiredBinaryAuthorizationBuilder_ == null) { + return desiredBinaryAuthorization_ == null ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } else { + return desiredBinaryAuthorizationBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder setDesiredBinaryAuthorization(com.google.container.v1beta1.BinaryAuthorization value) { + if (desiredBinaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredBinaryAuthorization_ = value; + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder setDesiredBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization.Builder builderForValue) { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = builderForValue.build(); + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder mergeDesiredBinaryAuthorization(com.google.container.v1beta1.BinaryAuthorization value) { + if (desiredBinaryAuthorizationBuilder_ == null) { + if (desiredBinaryAuthorization_ != null) { + desiredBinaryAuthorization_ = + com.google.container.v1beta1.BinaryAuthorization.newBuilder(desiredBinaryAuthorization_).mergeFrom(value).buildPartial(); + } else { + desiredBinaryAuthorization_ = value; + } + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder clearDesiredBinaryAuthorization() { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = null; + onChanged(); + } else { + desiredBinaryAuthorization_ = null; + desiredBinaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1beta1.BinaryAuthorization.Builder getDesiredBinaryAuthorizationBuilder() { + + onChanged(); + return getDesiredBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder() { + if (desiredBinaryAuthorizationBuilder_ != null) { + return desiredBinaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return desiredBinaryAuthorization_ == null ? + com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder> + getDesiredBinaryAuthorizationFieldBuilder() { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder>( + getDesiredBinaryAuthorization(), + getParentForChildren(), + isClean()); + desiredBinaryAuthorization_ = null; + } + return desiredBinaryAuthorizationBuilder_; + } + + private java.lang.Object desiredLoggingService_ = ""; + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * string desired_logging_service = 19; + */ + public java.lang.String getDesiredLoggingService() { + java.lang.Object ref = desiredLoggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredLoggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * string desired_logging_service = 19; + */ + public com.google.protobuf.ByteString + getDesiredLoggingServiceBytes() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredLoggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * string desired_logging_service = 19; + */ + public Builder setDesiredLoggingService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredLoggingService_ = value; + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * string desired_logging_service = 19; + */ + public Builder clearDesiredLoggingService() { + + desiredLoggingService_ = getDefaultInstance().getDesiredLoggingService(); + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model in Stackdriver
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * string desired_logging_service = 19; + */ + public Builder setDesiredLoggingServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredLoggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredMasterVersion_ = ""; + /** + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + */ + public java.lang.String getDesiredMasterVersion() { + java.lang.Object ref = desiredMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + */ + public com.google.protobuf.ByteString + getDesiredMasterVersionBytes() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desiredMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + */ + public Builder setDesiredMasterVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredMasterVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + */ + public Builder clearDesiredMasterVersion() { + + desiredMasterVersion_ = getDefaultInstance().getDesiredMasterVersion(); + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + */ + public Builder setDesiredMasterVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredMasterVersion_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ClusterUpdate) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClusterUpdate) + private static final com.google.container.v1beta1.ClusterUpdate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ClusterUpdate(); + } + + public static com.google.container.v1beta1.ClusterUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterUpdate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java new file mode 100644 index 000000000000..d922acfd5fe2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java @@ -0,0 +1,391 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ClusterUpdateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterUpdate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + */ + java.lang.String getDesiredNodeVersion(); + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + */ + com.google.protobuf.ByteString + getDesiredNodeVersionBytes(); + + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string desired_monitoring_service = 5; + */ + java.lang.String getDesiredMonitoringService(); + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string desired_monitoring_service = 5; + */ + com.google.protobuf.ByteString + getDesiredMonitoringServiceBytes(); + + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + boolean hasDesiredAddonsConfig(); + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig(); + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder(); + + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + */ + java.lang.String getDesiredNodePoolId(); + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + */ + com.google.protobuf.ByteString + getDesiredNodePoolIdBytes(); + + /** + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + */ + java.lang.String getDesiredImageType(); + /** + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + */ + com.google.protobuf.ByteString + getDesiredImageTypeBytes(); + + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + boolean hasDesiredNodePoolAutoscaling(); + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling(); + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder(); + + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + java.util.List + getDesiredLocationsList(); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + int getDesiredLocationsCount(); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + java.lang.String getDesiredLocations(int index); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string desired_locations = 10; + */ + com.google.protobuf.ByteString + getDesiredLocationsBytes(int index); + + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + boolean hasDesiredMasterAuthorizedNetworksConfig(); + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig(); + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder(); + + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + boolean hasDesiredPodSecurityPolicyConfig(); + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + com.google.container.v1beta1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig(); + /** + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getDesiredPodSecurityPolicyConfigOrBuilder(); + + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + boolean hasDesiredClusterAutoscaling(); + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling(); + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + com.google.container.v1beta1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder(); + + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + boolean hasDesiredBinaryAuthorization(); + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization(); + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + com.google.container.v1beta1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder(); + + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * string desired_logging_service = 19; + */ + java.lang.String getDesiredLoggingService(); + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model in Stackdriver
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * string desired_logging_service = 19; + */ + com.google.protobuf.ByteString + getDesiredLoggingServiceBytes(); + + /** + *
+   * The Kubernetes version to change the master to. The only valid value is the
+   * latest supported version.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + */ + java.lang.String getDesiredMasterVersion(); + /** + *
+   * The Kubernetes version to change the master to. The only valid value is the
+   * latest supported version.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + */ + com.google.protobuf.ByteString + getDesiredMasterVersionBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java new file mode 100644 index 000000000000..9ad685b04696 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java @@ -0,0 +1,1091 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CompleteIPRotationRequest} + */ +public final class CompleteIPRotationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CompleteIPRotationRequest) + CompleteIPRotationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CompleteIPRotationRequest.newBuilder() to construct. + private CompleteIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompleteIPRotationRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompleteIPRotationRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CompleteIPRotationRequest.class, com.google.container.v1beta1.CompleteIPRotationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1beta1.CompleteIPRotationRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.CompleteIPRotationRequest other = (com.google.container.v1beta1.CompleteIPRotationRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().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.container.v1beta1.CompleteIPRotationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.CompleteIPRotationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CompleteIPRotationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CompleteIPRotationRequest) + com.google.container.v1beta1.CompleteIPRotationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CompleteIPRotationRequest.class, com.google.container.v1beta1.CompleteIPRotationRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.CompleteIPRotationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CompleteIPRotationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest build() { + com.google.container.v1beta1.CompleteIPRotationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest buildPartial() { + com.google.container.v1beta1.CompleteIPRotationRequest result = new com.google.container.v1beta1.CompleteIPRotationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.CompleteIPRotationRequest) { + return mergeFrom((com.google.container.v1beta1.CompleteIPRotationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CompleteIPRotationRequest other) { + if (other == com.google.container.v1beta1.CompleteIPRotationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.CompleteIPRotationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.CompleteIPRotationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CompleteIPRotationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CompleteIPRotationRequest) + private static final com.google.container.v1beta1.CompleteIPRotationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CompleteIPRotationRequest(); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteIPRotationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteIPRotationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java new file mode 100644 index 000000000000..cfab41ada225 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface CompleteIPRotationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CompleteIPRotationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java new file mode 100644 index 000000000000..a3ed66d54e63 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java @@ -0,0 +1,1170 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * CreateClusterRequest creates a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CreateClusterRequest} + */ +public final class CreateClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CreateClusterRequest) + CreateClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateClusterRequest.newBuilder() to construct. + private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateClusterRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateClusterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + com.google.container.v1beta1.Cluster.Builder subBuilder = null; + if (cluster_ != null) { + subBuilder = cluster_.toBuilder(); + } + cluster_ = input.readMessage(com.google.container.v1beta1.Cluster.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cluster_); + cluster_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CreateClusterRequest.class, com.google.container.v1beta1.CreateClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 3; + private com.google.container.v1beta1.Cluster cluster_; + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public boolean hasCluster() { + return cluster_ != null; + } + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public com.google.container.v1beta1.Cluster getCluster() { + return cluster_ == null ? com.google.container.v1beta1.Cluster.getDefaultInstance() : cluster_; + } + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public com.google.container.v1beta1.ClusterOrBuilder getClusterOrBuilder() { + return getCluster(); + } + + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (cluster_ != null) { + output.writeMessage(3, getCluster()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (cluster_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCluster()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } + 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.container.v1beta1.CreateClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.CreateClusterRequest other = (com.google.container.v1beta1.CreateClusterRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && (hasCluster() == other.hasCluster()); + if (hasCluster()) { + result = result && getCluster() + .equals(other.getCluster()); + } + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + if (hasCluster()) { + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CreateClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CreateClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.CreateClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CreateClusterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.CreateClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateClusterRequest creates a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CreateClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CreateClusterRequest) + com.google.container.v1beta1.CreateClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CreateClusterRequest.class, com.google.container.v1beta1.CreateClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.CreateClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + if (clusterBuilder_ == null) { + cluster_ = null; + } else { + cluster_ = null; + clusterBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CreateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest build() { + com.google.container.v1beta1.CreateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest buildPartial() { + com.google.container.v1beta1.CreateClusterRequest result = new com.google.container.v1beta1.CreateClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + if (clusterBuilder_ == null) { + result.cluster_ = cluster_; + } else { + result.cluster_ = clusterBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.CreateClusterRequest) { + return mergeFrom((com.google.container.v1beta1.CreateClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CreateClusterRequest other) { + if (other == com.google.container.v1beta1.CreateClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.CreateClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.CreateClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.Cluster cluster_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Cluster, com.google.container.v1beta1.Cluster.Builder, com.google.container.v1beta1.ClusterOrBuilder> clusterBuilder_; + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public boolean hasCluster() { + return clusterBuilder_ != null || cluster_ != null; + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public com.google.container.v1beta1.Cluster getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null ? com.google.container.v1beta1.Cluster.getDefaultInstance() : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public Builder setCluster(com.google.container.v1beta1.Cluster value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + onChanged(); + } else { + clusterBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public Builder setCluster( + com.google.container.v1beta1.Cluster.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + onChanged(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public Builder mergeCluster(com.google.container.v1beta1.Cluster value) { + if (clusterBuilder_ == null) { + if (cluster_ != null) { + cluster_ = + com.google.container.v1beta1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); + } else { + cluster_ = value; + } + onChanged(); + } else { + clusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public Builder clearCluster() { + if (clusterBuilder_ == null) { + cluster_ = null; + onChanged(); + } else { + cluster_ = null; + clusterBuilder_ = null; + } + + return this; + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public com.google.container.v1beta1.Cluster.Builder getClusterBuilder() { + + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + public com.google.container.v1beta1.ClusterOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null ? + com.google.container.v1beta1.Cluster.getDefaultInstance() : cluster_; + } + } + /** + *
+     * A [cluster
+     * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+     * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Cluster, com.google.container.v1beta1.Cluster.Builder, com.google.container.v1beta1.ClusterOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Cluster, com.google.container.v1beta1.Cluster.Builder, com.google.container.v1beta1.ClusterOrBuilder>( + getCluster(), + getParentForChildren(), + isClean()); + cluster_ = null; + } + return clusterBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CreateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CreateClusterRequest) + private static final com.google.container.v1beta1.CreateClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CreateClusterRequest(); + } + + public static com.google.container.v1beta1.CreateClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java new file mode 100644 index 000000000000..efcda1dcf0f1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java @@ -0,0 +1,103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface CreateClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CreateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + boolean hasCluster(); + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + com.google.container.v1beta1.Cluster getCluster(); + /** + *
+   * A [cluster
+   * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3; + */ + com.google.container.v1beta1.ClusterOrBuilder getClusterOrBuilder(); + + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string parent = 5; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java new file mode 100644 index 000000000000..3691164d59ac --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java @@ -0,0 +1,1327 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * CreateNodePoolRequest creates a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CreateNodePoolRequest} + */ +public final class CreateNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CreateNodePoolRequest) + CreateNodePoolRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateNodePoolRequest.newBuilder() to construct. + private CreateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateNodePoolRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + com.google.container.v1beta1.NodePool.Builder subBuilder = null; + if (nodePool_ != null) { + subBuilder = nodePool_.toBuilder(); + } + nodePool_ = input.readMessage(com.google.container.v1beta1.NodePool.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodePool_); + nodePool_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CreateNodePoolRequest.class, com.google.container.v1beta1.CreateNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NodePool nodePool_; + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public boolean hasNodePool() { + return nodePool_ != null; + } + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public com.google.container.v1beta1.NodePool getNodePool() { + return nodePool_ == null ? com.google.container.v1beta1.NodePool.getDefaultInstance() : nodePool_; + } + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolOrBuilder() { + return getNodePool(); + } + + public static final int PARENT_FIELD_NUMBER = 6; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (nodePool_ != null) { + output.writeMessage(4, getNodePool()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (nodePool_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNodePool()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); + } + 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.container.v1beta1.CreateNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.CreateNodePoolRequest other = (com.google.container.v1beta1.CreateNodePoolRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (hasNodePool() == other.hasNodePool()); + if (hasNodePool()) { + result = result && getNodePool() + .equals(other.getNodePool()); + } + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasNodePool()) { + hash = (37 * hash) + NODE_POOL_FIELD_NUMBER; + hash = (53 * hash) + getNodePool().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.CreateNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateNodePoolRequest creates a node pool for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CreateNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CreateNodePoolRequest) + com.google.container.v1beta1.CreateNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CreateNodePoolRequest.class, com.google.container.v1beta1.CreateNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.CreateNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (nodePoolBuilder_ == null) { + nodePool_ = null; + } else { + nodePool_ = null; + nodePoolBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CreateNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest build() { + com.google.container.v1beta1.CreateNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest buildPartial() { + com.google.container.v1beta1.CreateNodePoolRequest result = new com.google.container.v1beta1.CreateNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (nodePoolBuilder_ == null) { + result.nodePool_ = nodePool_; + } else { + result.nodePool_ = nodePoolBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.CreateNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.CreateNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CreateNodePoolRequest other) { + if (other == com.google.container.v1beta1.CreateNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasNodePool()) { + mergeNodePool(other.getNodePool()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.CreateNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.CreateNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePool nodePool_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> nodePoolBuilder_; + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public boolean hasNodePool() { + return nodePoolBuilder_ != null || nodePool_ != null; + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public com.google.container.v1beta1.NodePool getNodePool() { + if (nodePoolBuilder_ == null) { + return nodePool_ == null ? com.google.container.v1beta1.NodePool.getDefaultInstance() : nodePool_; + } else { + return nodePoolBuilder_.getMessage(); + } + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public Builder setNodePool(com.google.container.v1beta1.NodePool value) { + if (nodePoolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePool_ = value; + onChanged(); + } else { + nodePoolBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public Builder setNodePool( + com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolBuilder_ == null) { + nodePool_ = builderForValue.build(); + onChanged(); + } else { + nodePoolBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public Builder mergeNodePool(com.google.container.v1beta1.NodePool value) { + if (nodePoolBuilder_ == null) { + if (nodePool_ != null) { + nodePool_ = + com.google.container.v1beta1.NodePool.newBuilder(nodePool_).mergeFrom(value).buildPartial(); + } else { + nodePool_ = value; + } + onChanged(); + } else { + nodePoolBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public Builder clearNodePool() { + if (nodePoolBuilder_ == null) { + nodePool_ = null; + onChanged(); + } else { + nodePool_ = null; + nodePoolBuilder_ = null; + } + + return this; + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public com.google.container.v1beta1.NodePool.Builder getNodePoolBuilder() { + + onChanged(); + return getNodePoolFieldBuilder().getBuilder(); + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolOrBuilder() { + if (nodePoolBuilder_ != null) { + return nodePoolBuilder_.getMessageOrBuilder(); + } else { + return nodePool_ == null ? + com.google.container.v1beta1.NodePool.getDefaultInstance() : nodePool_; + } + } + /** + *
+     * The node pool to create.
+     * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> + getNodePoolFieldBuilder() { + if (nodePoolBuilder_ == null) { + nodePoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder>( + getNodePool(), + getParentForChildren(), + isClean()); + nodePool_ = null; + } + return nodePoolBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 6; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CreateNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CreateNodePoolRequest) + private static final com.google.container.v1beta1.CreateNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CreateNodePoolRequest(); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..14c8ca9c42d8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface CreateNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CreateNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + boolean hasNodePool(); + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + com.google.container.v1beta1.NodePool getNodePool(); + /** + *
+   * The node pool to create.
+   * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4; + */ + com.google.container.v1beta1.NodePoolOrBuilder getNodePoolOrBuilder(); + + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 6; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java new file mode 100644 index 000000000000..520c283bfb33 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java @@ -0,0 +1,746 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Time window specified for daily maintenance operations.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DailyMaintenanceWindow} + */ +public final class DailyMaintenanceWindow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DailyMaintenanceWindow) + DailyMaintenanceWindowOrBuilder { +private static final long serialVersionUID = 0L; + // Use DailyMaintenanceWindow.newBuilder() to construct. + private DailyMaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DailyMaintenanceWindow() { + startTime_ = ""; + duration_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DailyMaintenanceWindow( + 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 18: { + java.lang.String s = input.readStringRequireUtf8(); + + startTime_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + duration_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DailyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DailyMaintenanceWindow.class, com.google.container.v1beta1.DailyMaintenanceWindow.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private volatile java.lang.Object startTime_; + /** + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } + } + /** + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + */ + public com.google.protobuf.ByteString + getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DURATION_FIELD_NUMBER = 3; + private volatile java.lang.Object duration_; + /** + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + */ + public java.lang.String getDuration() { + java.lang.Object ref = duration_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + duration_ = s; + return s; + } + } + /** + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + */ + public com.google.protobuf.ByteString + getDurationBytes() { + java.lang.Object ref = duration_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + duration_ = 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 (!getStartTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startTime_); + } + if (!getDurationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, duration_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getStartTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startTime_); + } + if (!getDurationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, duration_); + } + 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.container.v1beta1.DailyMaintenanceWindow)) { + return super.equals(obj); + } + com.google.container.v1beta1.DailyMaintenanceWindow other = (com.google.container.v1beta1.DailyMaintenanceWindow) obj; + + boolean result = true; + result = result && getStartTime() + .equals(other.getStartTime()); + result = result && getDuration() + .equals(other.getDuration()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.DailyMaintenanceWindow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Time window specified for daily maintenance operations.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.DailyMaintenanceWindow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DailyMaintenanceWindow) + com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DailyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DailyMaintenanceWindow.class, com.google.container.v1beta1.DailyMaintenanceWindow.Builder.class); + } + + // Construct using com.google.container.v1beta1.DailyMaintenanceWindow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + startTime_ = ""; + + duration_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow getDefaultInstanceForType() { + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow build() { + com.google.container.v1beta1.DailyMaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow buildPartial() { + com.google.container.v1beta1.DailyMaintenanceWindow result = new com.google.container.v1beta1.DailyMaintenanceWindow(this); + result.startTime_ = startTime_; + result.duration_ = duration_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DailyMaintenanceWindow) { + return mergeFrom((com.google.container.v1beta1.DailyMaintenanceWindow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DailyMaintenanceWindow other) { + if (other == com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance()) return this; + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + onChanged(); + } + if (!other.getDuration().isEmpty()) { + duration_ = other.duration_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.DailyMaintenanceWindow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.DailyMaintenanceWindow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object startTime_ = ""; + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + */ + public com.google.protobuf.ByteString + getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + */ + public Builder setStartTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startTime_ = value; + onChanged(); + return this; + } + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + */ + public Builder clearStartTime() { + + startTime_ = getDefaultInstance().getStartTime(); + onChanged(); + return this; + } + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + */ + public Builder setStartTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object duration_ = ""; + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + */ + public java.lang.String getDuration() { + java.lang.Object ref = duration_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + duration_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + */ + public com.google.protobuf.ByteString + getDurationBytes() { + java.lang.Object ref = duration_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + duration_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + */ + public Builder setDuration( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + duration_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + */ + public Builder clearDuration() { + + duration_ = getDefaultInstance().getDuration(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + */ + public Builder setDurationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + duration_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DailyMaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DailyMaintenanceWindow) + private static final com.google.container.v1beta1.DailyMaintenanceWindow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DailyMaintenanceWindow(); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DailyMaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DailyMaintenanceWindow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..b91b6ff97be8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DailyMaintenanceWindowOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DailyMaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + */ + java.lang.String getStartTime(); + /** + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + */ + com.google.protobuf.ByteString + getStartTimeBytes(); + + /** + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + */ + java.lang.String getDuration(); + /** + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + */ + com.google.protobuf.ByteString + getDurationBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java new file mode 100644 index 000000000000..ea37a64f9313 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java @@ -0,0 +1,1091 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * DeleteClusterRequest deletes a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DeleteClusterRequest} + */ +public final class DeleteClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DeleteClusterRequest) + DeleteClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteClusterRequest.newBuilder() to construct. + private DeleteClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteClusterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DeleteClusterRequest.class, com.google.container.v1beta1.DeleteClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.container.v1beta1.DeleteClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.DeleteClusterRequest other = (com.google.container.v1beta1.DeleteClusterRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().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.container.v1beta1.DeleteClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.DeleteClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteClusterRequest deletes a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.DeleteClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DeleteClusterRequest) + com.google.container.v1beta1.DeleteClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DeleteClusterRequest.class, com.google.container.v1beta1.DeleteClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.DeleteClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.DeleteClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest build() { + com.google.container.v1beta1.DeleteClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest buildPartial() { + com.google.container.v1beta1.DeleteClusterRequest result = new com.google.container.v1beta1.DeleteClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DeleteClusterRequest) { + return mergeFrom((com.google.container.v1beta1.DeleteClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DeleteClusterRequest other) { + if (other == com.google.container.v1beta1.DeleteClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.DeleteClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.DeleteClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 4; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DeleteClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DeleteClusterRequest) + private static final com.google.container.v1beta1.DeleteClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DeleteClusterRequest(); + } + + public static com.google.container.v1beta1.DeleteClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java new file mode 100644 index 000000000000..821b75c700af --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DeleteClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DeleteClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java new file mode 100644 index 000000000000..a038e20429bc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java @@ -0,0 +1,1260 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * DeleteNodePoolRequest deletes a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DeleteNodePoolRequest} + */ +public final class DeleteNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DeleteNodePoolRequest) + DeleteNodePoolRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteNodePoolRequest.newBuilder() to construct. + private DeleteNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteNodePoolRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DeleteNodePoolRequest.class, com.google.container.v1beta1.DeleteNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1beta1.DeleteNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.DeleteNodePoolRequest other = (com.google.container.v1beta1.DeleteNodePoolRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().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.container.v1beta1.DeleteNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.DeleteNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteNodePoolRequest deletes a node pool for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.DeleteNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DeleteNodePoolRequest) + com.google.container.v1beta1.DeleteNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DeleteNodePoolRequest.class, com.google.container.v1beta1.DeleteNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.DeleteNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.DeleteNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest build() { + com.google.container.v1beta1.DeleteNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest buildPartial() { + com.google.container.v1beta1.DeleteNodePoolRequest result = new com.google.container.v1beta1.DeleteNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DeleteNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.DeleteNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DeleteNodePoolRequest other) { + if (other == com.google.container.v1beta1.DeleteNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.DeleteNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.DeleteNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DeleteNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DeleteNodePoolRequest) + private static final com.google.container.v1beta1.DeleteNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DeleteNodePoolRequest(); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..87acd4bed04e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DeleteNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DeleteNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java new file mode 100644 index 000000000000..bb45badd21f4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java @@ -0,0 +1,1091 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * GetClusterRequest gets the settings of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetClusterRequest} + */ +public final class GetClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetClusterRequest) + GetClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetClusterRequest.newBuilder() to construct. + private GetClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetClusterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetClusterRequest.class, com.google.container.v1beta1.GetClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1beta1.GetClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetClusterRequest other = (com.google.container.v1beta1.GetClusterRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().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.container.v1beta1.GetClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GetClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetClusterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.GetClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetClusterRequest gets the settings of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetClusterRequest) + com.google.container.v1beta1.GetClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetClusterRequest.class, com.google.container.v1beta1.GetClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest build() { + com.google.container.v1beta1.GetClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest buildPartial() { + com.google.container.v1beta1.GetClusterRequest result = new com.google.container.v1beta1.GetClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetClusterRequest) { + return mergeFrom((com.google.container.v1beta1.GetClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetClusterRequest other) { + if (other == com.google.container.v1beta1.GetClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.GetClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetClusterRequest) + private static final com.google.container.v1beta1.GetClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetClusterRequest(); + } + + public static com.google.container.v1beta1.GetClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java new file mode 100644 index 000000000000..0b5972e338ea --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java new file mode 100644 index 000000000000..c1350913fb87 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java @@ -0,0 +1,1260 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * GetNodePoolRequest retrieves a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetNodePoolRequest} + */ +public final class GetNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetNodePoolRequest) + GetNodePoolRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetNodePoolRequest.newBuilder() to construct. + private GetNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetNodePoolRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetNodePoolRequest.class, com.google.container.v1beta1.GetNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1beta1.GetNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetNodePoolRequest other = (com.google.container.v1beta1.GetNodePoolRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().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.container.v1beta1.GetNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.GetNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetNodePoolRequest retrieves a node pool for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetNodePoolRequest) + com.google.container.v1beta1.GetNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetNodePoolRequest.class, com.google.container.v1beta1.GetNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest build() { + com.google.container.v1beta1.GetNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest buildPartial() { + com.google.container.v1beta1.GetNodePoolRequest result = new com.google.container.v1beta1.GetNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.GetNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetNodePoolRequest other) { + if (other == com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.GetNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetNodePoolRequest) + private static final com.google.container.v1beta1.GetNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetNodePoolRequest(); + } + + public static com.google.container.v1beta1.GetNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..64da89239091 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java new file mode 100644 index 000000000000..a3a51fe65f7d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java @@ -0,0 +1,1091 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * GetOperationRequest gets a single operation.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOperationRequest} + */ +public final class GetOperationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetOperationRequest) + GetOperationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetOperationRequest.newBuilder() to construct. + private GetOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOperationRequest() { + projectId_ = ""; + zone_ = ""; + operationId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetOperationRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + operationId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOperationRequest.class, com.google.container.v1beta1.GetOperationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object operationId_; + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1beta1.GetOperationRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetOperationRequest other = (com.google.container.v1beta1.GetOperationRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getOperationId() + .equals(other.getOperationId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().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.container.v1beta1.GetOperationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetOperationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetOperationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GetOperationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetOperationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.GetOperationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetOperationRequest gets a single operation.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOperationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetOperationRequest) + com.google.container.v1beta1.GetOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOperationRequest.class, com.google.container.v1beta1.GetOperationRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetOperationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + operationId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetOperationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest build() { + com.google.container.v1beta1.GetOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest buildPartial() { + com.google.container.v1beta1.GetOperationRequest result = new com.google.container.v1beta1.GetOperationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.operationId_ = operationId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetOperationRequest) { + return mergeFrom((com.google.container.v1beta1.GetOperationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetOperationRequest other) { + if (other == com.google.container.v1beta1.GetOperationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetOperationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.GetOperationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOperationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format 'projects/*/locations/*/operations/*'.
+     * 
+ * + * string name = 5; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetOperationRequest) + private static final com.google.container.v1beta1.GetOperationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetOperationRequest(); + } + + public static com.google.container.v1beta1.GetOperationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOperationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java new file mode 100644 index 000000000000..a1b93f6ccf8f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetOperationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getOperationId(); + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getOperationIdBytes(); + + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format 'projects/*/locations/*/operations/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java new file mode 100644 index 000000000000..ac240f55dabf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java @@ -0,0 +1,922 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Gets the current Kubernetes Engine service configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetServerConfigRequest} + */ +public final class GetServerConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetServerConfigRequest) + GetServerConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetServerConfigRequest.newBuilder() to construct. + private GetServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetServerConfigRequest() { + projectId_ = ""; + zone_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetServerConfigRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetServerConfigRequest.class, com.google.container.v1beta1.GetServerConfigRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.container.v1beta1.GetServerConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetServerConfigRequest other = (com.google.container.v1beta1.GetServerConfigRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().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.container.v1beta1.GetServerConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.GetServerConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Gets the current Kubernetes Engine service configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetServerConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetServerConfigRequest) + com.google.container.v1beta1.GetServerConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetServerConfigRequest.class, com.google.container.v1beta1.GetServerConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetServerConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetServerConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest build() { + com.google.container.v1beta1.GetServerConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest buildPartial() { + com.google.container.v1beta1.GetServerConfigRequest result = new com.google.container.v1beta1.GetServerConfigRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetServerConfigRequest) { + return mergeFrom((com.google.container.v1beta1.GetServerConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetServerConfigRequest other) { + if (other == com.google.container.v1beta1.GetServerConfigRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetServerConfigRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.GetServerConfigRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project and location) of the server config to get
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 4; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetServerConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetServerConfigRequest) + private static final com.google.container.v1beta1.GetServerConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetServerConfigRequest(); + } + + public static com.google.container.v1beta1.GetServerConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServerConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetServerConfigRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java new file mode 100644 index 000000000000..8aa2dc015f5d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetServerConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetServerConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+   * The name (project and location) of the server config to get
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java new file mode 100644 index 000000000000..2674b5c37638 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java @@ -0,0 +1,509 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration options for the horizontal pod autoscaling feature, which
+ * increases or decreases the number of replica pods a replication controller
+ * has based on the resource usage of the existing pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.HorizontalPodAutoscaling} + */ +public final class HorizontalPodAutoscaling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.HorizontalPodAutoscaling) + HorizontalPodAutoscalingOrBuilder { +private static final long serialVersionUID = 0L; + // Use HorizontalPodAutoscaling.newBuilder() to construct. + private HorizontalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HorizontalPodAutoscaling() { + disabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HorizontalPodAutoscaling( + 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 8: { + + disabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HorizontalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HorizontalPodAutoscaling.class, com.google.container.v1beta1.HorizontalPodAutoscaling.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + *
+   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+   * When enabled, it ensures that a Heapster pod is running in the cluster,
+   * which is also used by the Cloud Monitoring service.
+   * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, disabled_); + } + 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.container.v1beta1.HorizontalPodAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1beta1.HorizontalPodAutoscaling other = (com.google.container.v1beta1.HorizontalPodAutoscaling) obj; + + boolean result = true; + result = result && (getDisabled() + == other.getDisabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.HorizontalPodAutoscaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.HorizontalPodAutoscaling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.HorizontalPodAutoscaling) + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HorizontalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HorizontalPodAutoscaling.class, com.google.container.v1beta1.HorizontalPodAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1beta1.HorizontalPodAutoscaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling getDefaultInstanceForType() { + return com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling build() { + com.google.container.v1beta1.HorizontalPodAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling buildPartial() { + com.google.container.v1beta1.HorizontalPodAutoscaling result = new com.google.container.v1beta1.HorizontalPodAutoscaling(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.HorizontalPodAutoscaling) { + return mergeFrom((com.google.container.v1beta1.HorizontalPodAutoscaling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.HorizontalPodAutoscaling other) { + if (other == com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.HorizontalPodAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.HorizontalPodAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_ ; + /** + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that a Heapster pod is running in the cluster,
+     * which is also used by the Cloud Monitoring service.
+     * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + /** + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that a Heapster pod is running in the cluster,
+     * which is also used by the Cloud Monitoring service.
+     * 
+ * + * bool disabled = 1; + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that a Heapster pod is running in the cluster,
+     * which is also used by the Cloud Monitoring service.
+     * 
+ * + * bool disabled = 1; + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.HorizontalPodAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.HorizontalPodAutoscaling) + private static final com.google.container.v1beta1.HorizontalPodAutoscaling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.HorizontalPodAutoscaling(); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HorizontalPodAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HorizontalPodAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java new file mode 100644 index 000000000000..90c0ae68e2c4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface HorizontalPodAutoscalingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HorizontalPodAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+   * When enabled, it ensures that a Heapster pod is running in the cluster,
+   * which is also used by the Cloud Monitoring service.
+   * 
+ * + * bool disabled = 1; + */ + boolean getDisabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java new file mode 100644 index 000000000000..239c6bd458e0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java @@ -0,0 +1,507 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration options for the HTTP (L7) load balancing controller addon,
+ * which makes it easy to set up HTTP load balancers for services in a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.HttpLoadBalancing} + */ +public final class HttpLoadBalancing extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.HttpLoadBalancing) + HttpLoadBalancingOrBuilder { +private static final long serialVersionUID = 0L; + // Use HttpLoadBalancing.newBuilder() to construct. + private HttpLoadBalancing(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HttpLoadBalancing() { + disabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HttpLoadBalancing( + 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 8: { + + disabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HttpLoadBalancing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HttpLoadBalancing.class, com.google.container.v1beta1.HttpLoadBalancing.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + *
+   * Whether the HTTP Load Balancing controller is enabled in the cluster.
+   * When enabled, it runs a small pod in the cluster that manages the load
+   * balancers.
+   * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, disabled_); + } + 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.container.v1beta1.HttpLoadBalancing)) { + return super.equals(obj); + } + com.google.container.v1beta1.HttpLoadBalancing other = (com.google.container.v1beta1.HttpLoadBalancing) obj; + + boolean result = true; + result = result && (getDisabled() + == other.getDisabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.HttpLoadBalancing prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for the HTTP (L7) load balancing controller addon,
+   * which makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.HttpLoadBalancing} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.HttpLoadBalancing) + com.google.container.v1beta1.HttpLoadBalancingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HttpLoadBalancing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HttpLoadBalancing.class, com.google.container.v1beta1.HttpLoadBalancing.Builder.class); + } + + // Construct using com.google.container.v1beta1.HttpLoadBalancing.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing getDefaultInstanceForType() { + return com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing build() { + com.google.container.v1beta1.HttpLoadBalancing result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing buildPartial() { + com.google.container.v1beta1.HttpLoadBalancing result = new com.google.container.v1beta1.HttpLoadBalancing(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.HttpLoadBalancing) { + return mergeFrom((com.google.container.v1beta1.HttpLoadBalancing)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.HttpLoadBalancing other) { + if (other == com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.HttpLoadBalancing parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.HttpLoadBalancing) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_ ; + /** + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + /** + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.HttpLoadBalancing) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.HttpLoadBalancing) + private static final com.google.container.v1beta1.HttpLoadBalancing DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.HttpLoadBalancing(); + } + + public static com.google.container.v1beta1.HttpLoadBalancing getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpLoadBalancing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpLoadBalancing(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java new file mode 100644 index 000000000000..011ba9085278 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface HttpLoadBalancingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HttpLoadBalancing) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the HTTP Load Balancing controller is enabled in the cluster.
+   * When enabled, it runs a small pod in the cluster that manages the load
+   * balancers.
+   * 
+ * + * bool disabled = 1; + */ + boolean getDisabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java new file mode 100644 index 000000000000..1ecd6050a98c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java @@ -0,0 +1,2598 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration for controlling how IPs are allocated in the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.IPAllocationPolicy} + */ +public final class IPAllocationPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.IPAllocationPolicy) + IPAllocationPolicyOrBuilder { +private static final long serialVersionUID = 0L; + // Use IPAllocationPolicy.newBuilder() to construct. + private IPAllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IPAllocationPolicy() { + useIpAliases_ = false; + createSubnetwork_ = false; + subnetworkName_ = ""; + clusterIpv4Cidr_ = ""; + nodeIpv4Cidr_ = ""; + servicesIpv4Cidr_ = ""; + clusterSecondaryRangeName_ = ""; + servicesSecondaryRangeName_ = ""; + clusterIpv4CidrBlock_ = ""; + nodeIpv4CidrBlock_ = ""; + servicesIpv4CidrBlock_ = ""; + allowRouteOverlap_ = false; + tpuIpv4CidrBlock_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IPAllocationPolicy( + 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 8: { + + useIpAliases_ = input.readBool(); + break; + } + case 16: { + + createSubnetwork_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + subnetworkName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterIpv4Cidr_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeIpv4Cidr_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesIpv4Cidr_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterSecondaryRangeName_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesSecondaryRangeName_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterIpv4CidrBlock_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeIpv4CidrBlock_ = s; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesIpv4CidrBlock_ = s; + break; + } + case 96: { + + allowRouteOverlap_ = input.readBool(); + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + tpuIpv4CidrBlock_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IPAllocationPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IPAllocationPolicy.class, com.google.container.v1beta1.IPAllocationPolicy.Builder.class); + } + + public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; + private boolean useIpAliases_; + /** + *
+   * Whether alias IPs will be used for pod IPs in the cluster.
+   * 
+ * + * bool use_ip_aliases = 1; + */ + public boolean getUseIpAliases() { + return useIpAliases_; + } + + public static final int CREATE_SUBNETWORK_FIELD_NUMBER = 2; + private boolean createSubnetwork_; + /** + *
+   * Whether a new subnetwork will be created automatically for the cluster.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * 
+ * + * bool create_subnetwork = 2; + */ + public boolean getCreateSubnetwork() { + return createSubnetwork_; + } + + public static final int SUBNETWORK_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object subnetworkName_; + /** + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + */ + public java.lang.String getSubnetworkName() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetworkName_ = s; + return s; + } + } + /** + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + */ + public com.google.protobuf.ByteString + getSubnetworkNameBytes() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetworkName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 4; + private volatile java.lang.Object clusterIpv4Cidr_; + /** + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } + } + /** + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeIpv4Cidr_; + /** + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodeIpv4Cidr() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4Cidr_ = s; + return s; + } + } + /** + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodeIpv4CidrBytes() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 6; + private volatile java.lang.Object servicesIpv4Cidr_; + /** + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } + } + /** + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object clusterSecondaryRangeName_; + /** + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + */ + public java.lang.String getClusterSecondaryRangeName() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterSecondaryRangeName_ = s; + return s; + } + } + /** + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + */ + public com.google.protobuf.ByteString + getClusterSecondaryRangeNameBytes() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object servicesSecondaryRangeName_; + /** + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + */ + public java.lang.String getServicesSecondaryRangeName() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesSecondaryRangeName_ = s; + return s; + } + } + /** + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + */ + public com.google.protobuf.ByteString + getServicesSecondaryRangeNameBytes() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 9; + private volatile java.lang.Object clusterIpv4CidrBlock_; + /** + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public java.lang.String getClusterIpv4CidrBlock() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public com.google.protobuf.ByteString + getClusterIpv4CidrBlockBytes() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER = 10; + private volatile java.lang.Object nodeIpv4CidrBlock_; + /** + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public java.lang.String getNodeIpv4CidrBlock() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public com.google.protobuf.ByteString + getNodeIpv4CidrBlockBytes() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER = 11; + private volatile java.lang.Object servicesIpv4CidrBlock_; + /** + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public java.lang.String getServicesIpv4CidrBlock() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public com.google.protobuf.ByteString + getServicesIpv4CidrBlockBytes() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_ROUTE_OVERLAP_FIELD_NUMBER = 12; + private boolean allowRouteOverlap_; + /** + *
+   * If true, allow allocation of cluster CIDR ranges that overlap with certain
+   * kinds of network routes. By default we do not allow cluster CIDR ranges to
+   * intersect with any user declared routes. With allow_route_overlap == true,
+   * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+   * range.
+   * If this field is set to true, then cluster and services CIDRs must be
+   * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+   * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+   *    `services_ipv4_cidr_block` must be fully-specified.
+   * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+   *    fully-specified.
+   * 
+ * + * bool allow_route_overlap = 12; + */ + public boolean getAllowRouteOverlap() { + return allowRouteOverlap_; + } + + public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 13; + private volatile java.lang.Object tpuIpv4CidrBlock_; + /** + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + */ + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + */ + public com.google.protobuf.ByteString + getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tpuIpv4CidrBlock_ = 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 (useIpAliases_ != false) { + output.writeBool(1, useIpAliases_); + } + if (createSubnetwork_ != false) { + output.writeBool(2, createSubnetwork_); + } + if (!getSubnetworkNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetworkName_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterIpv4Cidr_); + } + if (!getNodeIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeIpv4Cidr_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, servicesIpv4Cidr_); + } + if (!getClusterSecondaryRangeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterSecondaryRangeName_); + } + if (!getServicesSecondaryRangeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, servicesSecondaryRangeName_); + } + if (!getClusterIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4CidrBlock_); + } + if (!getNodeIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeIpv4CidrBlock_); + } + if (!getServicesIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, servicesIpv4CidrBlock_); + } + if (allowRouteOverlap_ != false) { + output.writeBool(12, allowRouteOverlap_); + } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tpuIpv4CidrBlock_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (useIpAliases_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, useIpAliases_); + } + if (createSubnetwork_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, createSubnetwork_); + } + if (!getSubnetworkNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetworkName_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterIpv4Cidr_); + } + if (!getNodeIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeIpv4Cidr_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, servicesIpv4Cidr_); + } + if (!getClusterSecondaryRangeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterSecondaryRangeName_); + } + if (!getServicesSecondaryRangeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, servicesSecondaryRangeName_); + } + if (!getClusterIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4CidrBlock_); + } + if (!getNodeIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeIpv4CidrBlock_); + } + if (!getServicesIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, servicesIpv4CidrBlock_); + } + if (allowRouteOverlap_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, allowRouteOverlap_); + } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, tpuIpv4CidrBlock_); + } + 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.container.v1beta1.IPAllocationPolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.IPAllocationPolicy other = (com.google.container.v1beta1.IPAllocationPolicy) obj; + + boolean result = true; + result = result && (getUseIpAliases() + == other.getUseIpAliases()); + result = result && (getCreateSubnetwork() + == other.getCreateSubnetwork()); + result = result && getSubnetworkName() + .equals(other.getSubnetworkName()); + result = result && getClusterIpv4Cidr() + .equals(other.getClusterIpv4Cidr()); + result = result && getNodeIpv4Cidr() + .equals(other.getNodeIpv4Cidr()); + result = result && getServicesIpv4Cidr() + .equals(other.getServicesIpv4Cidr()); + result = result && getClusterSecondaryRangeName() + .equals(other.getClusterSecondaryRangeName()); + result = result && getServicesSecondaryRangeName() + .equals(other.getServicesSecondaryRangeName()); + result = result && getClusterIpv4CidrBlock() + .equals(other.getClusterIpv4CidrBlock()); + result = result && getNodeIpv4CidrBlock() + .equals(other.getNodeIpv4CidrBlock()); + result = result && getServicesIpv4CidrBlock() + .equals(other.getServicesIpv4CidrBlock()); + result = result && (getAllowRouteOverlap() + == other.getAllowRouteOverlap()); + result = result && getTpuIpv4CidrBlock() + .equals(other.getTpuIpv4CidrBlock()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USE_IP_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseIpAliases()); + hash = (37 * hash) + CREATE_SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCreateSubnetwork()); + hash = (37 * hash) + SUBNETWORK_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSubnetworkName().hashCode(); + hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); + hash = (37 * hash) + NODE_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getNodeIpv4Cidr().hashCode(); + hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); + hash = (37 * hash) + CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClusterSecondaryRangeName().hashCode(); + hash = (37 * hash) + SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getServicesSecondaryRangeName().hashCode(); + hash = (37 * hash) + CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getClusterIpv4CidrBlock().hashCode(); + hash = (37 * hash) + NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getNodeIpv4CidrBlock().hashCode(); + hash = (37 * hash) + SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv4CidrBlock().hashCode(); + hash = (37 * hash) + ALLOW_ROUTE_OVERLAP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowRouteOverlap()); + hash = (37 * hash) + TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getTpuIpv4CidrBlock().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.IPAllocationPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for controlling how IPs are allocated in the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.IPAllocationPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.IPAllocationPolicy) + com.google.container.v1beta1.IPAllocationPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IPAllocationPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IPAllocationPolicy.class, com.google.container.v1beta1.IPAllocationPolicy.Builder.class); + } + + // Construct using com.google.container.v1beta1.IPAllocationPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + useIpAliases_ = false; + + createSubnetwork_ = false; + + subnetworkName_ = ""; + + clusterIpv4Cidr_ = ""; + + nodeIpv4Cidr_ = ""; + + servicesIpv4Cidr_ = ""; + + clusterSecondaryRangeName_ = ""; + + servicesSecondaryRangeName_ = ""; + + clusterIpv4CidrBlock_ = ""; + + nodeIpv4CidrBlock_ = ""; + + servicesIpv4CidrBlock_ = ""; + + allowRouteOverlap_ = false; + + tpuIpv4CidrBlock_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy build() { + com.google.container.v1beta1.IPAllocationPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy buildPartial() { + com.google.container.v1beta1.IPAllocationPolicy result = new com.google.container.v1beta1.IPAllocationPolicy(this); + result.useIpAliases_ = useIpAliases_; + result.createSubnetwork_ = createSubnetwork_; + result.subnetworkName_ = subnetworkName_; + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + result.nodeIpv4Cidr_ = nodeIpv4Cidr_; + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; + result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; + result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; + result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; + result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; + result.allowRouteOverlap_ = allowRouteOverlap_; + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.IPAllocationPolicy) { + return mergeFrom((com.google.container.v1beta1.IPAllocationPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.IPAllocationPolicy other) { + if (other == com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance()) return this; + if (other.getUseIpAliases() != false) { + setUseIpAliases(other.getUseIpAliases()); + } + if (other.getCreateSubnetwork() != false) { + setCreateSubnetwork(other.getCreateSubnetwork()); + } + if (!other.getSubnetworkName().isEmpty()) { + subnetworkName_ = other.subnetworkName_; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + onChanged(); + } + if (!other.getNodeIpv4Cidr().isEmpty()) { + nodeIpv4Cidr_ = other.nodeIpv4Cidr_; + onChanged(); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + onChanged(); + } + if (!other.getClusterSecondaryRangeName().isEmpty()) { + clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; + onChanged(); + } + if (!other.getServicesSecondaryRangeName().isEmpty()) { + servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; + onChanged(); + } + if (!other.getClusterIpv4CidrBlock().isEmpty()) { + clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; + onChanged(); + } + if (!other.getNodeIpv4CidrBlock().isEmpty()) { + nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; + onChanged(); + } + if (!other.getServicesIpv4CidrBlock().isEmpty()) { + servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; + onChanged(); + } + if (other.getAllowRouteOverlap() != false) { + setAllowRouteOverlap(other.getAllowRouteOverlap()); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.IPAllocationPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.IPAllocationPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean useIpAliases_ ; + /** + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * 
+ * + * bool use_ip_aliases = 1; + */ + public boolean getUseIpAliases() { + return useIpAliases_; + } + /** + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * 
+ * + * bool use_ip_aliases = 1; + */ + public Builder setUseIpAliases(boolean value) { + + useIpAliases_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * 
+ * + * bool use_ip_aliases = 1; + */ + public Builder clearUseIpAliases() { + + useIpAliases_ = false; + onChanged(); + return this; + } + + private boolean createSubnetwork_ ; + /** + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + */ + public boolean getCreateSubnetwork() { + return createSubnetwork_; + } + /** + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + */ + public Builder setCreateSubnetwork(boolean value) { + + createSubnetwork_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + */ + public Builder clearCreateSubnetwork() { + + createSubnetwork_ = false; + onChanged(); + return this; + } + + private java.lang.Object subnetworkName_ = ""; + /** + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + */ + public java.lang.String getSubnetworkName() { + java.lang.Object ref = subnetworkName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetworkName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + */ + public com.google.protobuf.ByteString + getSubnetworkNameBytes() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetworkName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + */ + public Builder setSubnetworkName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetworkName_ = value; + onChanged(); + return this; + } + /** + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + */ + public Builder clearSubnetworkName() { + + subnetworkName_ = getDefaultInstance().getSubnetworkName(); + onChanged(); + return this; + } + /** + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + */ + public Builder setSubnetworkNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetworkName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIpv4Cidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterIpv4Cidr() { + + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIpv4CidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodeIpv4Cidr() { + java.lang.Object ref = nodeIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodeIpv4CidrBytes() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodeIpv4Cidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodeIpv4Cidr() { + + nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodeIpv4CidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setServicesIpv4Cidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearServicesIpv4Cidr() { + + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setServicesIpv4CidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterSecondaryRangeName_ = ""; + /** + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + */ + public java.lang.String getClusterSecondaryRangeName() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterSecondaryRangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + */ + public com.google.protobuf.ByteString + getClusterSecondaryRangeNameBytes() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + */ + public Builder setClusterSecondaryRangeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterSecondaryRangeName_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + */ + public Builder clearClusterSecondaryRangeName() { + + clusterSecondaryRangeName_ = getDefaultInstance().getClusterSecondaryRangeName(); + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + */ + public Builder setClusterSecondaryRangeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterSecondaryRangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesSecondaryRangeName_ = ""; + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + */ + public java.lang.String getServicesSecondaryRangeName() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesSecondaryRangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + */ + public com.google.protobuf.ByteString + getServicesSecondaryRangeNameBytes() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + */ + public Builder setServicesSecondaryRangeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesSecondaryRangeName_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + */ + public Builder clearServicesSecondaryRangeName() { + + servicesSecondaryRangeName_ = getDefaultInstance().getServicesSecondaryRangeName(); + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + */ + public Builder setServicesSecondaryRangeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesSecondaryRangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4CidrBlock_ = ""; + /** + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public java.lang.String getClusterIpv4CidrBlock() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public com.google.protobuf.ByteString + getClusterIpv4CidrBlockBytes() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public Builder setClusterIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public Builder clearClusterIpv4CidrBlock() { + + clusterIpv4CidrBlock_ = getDefaultInstance().getClusterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + public Builder setClusterIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4CidrBlock_ = ""; + /** + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public java.lang.String getNodeIpv4CidrBlock() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public com.google.protobuf.ByteString + getNodeIpv4CidrBlockBytes() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public Builder setNodeIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public Builder clearNodeIpv4CidrBlock() { + + nodeIpv4CidrBlock_ = getDefaultInstance().getNodeIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + */ + public Builder setNodeIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4CidrBlock_ = ""; + /** + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public java.lang.String getServicesIpv4CidrBlock() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public com.google.protobuf.ByteString + getServicesIpv4CidrBlockBytes() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public Builder setServicesIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public Builder clearServicesIpv4CidrBlock() { + + servicesIpv4CidrBlock_ = getDefaultInstance().getServicesIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + */ + public Builder setServicesIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private boolean allowRouteOverlap_ ; + /** + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + */ + public boolean getAllowRouteOverlap() { + return allowRouteOverlap_; + } + /** + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + */ + public Builder setAllowRouteOverlap(boolean value) { + + allowRouteOverlap_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + */ + public Builder clearAllowRouteOverlap() { + + allowRouteOverlap_ = false; + onChanged(); + return this; + } + + private java.lang.Object tpuIpv4CidrBlock_ = ""; + /** + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + */ + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + */ + public com.google.protobuf.ByteString + getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + */ + public Builder setTpuIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + */ + public Builder clearTpuIpv4CidrBlock() { + + tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + */ + public Builder setTpuIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.IPAllocationPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.IPAllocationPolicy) + private static final com.google.container.v1beta1.IPAllocationPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.IPAllocationPolicy(); + } + + public static com.google.container.v1beta1.IPAllocationPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IPAllocationPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IPAllocationPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java new file mode 100644 index 000000000000..6feb7da06cb2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java @@ -0,0 +1,329 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface IPAllocationPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IPAllocationPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether alias IPs will be used for pod IPs in the cluster.
+   * 
+ * + * bool use_ip_aliases = 1; + */ + boolean getUseIpAliases(); + + /** + *
+   * Whether a new subnetwork will be created automatically for the cluster.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * 
+ * + * bool create_subnetwork = 2; + */ + boolean getCreateSubnetwork(); + + /** + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + */ + java.lang.String getSubnetworkName(); + /** + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + */ + com.google.protobuf.ByteString + getSubnetworkNameBytes(); + + /** + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterIpv4Cidr(); + /** + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIpv4CidrBytes(); + + /** + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodeIpv4Cidr(); + /** + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodeIpv4CidrBytes(); + + /** + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getServicesIpv4Cidr(); + /** + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getServicesIpv4CidrBytes(); + + /** + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + */ + java.lang.String getClusterSecondaryRangeName(); + /** + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + */ + com.google.protobuf.ByteString + getClusterSecondaryRangeNameBytes(); + + /** + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + */ + java.lang.String getServicesSecondaryRangeName(); + /** + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + */ + com.google.protobuf.ByteString + getServicesSecondaryRangeNameBytes(); + + /** + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + java.lang.String getClusterIpv4CidrBlock(); + /** + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + */ + com.google.protobuf.ByteString + getClusterIpv4CidrBlockBytes(); + + /** + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + */ + java.lang.String getNodeIpv4CidrBlock(); + /** + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + */ + com.google.protobuf.ByteString + getNodeIpv4CidrBlockBytes(); + + /** + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + */ + java.lang.String getServicesIpv4CidrBlock(); + /** + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + */ + com.google.protobuf.ByteString + getServicesIpv4CidrBlockBytes(); + + /** + *
+   * If true, allow allocation of cluster CIDR ranges that overlap with certain
+   * kinds of network routes. By default we do not allow cluster CIDR ranges to
+   * intersect with any user declared routes. With allow_route_overlap == true,
+   * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+   * range.
+   * If this field is set to true, then cluster and services CIDRs must be
+   * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+   * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+   *    `services_ipv4_cidr_block` must be fully-specified.
+   * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+   *    fully-specified.
+   * 
+ * + * bool allow_route_overlap = 12; + */ + boolean getAllowRouteOverlap(); + + /** + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + */ + java.lang.String getTpuIpv4CidrBlock(); + /** + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + */ + com.google.protobuf.ByteString + getTpuIpv4CidrBlockBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java new file mode 100644 index 000000000000..a6563288b5b1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration for the Kubernetes Dashboard.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.KubernetesDashboard} + */ +public final class KubernetesDashboard extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.KubernetesDashboard) + KubernetesDashboardOrBuilder { +private static final long serialVersionUID = 0L; + // Use KubernetesDashboard.newBuilder() to construct. + private KubernetesDashboard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KubernetesDashboard() { + disabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KubernetesDashboard( + 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 8: { + + disabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KubernetesDashboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.KubernetesDashboard.class, com.google.container.v1beta1.KubernetesDashboard.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + *
+   * Whether the Kubernetes Dashboard is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, disabled_); + } + 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.container.v1beta1.KubernetesDashboard)) { + return super.equals(obj); + } + com.google.container.v1beta1.KubernetesDashboard other = (com.google.container.v1beta1.KubernetesDashboard) obj; + + boolean result = true; + result = result && (getDisabled() + == other.getDisabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.KubernetesDashboard parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.KubernetesDashboard parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.KubernetesDashboard parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.KubernetesDashboard parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.KubernetesDashboard prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.KubernetesDashboard} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.KubernetesDashboard) + com.google.container.v1beta1.KubernetesDashboardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KubernetesDashboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.KubernetesDashboard.class, com.google.container.v1beta1.KubernetesDashboard.Builder.class); + } + + // Construct using com.google.container.v1beta1.KubernetesDashboard.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard getDefaultInstanceForType() { + return com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard build() { + com.google.container.v1beta1.KubernetesDashboard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard buildPartial() { + com.google.container.v1beta1.KubernetesDashboard result = new com.google.container.v1beta1.KubernetesDashboard(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.KubernetesDashboard) { + return mergeFrom((com.google.container.v1beta1.KubernetesDashboard)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.KubernetesDashboard other) { + if (other == com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.KubernetesDashboard parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.KubernetesDashboard) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_ ; + /** + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + /** + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.KubernetesDashboard) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.KubernetesDashboard) + private static final com.google.container.v1beta1.KubernetesDashboard DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.KubernetesDashboard(); + } + + public static com.google.container.v1beta1.KubernetesDashboard getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesDashboard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesDashboard(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java new file mode 100644 index 000000000000..b55d6c344fd6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface KubernetesDashboardOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.KubernetesDashboard) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Kubernetes Dashboard is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + */ + boolean getDisabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LegacyAbac.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LegacyAbac.java new file mode 100644 index 000000000000..9edbd595554d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LegacyAbac.java @@ -0,0 +1,511 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration for the legacy Attribute Based Access Control authorization
+ * mode.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.LegacyAbac} + */ +public final class LegacyAbac extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.LegacyAbac) + LegacyAbacOrBuilder { +private static final long serialVersionUID = 0L; + // Use LegacyAbac.newBuilder() to construct. + private LegacyAbac(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LegacyAbac() { + enabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LegacyAbac( + 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 8: { + + enabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LegacyAbac_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LegacyAbac.class, com.google.container.v1beta1.LegacyAbac.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+   * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+   * identities in the system, including service accounts, nodes, and
+   * controllers, will have statically granted permissions beyond those
+   * provided by the RBAC configuration or IAM.
+   * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + size += 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.container.v1beta1.LegacyAbac)) { + return super.equals(obj); + } + com.google.container.v1beta1.LegacyAbac other = (com.google.container.v1beta1.LegacyAbac) obj; + + boolean result = true; + result = result && (getEnabled() + == other.getEnabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.LegacyAbac parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LegacyAbac parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LegacyAbac parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LegacyAbac parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LegacyAbac parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LegacyAbac parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LegacyAbac parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LegacyAbac parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.LegacyAbac parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LegacyAbac parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.LegacyAbac parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LegacyAbac parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.LegacyAbac prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the legacy Attribute Based Access Control authorization
+   * mode.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.LegacyAbac} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LegacyAbac) + com.google.container.v1beta1.LegacyAbacOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LegacyAbac_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LegacyAbac.class, com.google.container.v1beta1.LegacyAbac.Builder.class); + } + + // Construct using com.google.container.v1beta1.LegacyAbac.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LegacyAbac_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac getDefaultInstanceForType() { + return com.google.container.v1beta1.LegacyAbac.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac build() { + com.google.container.v1beta1.LegacyAbac result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac buildPartial() { + com.google.container.v1beta1.LegacyAbac result = new com.google.container.v1beta1.LegacyAbac(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.LegacyAbac) { + return mergeFrom((com.google.container.v1beta1.LegacyAbac)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.LegacyAbac other) { + if (other == com.google.container.v1beta1.LegacyAbac.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.LegacyAbac parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.LegacyAbac) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.LegacyAbac) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.LegacyAbac) + private static final com.google.container.v1beta1.LegacyAbac DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.LegacyAbac(); + } + + public static com.google.container.v1beta1.LegacyAbac getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LegacyAbac parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LegacyAbac(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java new file mode 100644 index 000000000000..4eea49dc21b1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface LegacyAbacOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LegacyAbac) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+   * identities in the system, including service accounts, nodes, and
+   * controllers, will have statically granted permissions beyond those
+   * provided by the RBAC configuration or IAM.
+   * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java new file mode 100644 index 000000000000..987e416d0828 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java @@ -0,0 +1,936 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ListClustersRequest lists clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListClustersRequest} + */ +public final class ListClustersRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListClustersRequest) + ListClustersRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListClustersRequest.newBuilder() to construct. + private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListClustersRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListClustersRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListClustersRequest.class, com.google.container.v1beta1.ListClustersRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + 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.container.v1beta1.ListClustersRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListClustersRequest other = (com.google.container.v1beta1.ListClustersRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListClustersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListClustersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListClustersRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ListClustersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListClustersRequest lists clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListClustersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListClustersRequest) + com.google.container.v1beta1.ListClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListClustersRequest.class, com.google.container.v1beta1.ListClustersRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListClustersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListClustersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest build() { + com.google.container.v1beta1.ListClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest buildPartial() { + com.google.container.v1beta1.ListClustersRequest result = new com.google.container.v1beta1.ListClustersRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListClustersRequest) { + return mergeFrom((com.google.container.v1beta1.ListClustersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListClustersRequest other) { + if (other == com.google.container.v1beta1.ListClustersRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListClustersRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListClustersRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides, or "-" for all zones.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListClustersRequest) + private static final com.google.container.v1beta1.ListClustersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListClustersRequest(); + } + + public static com.google.container.v1beta1.ListClustersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListClustersRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java new file mode 100644 index 000000000000..d7b66d530eeb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListClustersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides, or "-" for all zones.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java new file mode 100644 index 000000000000..42be7daf1e2d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java @@ -0,0 +1,1117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ListClustersResponse is the result of ListClustersRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListClustersResponse} + */ +public final class ListClustersResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListClustersResponse) + ListClustersResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListClustersResponse.newBuilder() to construct. + private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListClustersResponse() { + clusters_ = java.util.Collections.emptyList(); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListClustersResponse( + 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) == 0x00000001)) { + clusters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + clusters_.add( + input.readMessage(com.google.container.v1beta1.Cluster.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + missingZones_.add(s); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = missingZones_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListClustersResponse.class, com.google.container.v1beta1.ListClustersResponse.Builder.class); + } + + public static final int CLUSTERS_FIELD_NUMBER = 1; + private java.util.List clusters_; + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public java.util.List getClustersList() { + return clusters_; + } + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public java.util.List + getClustersOrBuilderList() { + return clusters_; + } + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public int getClustersCount() { + return clusters_.size(); + } + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.Cluster getClusters(int index) { + return clusters_.get(index); + } + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.ClusterOrBuilder getClustersOrBuilder( + int index) { + return clusters_.get(index); + } + + public static final int MISSING_ZONES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList missingZones_; + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ProtocolStringList + getMissingZonesList() { + return missingZones_; + } + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ByteString + getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < clusters_.size(); i++) { + output.writeMessage(1, clusters_.get(i)); + } + for (int i = 0; i < missingZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < clusters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, clusters_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < missingZones_.size(); i++) { + dataSize += computeStringSizeNoTag(missingZones_.getRaw(i)); + } + size += dataSize; + size += 1 * getMissingZonesList().size(); + } + 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.container.v1beta1.ListClustersResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListClustersResponse other = (com.google.container.v1beta1.ListClustersResponse) obj; + + boolean result = true; + result = result && getClustersList() + .equals(other.getClustersList()); + result = result && getMissingZonesList() + .equals(other.getMissingZonesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getClustersCount() > 0) { + hash = (37 * hash) + CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getClustersList().hashCode(); + } + if (getMissingZonesCount() > 0) { + hash = (37 * hash) + MISSING_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getMissingZonesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListClustersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListClustersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListClustersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListClustersResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ListClustersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListClustersResponse is the result of ListClustersRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListClustersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListClustersResponse) + com.google.container.v1beta1.ListClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListClustersResponse.class, com.google.container.v1beta1.ListClustersResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListClustersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getClustersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + clustersBuilder_.clear(); + } + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListClustersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse build() { + com.google.container.v1beta1.ListClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse buildPartial() { + com.google.container.v1beta1.ListClustersResponse result = new com.google.container.v1beta1.ListClustersResponse(this); + int from_bitField0_ = bitField0_; + if (clustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusters_ = clusters_; + } else { + result.clusters_ = clustersBuilder_.build(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = missingZones_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.missingZones_ = missingZones_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListClustersResponse) { + return mergeFrom((com.google.container.v1beta1.ListClustersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListClustersResponse other) { + if (other == com.google.container.v1beta1.ListClustersResponse.getDefaultInstance()) return this; + if (clustersBuilder_ == null) { + if (!other.clusters_.isEmpty()) { + if (clusters_.isEmpty()) { + clusters_ = other.clusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClustersIsMutable(); + clusters_.addAll(other.clusters_); + } + onChanged(); + } + } else { + if (!other.clusters_.isEmpty()) { + if (clustersBuilder_.isEmpty()) { + clustersBuilder_.dispose(); + clustersBuilder_ = null; + clusters_ = other.clusters_; + bitField0_ = (bitField0_ & ~0x00000001); + clustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClustersFieldBuilder() : null; + } else { + clustersBuilder_.addAllMessages(other.clusters_); + } + } + } + if (!other.missingZones_.isEmpty()) { + if (missingZones_.isEmpty()) { + missingZones_ = other.missingZones_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListClustersResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListClustersResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List clusters_ = + java.util.Collections.emptyList(); + private void ensureClustersIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + clusters_ = new java.util.ArrayList(clusters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Cluster, com.google.container.v1beta1.Cluster.Builder, com.google.container.v1beta1.ClusterOrBuilder> clustersBuilder_; + + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public java.util.List getClustersList() { + if (clustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusters_); + } else { + return clustersBuilder_.getMessageList(); + } + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public int getClustersCount() { + if (clustersBuilder_ == null) { + return clusters_.size(); + } else { + return clustersBuilder_.getCount(); + } + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.Cluster getClusters(int index) { + if (clustersBuilder_ == null) { + return clusters_.get(index); + } else { + return clustersBuilder_.getMessage(index); + } + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder setClusters( + int index, com.google.container.v1beta1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.set(index, value); + onChanged(); + } else { + clustersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder setClusters( + int index, com.google.container.v1beta1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.set(index, builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder addClusters(com.google.container.v1beta1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.add(value); + onChanged(); + } else { + clustersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder addClusters( + int index, com.google.container.v1beta1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.add(index, value); + onChanged(); + } else { + clustersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder addClusters( + com.google.container.v1beta1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder addClusters( + int index, com.google.container.v1beta1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(index, builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder addAllClusters( + java.lang.Iterable values) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clusters_); + onChanged(); + } else { + clustersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder clearClusters() { + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + clustersBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder removeClusters(int index) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.remove(index); + onChanged(); + } else { + clustersBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.Cluster.Builder getClustersBuilder( + int index) { + return getClustersFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.ClusterOrBuilder getClustersOrBuilder( + int index) { + if (clustersBuilder_ == null) { + return clusters_.get(index); } else { + return clustersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public java.util.List + getClustersOrBuilderList() { + if (clustersBuilder_ != null) { + return clustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusters_); + } + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.Cluster.Builder addClustersBuilder() { + return getClustersFieldBuilder().addBuilder( + com.google.container.v1beta1.Cluster.getDefaultInstance()); + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.Cluster.Builder addClustersBuilder( + int index) { + return getClustersFieldBuilder().addBuilder( + index, com.google.container.v1beta1.Cluster.getDefaultInstance()); + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public java.util.List + getClustersBuilderList() { + return getClustersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Cluster, com.google.container.v1beta1.Cluster.Builder, com.google.container.v1beta1.ClusterOrBuilder> + getClustersFieldBuilder() { + if (clustersBuilder_ == null) { + clustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Cluster, com.google.container.v1beta1.Cluster.Builder, com.google.container.v1beta1.ClusterOrBuilder>( + clusters_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + clusters_ = null; + } + return clustersBuilder_; + } + + private com.google.protobuf.LazyStringList missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMissingZonesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ProtocolStringList + getMissingZonesList() { + return missingZones_.getUnmodifiableView(); + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ByteString + getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder setMissingZones( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addMissingZones( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addAllMissingZones( + java.lang.Iterable values) { + ensureMissingZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingZones_); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder clearMissingZones() { + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addMissingZonesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListClustersResponse) + private static final com.google.container.v1beta1.ListClustersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListClustersResponse(); + } + + public static com.google.container.v1beta1.ListClustersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListClustersResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java new file mode 100644 index 000000000000..873e6e5b0985 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java @@ -0,0 +1,97 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListClustersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + java.util.List + getClustersList(); + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + com.google.container.v1beta1.Cluster getClusters(int index); + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + int getClustersCount(); + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + java.util.List + getClustersOrBuilderList(); + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + com.google.container.v1beta1.ClusterOrBuilder getClustersOrBuilder( + int index); + + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + java.util.List + getMissingZonesList(); + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + int getMissingZonesCount(); + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + java.lang.String getMissingZones(int index); + /** + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + com.google.protobuf.ByteString + getMissingZonesBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java new file mode 100644 index 000000000000..1900ac668ff1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java @@ -0,0 +1,584 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ListLocationsRequest is used to request the locations that offer GKE.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListLocationsRequest} + */ +public final class ListLocationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.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() { + parent_ = ""; + } + + @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(); + } + 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(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListLocationsRequest.class, com.google.container.v1beta1.ListLocationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Contains the name of the resource requested.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Contains the name of the resource requested.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + 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.container.v1beta1.ListLocationsRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListLocationsRequest other = (com.google.container.v1beta1.ListLocationsRequest) obj; + + boolean result = true; + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.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.container.v1beta1.ListLocationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.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.container.v1beta1.ListLocationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListLocationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.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.container.v1beta1.ListLocationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.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.container.v1beta1.ListLocationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.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.container.v1beta1.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; + } + /** + *
+   * ListLocationsRequest is used to request the locations that offer GKE.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListLocationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListLocationsRequest) + com.google.container.v1beta1.ListLocationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListLocationsRequest.class, com.google.container.v1beta1.ListLocationsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListLocationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListLocationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest build() { + com.google.container.v1beta1.ListLocationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest buildPartial() { + com.google.container.v1beta1.ListLocationsRequest result = new com.google.container.v1beta1.ListLocationsRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListLocationsRequest) { + return mergeFrom((com.google.container.v1beta1.ListLocationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListLocationsRequest other) { + if (other == com.google.container.v1beta1.ListLocationsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListLocationsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListLocationsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Contains the name of the resource requested.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Contains the name of the resource requested.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Contains the name of the resource requested.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Contains the name of the resource requested.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * Contains the name of the resource requested.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListLocationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListLocationsRequest) + private static final com.google.container.v1beta1.ListLocationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListLocationsRequest(); + } + + public static com.google.container.v1beta1.ListLocationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java new file mode 100644 index 000000000000..8e0b3a646134 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListLocationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListLocationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Contains the name of the resource requested.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + *
+   * Contains the name of the resource requested.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java new file mode 100644 index 000000000000..6953d1cfae50 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java @@ -0,0 +1,1040 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ListLocationsResponse returns the list of all GKE locations and their
+ * recommendation state.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListLocationsResponse} + */ +public final class ListLocationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.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 + 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) == 0x00000001)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage(com.google.container.v1beta1.Location.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListLocationsResponse.class, com.google.container.v1beta1.ListLocationsResponse.Builder.class); + } + + private int bitField0_; + public static final int LOCATIONS_FIELD_NUMBER = 1; + private java.util.List locations_; + /** + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public java.util.List getLocationsList() { + return locations_; + } + /** + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + /** + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.Location getLocations(int index) { + return locations_.get(index); + } + /** + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.LocationOrBuilder getLocationsOrBuilder( + int index) { + return locations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + */ + 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; + } + } + /** + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + */ + 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.container.v1beta1.ListLocationsResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListLocationsResponse other = (com.google.container.v1beta1.ListLocationsResponse) obj; + + boolean result = true; + result = result && getLocationsList() + .equals(other.getLocationsList()); + result = result && getNextPageToken() + .equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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.container.v1beta1.ListLocationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.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.container.v1beta1.ListLocationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.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.container.v1beta1.ListLocationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListLocationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListLocationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.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.container.v1beta1.ListLocationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.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.container.v1beta1.ListLocationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.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.container.v1beta1.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; + } + /** + *
+   * ListLocationsResponse returns the list of all GKE locations and their
+   * recommendation state.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListLocationsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListLocationsResponse) + com.google.container.v1beta1.ListLocationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListLocationsResponse.class, com.google.container.v1beta1.ListLocationsResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListLocationsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLocationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + locationsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListLocationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsResponse build() { + com.google.container.v1beta1.ListLocationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsResponse buildPartial() { + com.google.container.v1beta1.ListLocationsResponse result = new com.google.container.v1beta1.ListLocationsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListLocationsResponse) { + return mergeFrom((com.google.container.v1beta1.ListLocationsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListLocationsResponse other) { + if (other == com.google.container.v1beta1.ListLocationsResponse.getDefaultInstance()) return this; + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLocationsFieldBuilder() : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListLocationsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListLocationsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List locations_ = + java.util.Collections.emptyList(); + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = new java.util.ArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Location, com.google.container.v1beta1.Location.Builder, com.google.container.v1beta1.LocationOrBuilder> locationsBuilder_; + + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public java.util.List getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.Location getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder setLocations( + int index, com.google.container.v1beta1.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 full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder setLocations( + int index, com.google.container.v1beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder addLocations(com.google.container.v1beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder addLocations( + int index, com.google.container.v1beta1.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 full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder addLocations( + com.google.container.v1beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder addLocations( + int index, com.google.container.v1beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder addAllLocations( + java.lang.Iterable values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.Location.Builder getLocationsBuilder( + int index) { + return getLocationsFieldBuilder().getBuilder(index); + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.LocationOrBuilder getLocationsOrBuilder( + int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.Location.Builder addLocationsBuilder() { + return getLocationsFieldBuilder().addBuilder( + com.google.container.v1beta1.Location.getDefaultInstance()); + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.Location.Builder addLocationsBuilder( + int index) { + return getLocationsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.Location.getDefaultInstance()); + } + /** + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public java.util.List + getLocationsBuilderList() { + return getLocationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Location, com.google.container.v1beta1.Location.Builder, com.google.container.v1beta1.LocationOrBuilder> + getLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Location, com.google.container.v1beta1.Location.Builder, com.google.container.v1beta1.LocationOrBuilder>( + locations_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + */ + 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; + } + } + /** + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + */ + 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; + } + } + /** + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListLocationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListLocationsResponse) + private static final com.google.container.v1beta1.ListLocationsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListLocationsResponse(); + } + + public static com.google.container.v1beta1.ListLocationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java new file mode 100644 index 000000000000..5495357e75fc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListLocationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListLocationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + java.util.List + getLocationsList(); + /** + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + com.google.container.v1beta1.Location getLocations(int index); + /** + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + int getLocationsCount(); + /** + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + java.util.List + getLocationsOrBuilderList(); + /** + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + com.google.container.v1beta1.LocationOrBuilder getLocationsOrBuilder( + int index); + + /** + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java new file mode 100644 index 000000000000..3791569caebf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java @@ -0,0 +1,1091 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ListNodePoolsRequest lists the node pool(s) for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListNodePoolsRequest} + */ +public final class ListNodePoolsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListNodePoolsRequest) + ListNodePoolsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListNodePoolsRequest.newBuilder() to construct. + private ListNodePoolsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListNodePoolsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListNodePoolsRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListNodePoolsRequest.class, com.google.container.v1beta1.ListNodePoolsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } + 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.container.v1beta1.ListNodePoolsRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListNodePoolsRequest other = (com.google.container.v1beta1.ListNodePoolsRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ListNodePoolsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListNodePoolsRequest lists the node pool(s) for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListNodePoolsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListNodePoolsRequest) + com.google.container.v1beta1.ListNodePoolsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListNodePoolsRequest.class, com.google.container.v1beta1.ListNodePoolsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListNodePoolsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListNodePoolsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest build() { + com.google.container.v1beta1.ListNodePoolsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest buildPartial() { + com.google.container.v1beta1.ListNodePoolsRequest result = new com.google.container.v1beta1.ListNodePoolsRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListNodePoolsRequest) { + return mergeFrom((com.google.container.v1beta1.ListNodePoolsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListNodePoolsRequest other) { + if (other == com.google.container.v1beta1.ListNodePoolsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListNodePoolsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListNodePoolsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string parent = 5; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListNodePoolsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListNodePoolsRequest) + private static final com.google.container.v1beta1.ListNodePoolsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListNodePoolsRequest(); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodePoolsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNodePoolsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java new file mode 100644 index 000000000000..a5968d9d5fd7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListNodePoolsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListNodePoolsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string parent = 5; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java new file mode 100644 index 000000000000..972c0a246f6f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java @@ -0,0 +1,859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ListNodePoolsResponse is the result of ListNodePoolsRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListNodePoolsResponse} + */ +public final class ListNodePoolsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListNodePoolsResponse) + ListNodePoolsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListNodePoolsResponse.newBuilder() to construct. + private ListNodePoolsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListNodePoolsResponse() { + nodePools_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListNodePoolsResponse( + 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) == 0x00000001)) { + nodePools_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodePools_.add( + input.readMessage(com.google.container.v1beta1.NodePool.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListNodePoolsResponse.class, com.google.container.v1beta1.ListNodePoolsResponse.Builder.class); + } + + public static final int NODE_POOLS_FIELD_NUMBER = 1; + private java.util.List nodePools_; + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public java.util.List getNodePoolsList() { + return nodePools_; + } + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public java.util.List + getNodePoolsOrBuilderList() { + return nodePools_; + } + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public int getNodePoolsCount() { + return nodePools_.size(); + } + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePool getNodePools(int index) { + return nodePools_.get(index); + } + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index) { + return nodePools_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(1, nodePools_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodePools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodePools_.get(i)); + } + 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.container.v1beta1.ListNodePoolsResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListNodePoolsResponse other = (com.google.container.v1beta1.ListNodePoolsResponse) obj; + + boolean result = true; + result = result && getNodePoolsList() + .equals(other.getNodePoolsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodePoolsCount() > 0) { + hash = (37 * hash) + NODE_POOLS_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ListNodePoolsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListNodePoolsResponse is the result of ListNodePoolsRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListNodePoolsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListNodePoolsResponse) + com.google.container.v1beta1.ListNodePoolsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListNodePoolsResponse.class, com.google.container.v1beta1.ListNodePoolsResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListNodePoolsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodePoolsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListNodePoolsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsResponse build() { + com.google.container.v1beta1.ListNodePoolsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsResponse buildPartial() { + com.google.container.v1beta1.ListNodePoolsResponse result = new com.google.container.v1beta1.ListNodePoolsResponse(this); + int from_bitField0_ = bitField0_; + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListNodePoolsResponse) { + return mergeFrom((com.google.container.v1beta1.ListNodePoolsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListNodePoolsResponse other) { + if (other == com.google.container.v1beta1.ListNodePoolsResponse.getDefaultInstance()) return this; + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodePoolsFieldBuilder() : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListNodePoolsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListNodePoolsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nodePools_ = + java.util.Collections.emptyList(); + private void ensureNodePoolsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + nodePools_ = new java.util.ArrayList(nodePools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> nodePoolsBuilder_; + + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public java.util.List getNodePoolsList() { + if (nodePoolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodePools_); + } else { + return nodePoolsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public int getNodePoolsCount() { + if (nodePoolsBuilder_ == null) { + return nodePools_.size(); + } else { + return nodePoolsBuilder_.getCount(); + } + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePool getNodePools(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder setNodePools( + int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.set(index, value); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder setNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.set(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder addNodePools(com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder addNodePools( + int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(index, value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder addNodePools( + com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder addNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder addAllNodePools( + java.lang.Iterable values) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodePools_); + onChanged(); + } else { + nodePoolsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder clearNodePools() { + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder removeNodePools(int index) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.remove(index); + onChanged(); + } else { + nodePoolsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePool.Builder getNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); } else { + return nodePoolsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public java.util.List + getNodePoolsOrBuilderList() { + if (nodePoolsBuilder_ != null) { + return nodePoolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodePools_); + } + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder() { + return getNodePoolsFieldBuilder().addBuilder( + com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public java.util.List + getNodePoolsBuilderList() { + return getNodePoolsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> + getNodePoolsFieldBuilder() { + if (nodePoolsBuilder_ == null) { + nodePoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder>( + nodePools_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + nodePools_ = null; + } + return nodePoolsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListNodePoolsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListNodePoolsResponse) + private static final com.google.container.v1beta1.ListNodePoolsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListNodePoolsResponse(); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodePoolsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNodePoolsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java new file mode 100644 index 000000000000..078b7bc6740e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListNodePoolsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListNodePoolsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + java.util.List + getNodePoolsList(); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + com.google.container.v1beta1.NodePool getNodePools(int index); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + int getNodePoolsCount(); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + java.util.List + getNodePoolsOrBuilderList(); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java new file mode 100644 index 000000000000..536006ee6e28 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java @@ -0,0 +1,929 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ListOperationsRequest lists operations.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListOperationsRequest} + */ +public final class ListOperationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListOperationsRequest) + ListOperationsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListOperationsRequest.newBuilder() to construct. + private ListOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListOperationsRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListOperationsRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListOperationsRequest.class, com.google.container.v1beta1.ListOperationsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + 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.container.v1beta1.ListOperationsRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListOperationsRequest other = (com.google.container.v1beta1.ListOperationsRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getParent() + .equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListOperationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListOperationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListOperationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListOperationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ListOperationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListOperationsRequest lists operations.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListOperationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListOperationsRequest) + com.google.container.v1beta1.ListOperationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListOperationsRequest.class, com.google.container.v1beta1.ListOperationsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListOperationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListOperationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest build() { + com.google.container.v1beta1.ListOperationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest buildPartial() { + com.google.container.v1beta1.ListOperationsRequest result = new com.google.container.v1beta1.ListOperationsRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListOperationsRequest) { + return mergeFrom((com.google.container.v1beta1.ListOperationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListOperationsRequest other) { + if (other == com.google.container.v1beta1.ListOperationsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListOperationsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListOperationsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+     * all zones. This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format 'projects/*/locations/*'.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListOperationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListOperationsRequest) + private static final com.google.container.v1beta1.ListOperationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListOperationsRequest(); + } + + public static com.google.container.v1beta1.ListOperationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOperationsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java new file mode 100644 index 000000000000..6535ce8b1c4d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListOperationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListOperationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+   * all zones. This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + java.lang.String getParent(); + /** + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format 'projects/*/locations/*'.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java new file mode 100644 index 000000000000..f61995d3b94f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java @@ -0,0 +1,1094 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ListOperationsResponse is the result of ListOperationsRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListOperationsResponse} + */ +public final class ListOperationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListOperationsResponse) + ListOperationsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListOperationsResponse.newBuilder() to construct. + private ListOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListOperationsResponse() { + operations_ = java.util.Collections.emptyList(); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListOperationsResponse( + 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) == 0x00000001)) { + operations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + operations_.add( + input.readMessage(com.google.container.v1beta1.Operation.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + missingZones_.add(s); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = missingZones_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListOperationsResponse.class, com.google.container.v1beta1.ListOperationsResponse.Builder.class); + } + + public static final int OPERATIONS_FIELD_NUMBER = 1; + private java.util.List operations_; + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public java.util.List getOperationsList() { + return operations_; + } + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public java.util.List + getOperationsOrBuilderList() { + return operations_; + } + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public int getOperationsCount() { + return operations_.size(); + } + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.Operation getOperations(int index) { + return operations_.get(index); + } + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.OperationOrBuilder getOperationsOrBuilder( + int index) { + return operations_.get(index); + } + + public static final int MISSING_ZONES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList missingZones_; + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ProtocolStringList + getMissingZonesList() { + return missingZones_; + } + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ByteString + getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < operations_.size(); i++) { + output.writeMessage(1, operations_.get(i)); + } + for (int i = 0; i < missingZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < operations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, operations_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < missingZones_.size(); i++) { + dataSize += computeStringSizeNoTag(missingZones_.getRaw(i)); + } + size += dataSize; + size += 1 * getMissingZonesList().size(); + } + 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.container.v1beta1.ListOperationsResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListOperationsResponse other = (com.google.container.v1beta1.ListOperationsResponse) obj; + + boolean result = true; + result = result && getOperationsList() + .equals(other.getOperationsList()); + result = result && getMissingZonesList() + .equals(other.getMissingZonesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOperationsCount() > 0) { + hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOperationsList().hashCode(); + } + if (getMissingZonesCount() > 0) { + hash = (37 * hash) + MISSING_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getMissingZonesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListOperationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListOperationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListOperationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListOperationsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ListOperationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListOperationsResponse is the result of ListOperationsRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListOperationsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListOperationsResponse) + com.google.container.v1beta1.ListOperationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListOperationsResponse.class, com.google.container.v1beta1.ListOperationsResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListOperationsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOperationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + operationsBuilder_.clear(); + } + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListOperationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse build() { + com.google.container.v1beta1.ListOperationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse buildPartial() { + com.google.container.v1beta1.ListOperationsResponse result = new com.google.container.v1beta1.ListOperationsResponse(this); + int from_bitField0_ = bitField0_; + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = missingZones_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.missingZones_ = missingZones_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListOperationsResponse) { + return mergeFrom((com.google.container.v1beta1.ListOperationsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListOperationsResponse other) { + if (other == com.google.container.v1beta1.ListOperationsResponse.getDefaultInstance()) return this; + if (operationsBuilder_ == null) { + if (!other.operations_.isEmpty()) { + if (operations_.isEmpty()) { + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOperationsIsMutable(); + operations_.addAll(other.operations_); + } + onChanged(); + } + } else { + if (!other.operations_.isEmpty()) { + if (operationsBuilder_.isEmpty()) { + operationsBuilder_.dispose(); + operationsBuilder_ = null; + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOperationsFieldBuilder() : null; + } else { + operationsBuilder_.addAllMessages(other.operations_); + } + } + } + if (!other.missingZones_.isEmpty()) { + if (missingZones_.isEmpty()) { + missingZones_ = other.missingZones_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListOperationsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListOperationsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List operations_ = + java.util.Collections.emptyList(); + private void ensureOperationsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + operations_ = new java.util.ArrayList(operations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Operation, com.google.container.v1beta1.Operation.Builder, com.google.container.v1beta1.OperationOrBuilder> operationsBuilder_; + + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public java.util.List getOperationsList() { + if (operationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(operations_); + } else { + return operationsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public int getOperationsCount() { + if (operationsBuilder_ == null) { + return operations_.size(); + } else { + return operationsBuilder_.getCount(); + } + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.Operation getOperations(int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); + } else { + return operationsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder setOperations( + int index, com.google.container.v1beta1.Operation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.set(index, value); + onChanged(); + } else { + operationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder setOperations( + int index, com.google.container.v1beta1.Operation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.set(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder addOperations(com.google.container.v1beta1.Operation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(value); + onChanged(); + } else { + operationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder addOperations( + int index, com.google.container.v1beta1.Operation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(index, value); + onChanged(); + } else { + operationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder addOperations( + com.google.container.v1beta1.Operation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder addOperations( + int index, com.google.container.v1beta1.Operation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder addAllOperations( + java.lang.Iterable values) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, operations_); + onChanged(); + } else { + operationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder clearOperations() { + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + operationsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder removeOperations(int index) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.remove(index); + onChanged(); + } else { + operationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.Operation.Builder getOperationsBuilder( + int index) { + return getOperationsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.OperationOrBuilder getOperationsOrBuilder( + int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); } else { + return operationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public java.util.List + getOperationsOrBuilderList() { + if (operationsBuilder_ != null) { + return operationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(operations_); + } + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.Operation.Builder addOperationsBuilder() { + return getOperationsFieldBuilder().addBuilder( + com.google.container.v1beta1.Operation.getDefaultInstance()); + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.Operation.Builder addOperationsBuilder( + int index) { + return getOperationsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.Operation.getDefaultInstance()); + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public java.util.List + getOperationsBuilderList() { + return getOperationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Operation, com.google.container.v1beta1.Operation.Builder, com.google.container.v1beta1.OperationOrBuilder> + getOperationsFieldBuilder() { + if (operationsBuilder_ == null) { + operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Operation, com.google.container.v1beta1.Operation.Builder, com.google.container.v1beta1.OperationOrBuilder>( + operations_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + operations_ = null; + } + return operationsBuilder_; + } + + private com.google.protobuf.LazyStringList missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMissingZonesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ProtocolStringList + getMissingZonesList() { + return missingZones_.getUnmodifiableView(); + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public com.google.protobuf.ByteString + getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder setMissingZones( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addMissingZones( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addAllMissingZones( + java.lang.Iterable values) { + ensureMissingZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingZones_); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder clearMissingZones() { + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + */ + public Builder addMissingZonesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListOperationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListOperationsResponse) + private static final com.google.container.v1beta1.ListOperationsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListOperationsResponse(); + } + + public static com.google.container.v1beta1.ListOperationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOperationsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java new file mode 100644 index 000000000000..b28275e21528 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListOperationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListOperationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + java.util.List + getOperationsList(); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + com.google.container.v1beta1.Operation getOperations(int index); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + int getOperationsCount(); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + java.util.List + getOperationsOrBuilderList(); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + com.google.container.v1beta1.OperationOrBuilder getOperationsOrBuilder( + int index); + + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + java.util.List + getMissingZonesList(); + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + int getMissingZonesCount(); + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + java.lang.String getMissingZones(int index); + /** + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + */ + com.google.protobuf.ByteString + getMissingZonesBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java new file mode 100644 index 000000000000..401f866f1cf2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java @@ -0,0 +1,1010 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ListUsableSubnetworksRequest requests the list of usable subnetworks.
+ * available to a user for creating clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksRequest} + */ +public final class ListUsableSubnetworksRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListUsableSubnetworksRequest) + ListUsableSubnetworksRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListUsableSubnetworksRequest.newBuilder() to construct. + private ListUsableSubnetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsableSubnetworksRequest() { + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListUsableSubnetworksRequest( + 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(); + + parent_ = 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 (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListUsableSubnetworksRequest.class, com.google.container.v1beta1.ListUsableSubnetworksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + */ + 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; + } + } + /** + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + */ + 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 max number of results per page that should be returned. If the number
+   * of available results is larger than `page_size`, a `next_page_token` is
+   * returned which can be used to get the next page of results in subsequent
+   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + */ + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + 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 (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + 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.container.v1beta1.ListUsableSubnetworksRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListUsableSubnetworksRequest other = (com.google.container.v1beta1.ListUsableSubnetworksRequest) obj; + + boolean result = true; + result = result && getParent() + .equals(other.getParent()); + result = result && getFilter() + .equals(other.getFilter()); + result = result && (getPageSize() + == other.getPageSize()); + result = result && getPageToken() + .equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ListUsableSubnetworksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListUsableSubnetworksRequest requests the list of usable subnetworks.
+   * available to a user for creating clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListUsableSubnetworksRequest) + com.google.container.v1beta1.ListUsableSubnetworksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListUsableSubnetworksRequest.class, com.google.container.v1beta1.ListUsableSubnetworksRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListUsableSubnetworksRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListUsableSubnetworksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest build() { + com.google.container.v1beta1.ListUsableSubnetworksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest buildPartial() { + com.google.container.v1beta1.ListUsableSubnetworksRequest result = new com.google.container.v1beta1.ListUsableSubnetworksRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListUsableSubnetworksRequest) { + return mergeFrom((com.google.container.v1beta1.ListUsableSubnetworksRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListUsableSubnetworksRequest other) { + if (other == com.google.container.v1beta1.ListUsableSubnetworksRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListUsableSubnetworksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListUsableSubnetworksRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format 'projects/*'.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + */ + 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; + } + } + /** + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + */ + 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; + } + } + /** + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + */ + 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 max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListUsableSubnetworksRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListUsableSubnetworksRequest) + private static final com.google.container.v1beta1.ListUsableSubnetworksRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListUsableSubnetworksRequest(); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableSubnetworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUsableSubnetworksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java new file mode 100644 index 000000000000..8701ee4e921d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListUsableSubnetworksRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListUsableSubnetworksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format 'projects/*'.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+   * The max number of results per page that should be returned. If the number
+   * of available results is larger than `page_size`, a `next_page_token` is
+   * returned which can be used to get the next page of results in subsequent
+   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + + /** + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + */ + java.lang.String getPageToken(); + /** + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java new file mode 100644 index 000000000000..51761acef8c2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java @@ -0,0 +1,1040 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * ListUsableSubnetworksResponse is the response of
+ * ListUsableSubnetworksRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksResponse} + */ +public final class ListUsableSubnetworksResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListUsableSubnetworksResponse) + ListUsableSubnetworksResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListUsableSubnetworksResponse.newBuilder() to construct. + private ListUsableSubnetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsableSubnetworksResponse() { + subnetworks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListUsableSubnetworksResponse( + 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) == 0x00000001)) { + subnetworks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subnetworks_.add( + input.readMessage(com.google.container.v1beta1.UsableSubnetwork.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListUsableSubnetworksResponse.class, com.google.container.v1beta1.ListUsableSubnetworksResponse.Builder.class); + } + + private int bitField0_; + public static final int SUBNETWORKS_FIELD_NUMBER = 1; + private java.util.List subnetworks_; + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List getSubnetworksList() { + return subnetworks_; + } + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List + getSubnetworksOrBuilderList() { + return subnetworks_; + } + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public int getSubnetworksCount() { + return subnetworks_.size(); + } + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetwork getSubnetworks(int index) { + return subnetworks_.get(index); + } + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder( + int index) { + return subnetworks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + */ + 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; + } + } + /** + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + */ + 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 < subnetworks_.size(); i++) { + output.writeMessage(1, subnetworks_.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 < subnetworks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, subnetworks_.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.container.v1beta1.ListUsableSubnetworksResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListUsableSubnetworksResponse other = (com.google.container.v1beta1.ListUsableSubnetworksResponse) obj; + + boolean result = true; + result = result && getSubnetworksList() + .equals(other.getSubnetworksList()); + result = result && getNextPageToken() + .equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubnetworksCount() > 0) { + hash = (37 * hash) + SUBNETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getSubnetworksList().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.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ListUsableSubnetworksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListUsableSubnetworksResponse is the response of
+   * ListUsableSubnetworksRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListUsableSubnetworksResponse) + com.google.container.v1beta1.ListUsableSubnetworksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListUsableSubnetworksResponse.class, com.google.container.v1beta1.ListUsableSubnetworksResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListUsableSubnetworksResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubnetworksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (subnetworksBuilder_ == null) { + subnetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + subnetworksBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListUsableSubnetworksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksResponse build() { + com.google.container.v1beta1.ListUsableSubnetworksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksResponse buildPartial() { + com.google.container.v1beta1.ListUsableSubnetworksResponse result = new com.google.container.v1beta1.ListUsableSubnetworksResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (subnetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subnetworks_ = subnetworks_; + } else { + result.subnetworks_ = subnetworksBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListUsableSubnetworksResponse) { + return mergeFrom((com.google.container.v1beta1.ListUsableSubnetworksResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListUsableSubnetworksResponse other) { + if (other == com.google.container.v1beta1.ListUsableSubnetworksResponse.getDefaultInstance()) return this; + if (subnetworksBuilder_ == null) { + if (!other.subnetworks_.isEmpty()) { + if (subnetworks_.isEmpty()) { + subnetworks_ = other.subnetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubnetworksIsMutable(); + subnetworks_.addAll(other.subnetworks_); + } + onChanged(); + } + } else { + if (!other.subnetworks_.isEmpty()) { + if (subnetworksBuilder_.isEmpty()) { + subnetworksBuilder_.dispose(); + subnetworksBuilder_ = null; + subnetworks_ = other.subnetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + subnetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubnetworksFieldBuilder() : null; + } else { + subnetworksBuilder_.addAllMessages(other.subnetworks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListUsableSubnetworksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListUsableSubnetworksResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List subnetworks_ = + java.util.Collections.emptyList(); + private void ensureSubnetworksIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + subnetworks_ = new java.util.ArrayList(subnetworks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetwork, com.google.container.v1beta1.UsableSubnetwork.Builder, com.google.container.v1beta1.UsableSubnetworkOrBuilder> subnetworksBuilder_; + + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List getSubnetworksList() { + if (subnetworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(subnetworks_); + } else { + return subnetworksBuilder_.getMessageList(); + } + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public int getSubnetworksCount() { + if (subnetworksBuilder_ == null) { + return subnetworks_.size(); + } else { + return subnetworksBuilder_.getCount(); + } + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetwork getSubnetworks(int index) { + if (subnetworksBuilder_ == null) { + return subnetworks_.get(index); + } else { + return subnetworksBuilder_.getMessage(index); + } + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder setSubnetworks( + int index, com.google.container.v1beta1.UsableSubnetwork value) { + if (subnetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetworksIsMutable(); + subnetworks_.set(index, value); + onChanged(); + } else { + subnetworksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder setSubnetworks( + int index, com.google.container.v1beta1.UsableSubnetwork.Builder builderForValue) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.set(index, builderForValue.build()); + onChanged(); + } else { + subnetworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks(com.google.container.v1beta1.UsableSubnetwork value) { + if (subnetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetworksIsMutable(); + subnetworks_.add(value); + onChanged(); + } else { + subnetworksBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + int index, com.google.container.v1beta1.UsableSubnetwork value) { + if (subnetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetworksIsMutable(); + subnetworks_.add(index, value); + onChanged(); + } else { + subnetworksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + com.google.container.v1beta1.UsableSubnetwork.Builder builderForValue) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.add(builderForValue.build()); + onChanged(); + } else { + subnetworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + int index, com.google.container.v1beta1.UsableSubnetwork.Builder builderForValue) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.add(index, builderForValue.build()); + onChanged(); + } else { + subnetworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder addAllSubnetworks( + java.lang.Iterable values) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subnetworks_); + onChanged(); + } else { + subnetworksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder clearSubnetworks() { + if (subnetworksBuilder_ == null) { + subnetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + subnetworksBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder removeSubnetworks(int index) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.remove(index); + onChanged(); + } else { + subnetworksBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetwork.Builder getSubnetworksBuilder( + int index) { + return getSubnetworksFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder( + int index) { + if (subnetworksBuilder_ == null) { + return subnetworks_.get(index); } else { + return subnetworksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List + getSubnetworksOrBuilderList() { + if (subnetworksBuilder_ != null) { + return subnetworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subnetworks_); + } + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetwork.Builder addSubnetworksBuilder() { + return getSubnetworksFieldBuilder().addBuilder( + com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance()); + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetwork.Builder addSubnetworksBuilder( + int index) { + return getSubnetworksFieldBuilder().addBuilder( + index, com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance()); + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List + getSubnetworksBuilderList() { + return getSubnetworksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetwork, com.google.container.v1beta1.UsableSubnetwork.Builder, com.google.container.v1beta1.UsableSubnetworkOrBuilder> + getSubnetworksFieldBuilder() { + if (subnetworksBuilder_ == null) { + subnetworksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetwork, com.google.container.v1beta1.UsableSubnetwork.Builder, com.google.container.v1beta1.UsableSubnetworkOrBuilder>( + subnetworks_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + subnetworks_ = null; + } + return subnetworksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + */ + 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; + } + } + /** + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + */ + 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; + } + } + /** + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListUsableSubnetworksResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListUsableSubnetworksResponse) + private static final com.google.container.v1beta1.ListUsableSubnetworksResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListUsableSubnetworksResponse(); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableSubnetworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUsableSubnetworksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java new file mode 100644 index 000000000000..0c3ea5191383 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListUsableSubnetworksResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListUsableSubnetworksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + java.util.List + getSubnetworksList(); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + com.google.container.v1beta1.UsableSubnetwork getSubnetworks(int index); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + int getSubnetworksCount(); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + java.util.List + getSubnetworksOrBuilderList(); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + com.google.container.v1beta1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder( + int index); + + /** + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/Location.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/Location.java new file mode 100644 index 000000000000..03643a8cc636 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/Location.java @@ -0,0 +1,916 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Location returns the location name, and if the location is recommended
+ * for GKE cluster scheduling.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Location} + */ +public final class Location extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.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() { + type_ = 0; + name_ = ""; + recommended_ = false; + } + + @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 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + + recommended_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Location.class, com.google.container.v1beta1.Location.Builder.class); + } + + /** + *
+   * LocationType is the type of GKE location, regional or zonal.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Location.LocationType} + */ + public enum LocationType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * LOCATION_TYPE_UNSPECIFIED means the location type was not determined.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + LOCATION_TYPE_UNSPECIFIED(0), + /** + *
+     * A GKE Location where Zonal clusters can be created.
+     * 
+ * + * ZONE = 1; + */ + ZONE(1), + /** + *
+     * A GKE Location where Regional clusters can be created.
+     * 
+ * + * REGION = 2; + */ + REGION(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * LOCATION_TYPE_UNSPECIFIED means the location type was not determined.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + public static final int LOCATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * A GKE Location where Zonal clusters can be created.
+     * 
+ * + * ZONE = 1; + */ + public static final int ZONE_VALUE = 1; + /** + *
+     * A GKE Location where Regional clusters can be created.
+     * 
+ * + * REGION = 2; + */ + public static final int REGION_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LocationType valueOf(int value) { + return forNumber(value); + } + + public static LocationType forNumber(int value) { + switch (value) { + case 0: return LOCATION_TYPE_UNSPECIFIED; + case 1: return ZONE; + case 2: return REGION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LocationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationType findValueByNumber(int number) { + return LocationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.Location.getDescriptor().getEnumTypes().get(0); + } + + private static final LocationType[] VALUES = values(); + + public static LocationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LocationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Location.LocationType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + */ + public com.google.container.v1beta1.Location.LocationType getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Location.LocationType result = com.google.container.v1beta1.Location.LocationType.valueOf(type_); + return result == null ? com.google.container.v1beta1.Location.LocationType.UNRECOGNIZED : result; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+   * Contains the name of the resource requested.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+   * Contains the name of the resource requested.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 2; + */ + 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 RECOMMENDED_FIELD_NUMBER = 3; + private boolean recommended_; + /** + *
+   * Whether the location is recomended for GKE cluster scheduling.
+   * 
+ * + * bool recommended = 3; + */ + public boolean getRecommended() { + return recommended_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.container.v1beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (recommended_ != false) { + output.writeBool(3, recommended_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.container.v1beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (recommended_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, recommended_); + } + 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.container.v1beta1.Location)) { + return super.equals(obj); + } + com.google.container.v1beta1.Location other = (com.google.container.v1beta1.Location) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getName() + .equals(other.getName()); + result = result && (getRecommended() + == other.getRecommended()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + RECOMMENDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRecommended()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.Location parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Location parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Location parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Location parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Location parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Location parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Location parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Location parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.Location parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Location parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.Location parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Location parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.Location prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Location returns the location name, and if the location is recommended
+   * for GKE cluster scheduling.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.Location} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Location) + com.google.container.v1beta1.LocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Location.class, com.google.container.v1beta1.Location.Builder.class); + } + + // Construct using com.google.container.v1beta1.Location.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + name_ = ""; + + recommended_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Location_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Location getDefaultInstanceForType() { + return com.google.container.v1beta1.Location.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Location build() { + com.google.container.v1beta1.Location result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Location buildPartial() { + com.google.container.v1beta1.Location result = new com.google.container.v1beta1.Location(this); + result.type_ = type_; + result.name_ = name_; + result.recommended_ = recommended_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.Location) { + return mergeFrom((com.google.container.v1beta1.Location)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Location other) { + if (other == com.google.container.v1beta1.Location.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getRecommended() != false) { + setRecommended(other.getRecommended()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.Location parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.Location) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + */ + public com.google.container.v1beta1.Location.LocationType getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Location.LocationType result = com.google.container.v1beta1.Location.LocationType.valueOf(type_); + return result == null ? com.google.container.v1beta1.Location.LocationType.UNRECOGNIZED : result; + } + /** + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + */ + public Builder setType(com.google.container.v1beta1.Location.LocationType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Contains the name of the resource requested.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+     * Contains the name of the resource requested.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 2; + */ + 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; + } + } + /** + *
+     * Contains the name of the resource requested.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Contains the name of the resource requested.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Contains the name of the resource requested.
+     * Specified in the format 'projects/*/locations/*'.
+     * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean recommended_ ; + /** + *
+     * Whether the location is recomended for GKE cluster scheduling.
+     * 
+ * + * bool recommended = 3; + */ + public boolean getRecommended() { + return recommended_; + } + /** + *
+     * Whether the location is recomended for GKE cluster scheduling.
+     * 
+ * + * bool recommended = 3; + */ + public Builder setRecommended(boolean value) { + + recommended_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the location is recomended for GKE cluster scheduling.
+     * 
+ * + * bool recommended = 3; + */ + public Builder clearRecommended() { + + recommended_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Location) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Location) + private static final com.google.container.v1beta1.Location DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Location(); + } + + public static com.google.container.v1beta1.Location getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Location(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.Location getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LocationName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LocationName.java new file mode 100644 index 000000000000..f7290ee31f33 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LocationName.java @@ -0,0 +1,189 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1beta1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class LocationName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public static LocationName of(String project, String location) { + return newBuilder() + .setProject(project) + .setLocation(location) + .build(); + } + + public static String format(String project, String location) { + return newBuilder() + .setProject(project) + .setLocation(location) + .build() + .toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location); + } + + /** Builder for LocationName. */ + public static class Builder { + + private String project; + private String location; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder() { + } + + private Builder(LocationName locationName) { + project = locationName.project; + location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof LocationName) { + LocationName that = (LocationName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java new file mode 100644 index 000000000000..cab40c47c590 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface LocationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Location) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + */ + int getTypeValue(); + /** + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + */ + com.google.container.v1beta1.Location.LocationType getType(); + + /** + *
+   * Contains the name of the resource requested.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+   * Contains the name of the resource requested.
+   * Specified in the format 'projects/*/locations/*'.
+   * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Whether the location is recomended for GKE cluster scheduling.
+   * 
+ * + * bool recommended = 3; + */ + boolean getRecommended(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java new file mode 100644 index 000000000000..fdaa133fb684 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java @@ -0,0 +1,651 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * MaintenancePolicy defines the maintenance policy to be used for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenancePolicy} + */ +public final class MaintenancePolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenancePolicy) + MaintenancePolicyOrBuilder { +private static final long serialVersionUID = 0L; + // Use MaintenancePolicy.newBuilder() to construct. + private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MaintenancePolicy() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MaintenancePolicy( + 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: { + com.google.container.v1beta1.MaintenanceWindow.Builder subBuilder = null; + if (window_ != null) { + subBuilder = window_.toBuilder(); + } + window_ = input.readMessage(com.google.container.v1beta1.MaintenanceWindow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(window_); + window_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenancePolicy.class, com.google.container.v1beta1.MaintenancePolicy.Builder.class); + } + + public static final int WINDOW_FIELD_NUMBER = 1; + private com.google.container.v1beta1.MaintenanceWindow window_; + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public boolean hasWindow() { + return window_ != null; + } + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public com.google.container.v1beta1.MaintenanceWindow getWindow() { + return window_ == null ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() : window_; + } + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder() { + return getWindow(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (window_ != null) { + output.writeMessage(1, getWindow()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (window_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWindow()); + } + 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.container.v1beta1.MaintenancePolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.MaintenancePolicy other = (com.google.container.v1beta1.MaintenancePolicy) obj; + + boolean result = true; + result = result && (hasWindow() == other.hasWindow()); + if (hasWindow()) { + result = result && getWindow() + .equals(other.getWindow()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWindow()) { + hash = (37 * hash) + WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getWindow().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenancePolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenancePolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenancePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaintenancePolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.MaintenancePolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * MaintenancePolicy defines the maintenance policy to be used for the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenancePolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MaintenancePolicy) + com.google.container.v1beta1.MaintenancePolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenancePolicy.class, com.google.container.v1beta1.MaintenancePolicy.Builder.class); + } + + // Construct using com.google.container.v1beta1.MaintenancePolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (windowBuilder_ == null) { + window_ = null; + } else { + window_ = null; + windowBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy build() { + com.google.container.v1beta1.MaintenancePolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy buildPartial() { + com.google.container.v1beta1.MaintenancePolicy result = new com.google.container.v1beta1.MaintenancePolicy(this); + if (windowBuilder_ == null) { + result.window_ = window_; + } else { + result.window_ = windowBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MaintenancePolicy) { + return mergeFrom((com.google.container.v1beta1.MaintenancePolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaintenancePolicy other) { + if (other == com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance()) return this; + if (other.hasWindow()) { + mergeWindow(other.getWindow()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MaintenancePolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MaintenancePolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1beta1.MaintenanceWindow window_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceWindow, com.google.container.v1beta1.MaintenanceWindow.Builder, com.google.container.v1beta1.MaintenanceWindowOrBuilder> windowBuilder_; + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public boolean hasWindow() { + return windowBuilder_ != null || window_ != null; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public com.google.container.v1beta1.MaintenanceWindow getWindow() { + if (windowBuilder_ == null) { + return window_ == null ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() : window_; + } else { + return windowBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder setWindow(com.google.container.v1beta1.MaintenanceWindow value) { + if (windowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + window_ = value; + onChanged(); + } else { + windowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder setWindow( + com.google.container.v1beta1.MaintenanceWindow.Builder builderForValue) { + if (windowBuilder_ == null) { + window_ = builderForValue.build(); + onChanged(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder mergeWindow(com.google.container.v1beta1.MaintenanceWindow value) { + if (windowBuilder_ == null) { + if (window_ != null) { + window_ = + com.google.container.v1beta1.MaintenanceWindow.newBuilder(window_).mergeFrom(value).buildPartial(); + } else { + window_ = value; + } + onChanged(); + } else { + windowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder clearWindow() { + if (windowBuilder_ == null) { + window_ = null; + onChanged(); + } else { + window_ = null; + windowBuilder_ = null; + } + + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public com.google.container.v1beta1.MaintenanceWindow.Builder getWindowBuilder() { + + onChanged(); + return getWindowFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder() { + if (windowBuilder_ != null) { + return windowBuilder_.getMessageOrBuilder(); + } else { + return window_ == null ? + com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() : window_; + } + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceWindow, com.google.container.v1beta1.MaintenanceWindow.Builder, com.google.container.v1beta1.MaintenanceWindowOrBuilder> + getWindowFieldBuilder() { + if (windowBuilder_ == null) { + windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceWindow, com.google.container.v1beta1.MaintenanceWindow.Builder, com.google.container.v1beta1.MaintenanceWindowOrBuilder>( + getWindow(), + getParentForChildren(), + isClean()); + window_ = null; + } + return windowBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaintenancePolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenancePolicy) + private static final com.google.container.v1beta1.MaintenancePolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenancePolicy(); + } + + public static com.google.container.v1beta1.MaintenancePolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenancePolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java new file mode 100644 index 000000000000..5534c5ea2a4d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MaintenancePolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenancePolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + boolean hasWindow(); + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + com.google.container.v1beta1.MaintenanceWindow getWindow(); + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java new file mode 100644 index 000000000000..015250027c83 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java @@ -0,0 +1,742 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * MaintenanceWindow defines the maintenance window to be used for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenanceWindow} + */ +public final class MaintenanceWindow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenanceWindow) + MaintenanceWindowOrBuilder { +private static final long serialVersionUID = 0L; + // Use MaintenanceWindow.newBuilder() to construct. + private MaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MaintenanceWindow() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MaintenanceWindow( + 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 18: { + com.google.container.v1beta1.DailyMaintenanceWindow.Builder subBuilder = null; + if (policyCase_ == 2) { + subBuilder = ((com.google.container.v1beta1.DailyMaintenanceWindow) policy_).toBuilder(); + } + policy_ = + input.readMessage(com.google.container.v1beta1.DailyMaintenanceWindow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.container.v1beta1.DailyMaintenanceWindow) policy_); + policy_ = subBuilder.buildPartial(); + } + policyCase_ = 2; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceWindow.class, com.google.container.v1beta1.MaintenanceWindow.Builder.class); + } + + private int policyCase_ = 0; + private java.lang.Object policy_; + public enum PolicyCase + implements com.google.protobuf.Internal.EnumLite { + DAILY_MAINTENANCE_WINDOW(2), + POLICY_NOT_SET(0); + private final int value; + private PolicyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PolicyCase valueOf(int value) { + return forNumber(value); + } + + public static PolicyCase forNumber(int value) { + switch (value) { + case 2: return DAILY_MAINTENANCE_WINDOW; + case 0: return POLICY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PolicyCase + getPolicyCase() { + return PolicyCase.forNumber( + policyCase_); + } + + public static final int DAILY_MAINTENANCE_WINDOW_FIELD_NUMBER = 2; + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public boolean hasDailyMaintenanceWindow() { + return policyCase_ == 2; + } + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1beta1.DailyMaintenanceWindow getDailyMaintenanceWindow() { + if (policyCase_ == 2) { + return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder() { + if (policyCase_ == 2) { + return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (policyCase_ == 2) { + output.writeMessage(2, (com.google.container.v1beta1.DailyMaintenanceWindow) policy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (policyCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.container.v1beta1.DailyMaintenanceWindow) policy_); + } + 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.container.v1beta1.MaintenanceWindow)) { + return super.equals(obj); + } + com.google.container.v1beta1.MaintenanceWindow other = (com.google.container.v1beta1.MaintenanceWindow) obj; + + boolean result = true; + result = result && getPolicyCase().equals( + other.getPolicyCase()); + if (!result) return false; + switch (policyCase_) { + case 2: + result = result && getDailyMaintenanceWindow() + .equals(other.getDailyMaintenanceWindow()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (policyCase_) { + case 2: + hash = (37 * hash) + DAILY_MAINTENANCE_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getDailyMaintenanceWindow().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenanceWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenanceWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenanceWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaintenanceWindow parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.MaintenanceWindow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * MaintenanceWindow defines the maintenance window to be used for the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenanceWindow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MaintenanceWindow) + com.google.container.v1beta1.MaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceWindow.class, com.google.container.v1beta1.MaintenanceWindow.Builder.class); + } + + // Construct using com.google.container.v1beta1.MaintenanceWindow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + policyCase_ = 0; + policy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindow getDefaultInstanceForType() { + return com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindow build() { + com.google.container.v1beta1.MaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindow buildPartial() { + com.google.container.v1beta1.MaintenanceWindow result = new com.google.container.v1beta1.MaintenanceWindow(this); + if (policyCase_ == 2) { + if (dailyMaintenanceWindowBuilder_ == null) { + result.policy_ = policy_; + } else { + result.policy_ = dailyMaintenanceWindowBuilder_.build(); + } + } + result.policyCase_ = policyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MaintenanceWindow) { + return mergeFrom((com.google.container.v1beta1.MaintenanceWindow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaintenanceWindow other) { + if (other == com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance()) return this; + switch (other.getPolicyCase()) { + case DAILY_MAINTENANCE_WINDOW: { + mergeDailyMaintenanceWindow(other.getDailyMaintenanceWindow()); + break; + } + case POLICY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MaintenanceWindow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MaintenanceWindow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int policyCase_ = 0; + private java.lang.Object policy_; + public PolicyCase + getPolicyCase() { + return PolicyCase.forNumber( + policyCase_); + } + + public Builder clearPolicy() { + policyCase_ = 0; + policy_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DailyMaintenanceWindow, com.google.container.v1beta1.DailyMaintenanceWindow.Builder, com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder> dailyMaintenanceWindowBuilder_; + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public boolean hasDailyMaintenanceWindow() { + return policyCase_ == 2; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1beta1.DailyMaintenanceWindow getDailyMaintenanceWindow() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2) { + return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } else { + if (policyCase_ == 2) { + return dailyMaintenanceWindowBuilder_.getMessage(); + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder setDailyMaintenanceWindow(com.google.container.v1beta1.DailyMaintenanceWindow value) { + if (dailyMaintenanceWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + onChanged(); + } else { + dailyMaintenanceWindowBuilder_.setMessage(value); + } + policyCase_ = 2; + return this; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder setDailyMaintenanceWindow( + com.google.container.v1beta1.DailyMaintenanceWindow.Builder builderForValue) { + if (dailyMaintenanceWindowBuilder_ == null) { + policy_ = builderForValue.build(); + onChanged(); + } else { + dailyMaintenanceWindowBuilder_.setMessage(builderForValue.build()); + } + policyCase_ = 2; + return this; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder mergeDailyMaintenanceWindow(com.google.container.v1beta1.DailyMaintenanceWindow value) { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2 && + policy_ != com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance()) { + policy_ = com.google.container.v1beta1.DailyMaintenanceWindow.newBuilder((com.google.container.v1beta1.DailyMaintenanceWindow) policy_) + .mergeFrom(value).buildPartial(); + } else { + policy_ = value; + } + onChanged(); + } else { + if (policyCase_ == 2) { + dailyMaintenanceWindowBuilder_.mergeFrom(value); + } + dailyMaintenanceWindowBuilder_.setMessage(value); + } + policyCase_ = 2; + return this; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder clearDailyMaintenanceWindow() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2) { + policyCase_ = 0; + policy_ = null; + onChanged(); + } + } else { + if (policyCase_ == 2) { + policyCase_ = 0; + policy_ = null; + } + dailyMaintenanceWindowBuilder_.clear(); + } + return this; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1beta1.DailyMaintenanceWindow.Builder getDailyMaintenanceWindowBuilder() { + return getDailyMaintenanceWindowFieldBuilder().getBuilder(); + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder() { + if ((policyCase_ == 2) && (dailyMaintenanceWindowBuilder_ != null)) { + return dailyMaintenanceWindowBuilder_.getMessageOrBuilder(); + } else { + if (policyCase_ == 2) { + return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DailyMaintenanceWindow, com.google.container.v1beta1.DailyMaintenanceWindow.Builder, com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder> + getDailyMaintenanceWindowFieldBuilder() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (!(policyCase_ == 2)) { + policy_ = com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + dailyMaintenanceWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DailyMaintenanceWindow, com.google.container.v1beta1.DailyMaintenanceWindow.Builder, com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder>( + (com.google.container.v1beta1.DailyMaintenanceWindow) policy_, + getParentForChildren(), + isClean()); + policy_ = null; + } + policyCase_ = 2; + onChanged();; + return dailyMaintenanceWindowBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenanceWindow) + private static final com.google.container.v1beta1.MaintenanceWindow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenanceWindow(); + } + + public static com.google.container.v1beta1.MaintenanceWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenanceWindow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..03ede54093ee --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MaintenanceWindowOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + boolean hasDailyMaintenanceWindow(); + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + com.google.container.v1beta1.DailyMaintenanceWindow getDailyMaintenanceWindow(); + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder(); + + public com.google.container.v1beta1.MaintenanceWindow.PolicyCase getPolicyCase(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuth.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuth.java new file mode 100644 index 000000000000..e4744fdbdebb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuth.java @@ -0,0 +1,1510 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * The authentication information for accessing the master endpoint.
+ * Authentication can be done using HTTP basic auth or using client
+ * certificates.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuth} + */ +public final class MasterAuth extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuth) + MasterAuthOrBuilder { +private static final long serialVersionUID = 0L; + // Use MasterAuth.newBuilder() to construct. + private MasterAuth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MasterAuth() { + username_ = ""; + password_ = ""; + clusterCaCertificate_ = ""; + clientCertificate_ = ""; + clientKey_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MasterAuth( + 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(); + + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 26: { + com.google.container.v1beta1.ClientCertificateConfig.Builder subBuilder = null; + if (clientCertificateConfig_ != null) { + subBuilder = clientCertificateConfig_.toBuilder(); + } + clientCertificateConfig_ = input.readMessage(com.google.container.v1beta1.ClientCertificateConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientCertificateConfig_); + clientCertificateConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterCaCertificate_ = s; + break; + } + case 810: { + java.lang.String s = input.readStringRequireUtf8(); + + clientCertificate_ = s; + break; + } + case 818: { + java.lang.String s = input.readStringRequireUtf8(); + + clientKey_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuth.class, com.google.container.v1beta1.MasterAuth.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object username_; + /** + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, you can disable basic authentication by
+   * providing an empty username.
+   * 
+ * + * string username = 1; + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + /** + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, you can disable basic authentication by
+   * providing an empty username.
+   * 
+ * + * string username = 1; + */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * 
+ * + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * 
+ * + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1beta1.ClientCertificateConfig clientCertificateConfig_; + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public boolean hasClientCertificateConfig() { + return clientCertificateConfig_ != null; + } + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1beta1.ClientCertificateConfig getClientCertificateConfig() { + return clientCertificateConfig_ == null ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; + } + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1beta1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder() { + return getClientCertificateConfig(); + } + + public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; + private volatile java.lang.Object clusterCaCertificate_; + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + */ + public java.lang.String getClusterCaCertificate() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCaCertificate_ = s; + return s; + } + } + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + */ + public com.google.protobuf.ByteString + getClusterCaCertificateBytes() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 101; + private volatile java.lang.Object clientCertificate_; + /** + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + */ + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } + } + /** + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + */ + public com.google.protobuf.ByteString + getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_KEY_FIELD_NUMBER = 102; + private volatile java.lang.Object clientKey_; + /** + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + */ + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } + } + /** + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + */ + public com.google.protobuf.ByteString + getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + if (clientCertificateConfig_ != null) { + output.writeMessage(3, getClientCertificateConfig()); + } + if (!getClusterCaCertificateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, clusterCaCertificate_); + } + if (!getClientCertificateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, clientCertificate_); + } + if (!getClientKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, clientKey_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + if (clientCertificateConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClientCertificateConfig()); + } + if (!getClusterCaCertificateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, clusterCaCertificate_); + } + if (!getClientCertificateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, clientCertificate_); + } + if (!getClientKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, clientKey_); + } + 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.container.v1beta1.MasterAuth)) { + return super.equals(obj); + } + com.google.container.v1beta1.MasterAuth other = (com.google.container.v1beta1.MasterAuth) obj; + + boolean result = true; + result = result && getUsername() + .equals(other.getUsername()); + result = result && getPassword() + .equals(other.getPassword()); + result = result && (hasClientCertificateConfig() == other.hasClientCertificateConfig()); + if (hasClientCertificateConfig()) { + result = result && getClientCertificateConfig() + .equals(other.getClientCertificateConfig()); + } + result = result && getClusterCaCertificate() + .equals(other.getClusterCaCertificate()); + result = result && getClientCertificate() + .equals(other.getClientCertificate()); + result = result && getClientKey() + .equals(other.getClientKey()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + if (hasClientCertificateConfig()) { + hash = (37 * hash) + CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getClientCertificateConfig().hashCode(); + } + hash = (37 * hash) + CLUSTER_CA_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getClusterCaCertificate().hashCode(); + hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getClientCertificate().hashCode(); + hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER; + hash = (53 * hash) + getClientKey().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MasterAuth parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MasterAuth parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MasterAuth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MasterAuth parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MasterAuth parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuth parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MasterAuth parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuth parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MasterAuth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.MasterAuth prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 authentication information for accessing the master endpoint.
+   * Authentication can be done using HTTP basic auth or using client
+   * certificates.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuth} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MasterAuth) + com.google.container.v1beta1.MasterAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuth.class, com.google.container.v1beta1.MasterAuth.Builder.class); + } + + // Construct using com.google.container.v1beta1.MasterAuth.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + username_ = ""; + + password_ = ""; + + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = null; + } else { + clientCertificateConfig_ = null; + clientCertificateConfigBuilder_ = null; + } + clusterCaCertificate_ = ""; + + clientCertificate_ = ""; + + clientKey_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuth_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth getDefaultInstanceForType() { + return com.google.container.v1beta1.MasterAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth build() { + com.google.container.v1beta1.MasterAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth buildPartial() { + com.google.container.v1beta1.MasterAuth result = new com.google.container.v1beta1.MasterAuth(this); + result.username_ = username_; + result.password_ = password_; + if (clientCertificateConfigBuilder_ == null) { + result.clientCertificateConfig_ = clientCertificateConfig_; + } else { + result.clientCertificateConfig_ = clientCertificateConfigBuilder_.build(); + } + result.clusterCaCertificate_ = clusterCaCertificate_; + result.clientCertificate_ = clientCertificate_; + result.clientKey_ = clientKey_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MasterAuth) { + return mergeFrom((com.google.container.v1beta1.MasterAuth)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MasterAuth other) { + if (other == com.google.container.v1beta1.MasterAuth.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (other.hasClientCertificateConfig()) { + mergeClientCertificateConfig(other.getClientCertificateConfig()); + } + if (!other.getClusterCaCertificate().isEmpty()) { + clusterCaCertificate_ = other.clusterCaCertificate_; + onChanged(); + } + if (!other.getClientCertificate().isEmpty()) { + clientCertificate_ = other.clientCertificate_; + onChanged(); + } + if (!other.getClientKey().isEmpty()) { + clientKey_ = other.clientKey_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MasterAuth parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MasterAuth) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object username_ = ""; + /** + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, you can disable basic authentication by
+     * providing an empty username.
+     * 
+ * + * string username = 1; + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, you can disable basic authentication by
+     * providing an empty username.
+     * 
+ * + * string username = 1; + */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, you can disable basic authentication by
+     * providing an empty username.
+     * 
+ * + * string username = 1; + */ + public Builder setUsername( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, you can disable basic authentication by
+     * providing an empty username.
+     * 
+ * + * string username = 1; + */ + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, you can disable basic authentication by
+     * providing an empty username.
+     * 
+ * + * string username = 1; + */ + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * 
+ * + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * 
+ * + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * 
+ * + * string password = 2; + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * 
+ * + * string password = 2; + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * 
+ * + * string password = 2; + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ClientCertificateConfig clientCertificateConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClientCertificateConfig, com.google.container.v1beta1.ClientCertificateConfig.Builder, com.google.container.v1beta1.ClientCertificateConfigOrBuilder> clientCertificateConfigBuilder_; + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public boolean hasClientCertificateConfig() { + return clientCertificateConfigBuilder_ != null || clientCertificateConfig_ != null; + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1beta1.ClientCertificateConfig getClientCertificateConfig() { + if (clientCertificateConfigBuilder_ == null) { + return clientCertificateConfig_ == null ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; + } else { + return clientCertificateConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig(com.google.container.v1beta1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientCertificateConfig_ = value; + onChanged(); + } else { + clientCertificateConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig( + com.google.container.v1beta1.ClientCertificateConfig.Builder builderForValue) { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = builderForValue.build(); + onChanged(); + } else { + clientCertificateConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder mergeClientCertificateConfig(com.google.container.v1beta1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (clientCertificateConfig_ != null) { + clientCertificateConfig_ = + com.google.container.v1beta1.ClientCertificateConfig.newBuilder(clientCertificateConfig_).mergeFrom(value).buildPartial(); + } else { + clientCertificateConfig_ = value; + } + onChanged(); + } else { + clientCertificateConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder clearClientCertificateConfig() { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = null; + onChanged(); + } else { + clientCertificateConfig_ = null; + clientCertificateConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1beta1.ClientCertificateConfig.Builder getClientCertificateConfigBuilder() { + + onChanged(); + return getClientCertificateConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1beta1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder() { + if (clientCertificateConfigBuilder_ != null) { + return clientCertificateConfigBuilder_.getMessageOrBuilder(); + } else { + return clientCertificateConfig_ == null ? + com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; + } + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClientCertificateConfig, com.google.container.v1beta1.ClientCertificateConfig.Builder, com.google.container.v1beta1.ClientCertificateConfigOrBuilder> + getClientCertificateConfigFieldBuilder() { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClientCertificateConfig, com.google.container.v1beta1.ClientCertificateConfig.Builder, com.google.container.v1beta1.ClientCertificateConfigOrBuilder>( + getClientCertificateConfig(), + getParentForChildren(), + isClean()); + clientCertificateConfig_ = null; + } + return clientCertificateConfigBuilder_; + } + + private java.lang.Object clusterCaCertificate_ = ""; + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + */ + public java.lang.String getClusterCaCertificate() { + java.lang.Object ref = clusterCaCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCaCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + */ + public com.google.protobuf.ByteString + getClusterCaCertificateBytes() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + */ + public Builder setClusterCaCertificate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterCaCertificate_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + */ + public Builder clearClusterCaCertificate() { + + clusterCaCertificate_ = getDefaultInstance().getClusterCaCertificate(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + */ + public Builder setClusterCaCertificateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterCaCertificate_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientCertificate_ = ""; + /** + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + */ + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + */ + public com.google.protobuf.ByteString + getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + */ + public Builder setClientCertificate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientCertificate_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + */ + public Builder clearClientCertificate() { + + clientCertificate_ = getDefaultInstance().getClientCertificate(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + */ + public Builder setClientCertificateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientCertificate_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientKey_ = ""; + /** + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + */ + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + */ + public com.google.protobuf.ByteString + getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + */ + public Builder setClientKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientKey_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + */ + public Builder clearClientKey() { + + clientKey_ = getDefaultInstance().getClientKey(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + */ + public Builder setClientKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientKey_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MasterAuth) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MasterAuth) + private static final com.google.container.v1beta1.MasterAuth DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MasterAuth(); + } + + public static com.google.container.v1beta1.MasterAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MasterAuth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MasterAuth(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java new file mode 100644 index 000000000000..fd4744e0b974 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java @@ -0,0 +1,146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MasterAuthOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuth) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, you can disable basic authentication by
+   * providing an empty username.
+   * 
+ * + * string username = 1; + */ + java.lang.String getUsername(); + /** + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, you can disable basic authentication by
+   * providing an empty username.
+   * 
+ * + * string username = 1; + */ + com.google.protobuf.ByteString + getUsernameBytes(); + + /** + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * 
+ * + * string password = 2; + */ + java.lang.String getPassword(); + /** + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * 
+ * + * string password = 2; + */ + com.google.protobuf.ByteString + getPasswordBytes(); + + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + boolean hasClientCertificateConfig(); + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + com.google.container.v1beta1.ClientCertificateConfig getClientCertificateConfig(); + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + com.google.container.v1beta1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder(); + + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + */ + java.lang.String getClusterCaCertificate(); + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + */ + com.google.protobuf.ByteString + getClusterCaCertificateBytes(); + + /** + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + */ + java.lang.String getClientCertificate(); + /** + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + */ + com.google.protobuf.ByteString + getClientCertificateBytes(); + + /** + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + */ + java.lang.String getClientKey(); + /** + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + */ + com.google.protobuf.ByteString + getClientKeyBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java new file mode 100644 index 000000000000..99daf36494cd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java @@ -0,0 +1,1733 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration options for the master authorized networks feature. Enabled
+ * master authorized networks will disallow all external traffic to access
+ * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
+ * Google Compute Engine Public IPs and Google Prod IPs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig} + */ +public final class MasterAuthorizedNetworksConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig) + MasterAuthorizedNetworksConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use MasterAuthorizedNetworksConfig.newBuilder() to construct. + private MasterAuthorizedNetworksConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MasterAuthorizedNetworksConfig() { + enabled_ = false; + cidrBlocks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MasterAuthorizedNetworksConfig( + 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 8: { + + enabled_ = input.readBool(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + cidrBlocks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + cidrBlocks_.add( + input.readMessage(com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.class, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder.class); + } + + public interface CidrBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + */ + java.lang.String getCidrBlock(); + /** + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + */ + com.google.protobuf.ByteString + getCidrBlockBytes(); + } + /** + *
+   * CidrBlock contains an optional name and one CIDR block.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class CidrBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + CidrBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use CidrBlock.newBuilder() to construct. + private CidrBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CidrBlock() { + displayName_ = ""; + cidrBlock_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CidrBlock( + 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(); + + displayName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + cidrBlock_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.class, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + */ + 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; + } + } + /** + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + */ + 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 CIDR_BLOCK_FIELD_NUMBER = 2; + private volatile java.lang.Object cidrBlock_; + /** + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } + } + /** + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + */ + public com.google.protobuf.ByteString + getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!getCidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrBlock_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!getCidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrBlock_); + } + 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.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock)) { + return super.equals(obj); + } + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock other = (com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) obj; + + boolean result = true; + result = result && getDisplayName() + .equals(other.getDisplayName()); + result = result && getCidrBlock() + .equals(other.getCidrBlock()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getCidrBlock().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CidrBlock contains an optional name and one CIDR block.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.class, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); + } + + // Construct using com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + cidrBlock_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstanceForType() { + return com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock build() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock buildPartial() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock result = new com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock(this); + result.displayName_ = displayName_; + result.cidrBlock_ = cidrBlock_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) { + return mergeFrom((com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock other) { + if (other == com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getCidrBlock().isEmpty()) { + cidrBlock_ = other.cidrBlock_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + */ + 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; + } + } + /** + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + */ + 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; + } + } + /** + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object cidrBlock_ = ""; + /** + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + */ + public com.google.protobuf.ByteString + getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + */ + public Builder setCidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + */ + public Builder clearCidrBlock() { + + cidrBlock_ = getDefaultInstance().getCidrBlock(); + onChanged(); + return this; + } + /** + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + */ + public Builder setCidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cidrBlock_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + private static final com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock(); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CidrBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CidrBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+   * Whether or not master authorized networks is enabled.
+   * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + public static final int CIDR_BLOCKS_FIELD_NUMBER = 2; + private java.util.List cidrBlocks_; + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List getCidrBlocksList() { + return cidrBlocks_; + } + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List + getCidrBlocksOrBuilderList() { + return cidrBlocks_; + } + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public int getCidrBlocksCount() { + return cidrBlocks_.size(); + } + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index) { + return cidrBlocks_.get(index); + } + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( + int index) { + return cidrBlocks_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + for (int i = 0; i < cidrBlocks_.size(); i++) { + output.writeMessage(2, cidrBlocks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + for (int i = 0; i < cidrBlocks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, cidrBlocks_.get(i)); + } + 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.container.v1beta1.MasterAuthorizedNetworksConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.MasterAuthorizedNetworksConfig other = (com.google.container.v1beta1.MasterAuthorizedNetworksConfig) obj; + + boolean result = true; + result = result && (getEnabled() + == other.getEnabled()); + result = result && getCidrBlocksList() + .equals(other.getCidrBlocksList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + if (getCidrBlocksCount() > 0) { + hash = (37 * hash) + CIDR_BLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getCidrBlocksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.MasterAuthorizedNetworksConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for the master authorized networks feature. Enabled
+   * master authorized networks will disallow all external traffic to access
+   * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
+   * Google Compute Engine Public IPs and Google Prod IPs.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig) + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.class, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.MasterAuthorizedNetworksConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCidrBlocksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig build() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig buildPartial() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig result = new com.google.container.v1beta1.MasterAuthorizedNetworksConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.enabled_ = enabled_; + if (cidrBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cidrBlocks_ = cidrBlocks_; + } else { + result.cidrBlocks_ = cidrBlocksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MasterAuthorizedNetworksConfig) { + return mergeFrom((com.google.container.v1beta1.MasterAuthorizedNetworksConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MasterAuthorizedNetworksConfig other) { + if (other == com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (cidrBlocksBuilder_ == null) { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocks_.isEmpty()) { + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCidrBlocksIsMutable(); + cidrBlocks_.addAll(other.cidrBlocks_); + } + onChanged(); + } + } else { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocksBuilder_.isEmpty()) { + cidrBlocksBuilder_.dispose(); + cidrBlocksBuilder_ = null; + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000002); + cidrBlocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCidrBlocksFieldBuilder() : null; + } else { + cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MasterAuthorizedNetworksConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.util.List cidrBlocks_ = + java.util.Collections.emptyList(); + private void ensureCidrBlocksIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + cidrBlocks_ = new java.util.ArrayList(cidrBlocks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> cidrBlocksBuilder_; + + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List getCidrBlocksList() { + if (cidrBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } else { + return cidrBlocksBuilder_.getMessageList(); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public int getCidrBlocksCount() { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.size(); + } else { + return cidrBlocksBuilder_.getCount(); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessage(index); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder setCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder setCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks(com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addAllCidrBlocks( + java.lang.Iterable values) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cidrBlocks_); + onChanged(); + } else { + cidrBlocksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder clearCidrBlocks() { + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder removeCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.remove(index); + onChanged(); + } else { + cidrBlocksBuilder_.remove(index); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder getCidrBlocksBuilder( + int index) { + return getCidrBlocksFieldBuilder().getBuilder(index); + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( + int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); } else { + return cidrBlocksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List + getCidrBlocksOrBuilderList() { + if (cidrBlocksBuilder_ != null) { + return cidrBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder() { + return getCidrBlocksFieldBuilder().addBuilder( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()); + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder( + int index) { + return getCidrBlocksFieldBuilder().addBuilder( + index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()); + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List + getCidrBlocksBuilderList() { + return getCidrBlocksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksFieldBuilder() { + if (cidrBlocksBuilder_ == null) { + cidrBlocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>( + cidrBlocks_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + cidrBlocks_ = null; + } + return cidrBlocksBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MasterAuthorizedNetworksConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MasterAuthorizedNetworksConfig) + private static final com.google.container.v1beta1.MasterAuthorizedNetworksConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MasterAuthorizedNetworksConfig(); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MasterAuthorizedNetworksConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MasterAuthorizedNetworksConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java new file mode 100644 index 000000000000..37be347eba77 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MasterAuthorizedNetworksConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuthorizedNetworksConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether or not master authorized networks is enabled.
+   * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); + + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + java.util.List + getCidrBlocksList(); + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index); + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + int getCidrBlocksCount(); + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + java.util.List + getCidrBlocksOrBuilderList(); + /** + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java new file mode 100644 index 000000000000..1e1bfa596973 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Constraints applied to pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaxPodsConstraint} + */ +public final class MaxPodsConstraint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaxPodsConstraint) + MaxPodsConstraintOrBuilder { +private static final long serialVersionUID = 0L; + // Use MaxPodsConstraint.newBuilder() to construct. + private MaxPodsConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MaxPodsConstraint() { + maxPodsPerNode_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MaxPodsConstraint( + 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 8: { + + maxPodsPerNode_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaxPodsConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaxPodsConstraint.class, com.google.container.v1beta1.MaxPodsConstraint.Builder.class); + } + + public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 1; + private long maxPodsPerNode_; + /** + *
+   * Constraint enforced on the max num of pods per node.
+   * 
+ * + * int64 max_pods_per_node = 1; + */ + public long getMaxPodsPerNode() { + return maxPodsPerNode_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (maxPodsPerNode_ != 0L) { + output.writeInt64(1, maxPodsPerNode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxPodsPerNode_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxPodsPerNode_); + } + 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.container.v1beta1.MaxPodsConstraint)) { + return super.equals(obj); + } + com.google.container.v1beta1.MaxPodsConstraint other = (com.google.container.v1beta1.MaxPodsConstraint) obj; + + boolean result = true; + result = result && (getMaxPodsPerNode() + == other.getMaxPodsPerNode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_PODS_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxPodsPerNode()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.MaxPodsConstraint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Constraints applied to pods.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MaxPodsConstraint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MaxPodsConstraint) + com.google.container.v1beta1.MaxPodsConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaxPodsConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaxPodsConstraint.class, com.google.container.v1beta1.MaxPodsConstraint.Builder.class); + } + + // Construct using com.google.container.v1beta1.MaxPodsConstraint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + maxPodsPerNode_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint getDefaultInstanceForType() { + return com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint build() { + com.google.container.v1beta1.MaxPodsConstraint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint buildPartial() { + com.google.container.v1beta1.MaxPodsConstraint result = new com.google.container.v1beta1.MaxPodsConstraint(this); + result.maxPodsPerNode_ = maxPodsPerNode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MaxPodsConstraint) { + return mergeFrom((com.google.container.v1beta1.MaxPodsConstraint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaxPodsConstraint other) { + if (other == com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance()) return this; + if (other.getMaxPodsPerNode() != 0L) { + setMaxPodsPerNode(other.getMaxPodsPerNode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MaxPodsConstraint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MaxPodsConstraint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxPodsPerNode_ ; + /** + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + */ + public long getMaxPodsPerNode() { + return maxPodsPerNode_; + } + /** + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + */ + public Builder setMaxPodsPerNode(long value) { + + maxPodsPerNode_ = value; + onChanged(); + return this; + } + /** + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + */ + public Builder clearMaxPodsPerNode() { + + maxPodsPerNode_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaxPodsConstraint) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaxPodsConstraint) + private static final com.google.container.v1beta1.MaxPodsConstraint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaxPodsConstraint(); + } + + public static com.google.container.v1beta1.MaxPodsConstraint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaxPodsConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaxPodsConstraint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java new file mode 100644 index 000000000000..2a44fec896ee --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MaxPodsConstraintOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaxPodsConstraint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Constraint enforced on the max num of pods per node.
+   * 
+ * + * int64 max_pods_per_node = 1; + */ + long getMaxPodsPerNode(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkConfig.java new file mode 100644 index 000000000000..7198c27fde40 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkConfig.java @@ -0,0 +1,767 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * NetworkConfig reports the relative names of network & subnetwork.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkConfig} + */ +public final class NetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkConfig) + NetworkConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkConfig.newBuilder() to construct. + private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkConfig() { + network_ = ""; + subnetwork_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NetworkConfig( + 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(); + + network_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + subnetwork_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkConfig.class, com.google.container.v1beta1.NetworkConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object network_; + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+   * the cluster is connected.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+   * the cluster is connected.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object subnetwork_; + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = 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 (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!getSubnetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!getSubnetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); + } + 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.container.v1beta1.NetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NetworkConfig other = (com.google.container.v1beta1.NetworkConfig) obj; + + boolean result = true; + result = result && getNetwork() + .equals(other.getNetwork()); + result = result && getSubnetwork() + .equals(other.getSubnetwork()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NetworkConfig reports the relative names of network & subnetwork.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NetworkConfig) + com.google.container.v1beta1.NetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkConfig.class, com.google.container.v1beta1.NetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + network_ = ""; + + subnetwork_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig build() { + com.google.container.v1beta1.NetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig buildPartial() { + com.google.container.v1beta1.NetworkConfig result = new com.google.container.v1beta1.NetworkConfig(this); + result.network_ = network_; + result.subnetwork_ = subnetwork_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NetworkConfig) { + return mergeFrom((com.google.container.v1beta1.NetworkConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkConfig other) { + if (other == com.google.container.v1beta1.NetworkConfig.getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NetworkConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NetworkConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+     * the cluster is connected.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+     * the cluster is connected.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+     * the cluster is connected.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + */ + public Builder setNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+     * the cluster is connected.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+     * the cluster is connected.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + */ + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + */ + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + */ + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkConfig) + private static final com.google.container.v1beta1.NetworkConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkConfig(); + } + + public static com.google.container.v1beta1.NetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java new file mode 100644 index 000000000000..1367a6519e40 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NetworkConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+   * the cluster is connected.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + */ + java.lang.String getNetwork(); + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which
+   * the cluster is connected.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + */ + java.lang.String getSubnetwork(); + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](/compute/docs/vpc) to which the cluster is connected.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java new file mode 100644 index 000000000000..78c5c3f4a12e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java @@ -0,0 +1,730 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration options for the NetworkPolicy feature.
+ * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkPolicy} + */ +public final class NetworkPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkPolicy) + NetworkPolicyOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkPolicy.newBuilder() to construct. + private NetworkPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkPolicy() { + provider_ = 0; + enabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NetworkPolicy( + 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 8: { + int rawValue = input.readEnum(); + + provider_ = rawValue; + break; + } + case 16: { + + enabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkPolicy.class, com.google.container.v1beta1.NetworkPolicy.Builder.class); + } + + /** + *
+   * Allowed Network Policy providers.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NetworkPolicy.Provider} + */ + public enum Provider + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + PROVIDER_UNSPECIFIED(0), + /** + *
+     * Tigera (Calico Felix).
+     * 
+ * + * CALICO = 1; + */ + CALICO(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + /** + *
+     * Tigera (Calico Felix).
+     * 
+ * + * CALICO = 1; + */ + public static final int CALICO_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Provider valueOf(int value) { + return forNumber(value); + } + + public static Provider forNumber(int value) { + switch (value) { + case 0: return PROVIDER_UNSPECIFIED; + case 1: return CALICO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Provider> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Provider findValueByNumber(int number) { + return Provider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.NetworkPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final Provider[] VALUES = values(); + + public static Provider valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Provider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NetworkPolicy.Provider) + } + + public static final int PROVIDER_FIELD_NUMBER = 1; + private int provider_; + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + */ + public int getProviderValue() { + return provider_; + } + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + */ + public com.google.container.v1beta1.NetworkPolicy.Provider getProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NetworkPolicy.Provider result = com.google.container.v1beta1.NetworkPolicy.Provider.valueOf(provider_); + return result == null ? com.google.container.v1beta1.NetworkPolicy.Provider.UNRECOGNIZED : result; + } + + public static final int ENABLED_FIELD_NUMBER = 2; + private boolean enabled_; + /** + *
+   * Whether network policy is enabled on the cluster.
+   * 
+ * + * bool enabled = 2; + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (provider_ != com.google.container.v1beta1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, provider_); + } + if (enabled_ != false) { + output.writeBool(2, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (provider_ != com.google.container.v1beta1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, provider_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enabled_); + } + 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.container.v1beta1.NetworkPolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.NetworkPolicy other = (com.google.container.v1beta1.NetworkPolicy) obj; + + boolean result = true; + result = result && provider_ == other.provider_; + result = result && (getEnabled() + == other.getEnabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + provider_; + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NetworkPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NetworkPolicy) + com.google.container.v1beta1.NetworkPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkPolicy.class, com.google.container.v1beta1.NetworkPolicy.Builder.class); + } + + // Construct using com.google.container.v1beta1.NetworkPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + provider_ = 0; + + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy build() { + com.google.container.v1beta1.NetworkPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy buildPartial() { + com.google.container.v1beta1.NetworkPolicy result = new com.google.container.v1beta1.NetworkPolicy(this); + result.provider_ = provider_; + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NetworkPolicy) { + return mergeFrom((com.google.container.v1beta1.NetworkPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkPolicy other) { + if (other == com.google.container.v1beta1.NetworkPolicy.getDefaultInstance()) return this; + if (other.provider_ != 0) { + setProviderValue(other.getProviderValue()); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NetworkPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NetworkPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int provider_ = 0; + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + */ + public int getProviderValue() { + return provider_; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + */ + public Builder setProviderValue(int value) { + provider_ = value; + onChanged(); + return this; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + */ + public com.google.container.v1beta1.NetworkPolicy.Provider getProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NetworkPolicy.Provider result = com.google.container.v1beta1.NetworkPolicy.Provider.valueOf(provider_); + return result == null ? com.google.container.v1beta1.NetworkPolicy.Provider.UNRECOGNIZED : result; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + */ + public Builder setProvider(com.google.container.v1beta1.NetworkPolicy.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + + provider_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + */ + public Builder clearProvider() { + + provider_ = 0; + onChanged(); + return this; + } + + private boolean enabled_ ; + /** + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NetworkPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkPolicy) + private static final com.google.container.v1beta1.NetworkPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkPolicy(); + } + + public static com.google.container.v1beta1.NetworkPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java new file mode 100644 index 000000000000..012394e9f719 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration for NetworkPolicy. This only tracks whether the addon
+ * is enabled or not on the Master, it does not track whether network policy
+ * is enabled for the nodes.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkPolicyConfig} + */ +public final class NetworkPolicyConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkPolicyConfig) + NetworkPolicyConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkPolicyConfig.newBuilder() to construct. + private NetworkPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkPolicyConfig() { + disabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NetworkPolicyConfig( + 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 8: { + + disabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkPolicyConfig.class, com.google.container.v1beta1.NetworkPolicyConfig.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + *
+   * Whether NetworkPolicy is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, disabled_); + } + 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.container.v1beta1.NetworkPolicyConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NetworkPolicyConfig other = (com.google.container.v1beta1.NetworkPolicyConfig) obj; + + boolean result = true; + result = result && (getDisabled() + == other.getDisabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NetworkPolicyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkPolicyConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NetworkPolicyConfig) + com.google.container.v1beta1.NetworkPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkPolicyConfig.class, com.google.container.v1beta1.NetworkPolicyConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NetworkPolicyConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig build() { + com.google.container.v1beta1.NetworkPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig buildPartial() { + com.google.container.v1beta1.NetworkPolicyConfig result = new com.google.container.v1beta1.NetworkPolicyConfig(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NetworkPolicyConfig) { + return mergeFrom((com.google.container.v1beta1.NetworkPolicyConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkPolicyConfig other) { + if (other == com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NetworkPolicyConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NetworkPolicyConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_ ; + /** + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public boolean getDisabled() { + return disabled_; + } + /** + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NetworkPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkPolicyConfig) + private static final com.google.container.v1beta1.NetworkPolicyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkPolicyConfig(); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkPolicyConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..bb016d3e8bf5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NetworkPolicyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether NetworkPolicy is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + */ + boolean getDisabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java new file mode 100644 index 000000000000..4a0e488c937f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NetworkPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + */ + int getProviderValue(); + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + */ + com.google.container.v1beta1.NetworkPolicy.Provider getProvider(); + + /** + *
+   * Whether network policy is enabled on the cluster.
+   * 
+ * + * bool enabled = 2; + */ + boolean getEnabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeConfig.java new file mode 100644 index 000000000000..6f6c71b07d2d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeConfig.java @@ -0,0 +1,4244 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Parameters that describe the nodes in a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeConfig} + */ +public final class NodeConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeConfig) + NodeConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeConfig.newBuilder() to construct. + private NodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeConfig() { + machineType_ = ""; + diskSizeGb_ = 0; + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + serviceAccount_ = ""; + imageType_ = ""; + localSsdCount_ = 0; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + preemptible_ = false; + accelerators_ = java.util.Collections.emptyList(); + diskType_ = ""; + minCpuPlatform_ = ""; + taints_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeConfig( + 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(); + + machineType_ = s; + break; + } + case 16: { + + diskSizeGb_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + oauthScopes_.add(s); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + imageType_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000040; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 56: { + + localSsdCount_ = input.readInt32(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000100; + } + tags_.add(s); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccount_ = s; + break; + } + case 80: { + + preemptible_ = input.readBool(); + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + accelerators_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + accelerators_.add( + input.readMessage(com.google.container.v1beta1.AcceleratorConfig.parser(), extensionRegistry)); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + diskType_ = s; + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + minCpuPlatform_ = s; + break; + } + case 114: { + com.google.container.v1beta1.WorkloadMetadataConfig.Builder subBuilder = null; + if (workloadMetadataConfig_ != null) { + subBuilder = workloadMetadataConfig_.toBuilder(); + } + workloadMetadataConfig_ = input.readMessage(com.google.container.v1beta1.WorkloadMetadataConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workloadMetadataConfig_); + workloadMetadataConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 122: { + if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + taints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00004000; + } + taints_.add( + input.readMessage(com.google.container.v1beta1.NodeTaint.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + tags_ = tags_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + } + if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeConfig.class, com.google.container.v1beta1.NodeConfig.Builder.class); + } + + private int bitField0_; + public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object machineType_; + /** + *
+   * The name of a Google Compute Engine [machine
+   * type](/compute/docs/machine-types) (e.g.
+   * `n1-standard-1`).
+   * If unspecified, the default machine type is
+   * `n1-standard-1`.
+   * 
+ * + * string machine_type = 1; + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + /** + *
+   * The name of a Google Compute Engine [machine
+   * type](/compute/docs/machine-types) (e.g.
+   * `n1-standard-1`).
+   * If unspecified, the default machine type is
+   * `n1-standard-1`.
+   * 
+ * + * string machine_type = 1; + */ + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 2; + private int diskSizeGb_; + /** + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 2; + */ + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int OAUTH_SCOPES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList oauthScopes_; + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + public com.google.protobuf.ProtocolStringList + getOauthScopesList() { + return oauthScopes_; + } + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + public com.google.protobuf.ByteString + getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; + private volatile java.lang.Object serviceAccount_; + /** + *
+   * The Google Cloud Platform Service Account to be used by the node VMs. If
+   * no Service Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + *
+   * The Google Cloud Platform Service Account to be used by the node VMs. If
+   * no Service Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + */ + public com.google.protobuf.ByteString + getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 4; + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-oslogin"
+   *  "gci-ensure-gke-docker"
+   *  "gci-update-strategy"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-oslogin"
+   *  "gci-ensure-gke-docker"
+   *  "gci-update-strategy"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-oslogin"
+   *  "gci-ensure-gke-docker"
+   *  "gci-update-strategy"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-oslogin"
+   *  "gci-ensure-gke-docker"
+   *  "gci-update-strategy"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 5; + private volatile java.lang.Object imageType_; + /** + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + */ + public com.google.protobuf.ByteString + getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + 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.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 7; + private int localSsdCount_; + /** + *
+   * The number of local SSD disks to be attached to the node.
+   * The limit for this value is dependant upon the maximum number of
+   * disks available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+   * for more information.
+   * 
+ * + * int32 local_ssd_count = 7; + */ + public int getLocalSsdCount() { + return localSsdCount_; + } + + public static final int TAGS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList tags_; + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int PREEMPTIBLE_FIELD_NUMBER = 10; + private boolean preemptible_; + /** + *
+   * Whether the nodes are created as preemptible VM instances. See:
+   * https://cloud.google.com/compute/docs/instances/preemptible for more
+   * inforamtion about preemptible VM instances.
+   * 
+ * + * bool preemptible = 10; + */ + public boolean getPreemptible() { + return preemptible_; + } + + public static final int ACCELERATORS_FIELD_NUMBER = 11; + private java.util.List accelerators_; + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List getAcceleratorsList() { + return accelerators_; + } + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsOrBuilderList() { + return accelerators_; + } + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public int getAcceleratorsCount() { + return accelerators_.size(); + } + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index) { + return accelerators_.get(index); + } + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { + return accelerators_.get(index); + } + + public static final int DISK_TYPE_FIELD_NUMBER = 12; + private volatile java.lang.Object diskType_; + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + public com.google.protobuf.ByteString + getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; + private volatile java.lang.Object minCpuPlatform_; + /** + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+   * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + */ + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } + } + /** + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+   * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + */ + public com.google.protobuf.ByteString + getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfig_ != null; + } + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { + return getWorkloadMetadataConfig(); + } + + public static final int TAINTS_FIELD_NUMBER = 15; + private java.util.List taints_; + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List getTaintsList() { + return taints_; + } + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List + getTaintsOrBuilderList() { + return taints_; + } + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public int getTaintsCount() { + return taints_.size(); + } + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint getTaints(int index) { + return taints_.get(index); + } + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder( + int index) { + return taints_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getMachineTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); + } + if (diskSizeGb_ != 0) { + output.writeInt32(2, diskSizeGb_); + } + for (int i = 0; i < oauthScopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauthScopes_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 4); + if (!getImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, imageType_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); + if (localSsdCount_ != 0) { + output.writeInt32(7, localSsdCount_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, tags_.getRaw(i)); + } + if (!getServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); + } + if (preemptible_ != false) { + output.writeBool(10, preemptible_); + } + for (int i = 0; i < accelerators_.size(); i++) { + output.writeMessage(11, accelerators_.get(i)); + } + if (!getDiskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, diskType_); + } + if (!getMinCpuPlatformBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); + } + if (workloadMetadataConfig_ != null) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(15, taints_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMachineTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); + } + if (diskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, diskSizeGb_); + } + { + int dataSize = 0; + for (int i = 0; i < oauthScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(oauthScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getOauthScopesList().size(); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metadata__); + } + if (!getImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, imageType_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); + } + if (localSsdCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, localSsdCount_); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + if (!getServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); + } + if (preemptible_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, preemptible_); + } + for (int i = 0; i < accelerators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, accelerators_.get(i)); + } + if (!getDiskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, diskType_); + } + if (!getMinCpuPlatformBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); + } + if (workloadMetadataConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getWorkloadMetadataConfig()); + } + for (int i = 0; i < taints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, taints_.get(i)); + } + 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.container.v1beta1.NodeConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeConfig other = (com.google.container.v1beta1.NodeConfig) obj; + + boolean result = true; + result = result && getMachineType() + .equals(other.getMachineType()); + result = result && (getDiskSizeGb() + == other.getDiskSizeGb()); + result = result && getOauthScopesList() + .equals(other.getOauthScopesList()); + result = result && getServiceAccount() + .equals(other.getServiceAccount()); + result = result && internalGetMetadata().equals( + other.internalGetMetadata()); + result = result && getImageType() + .equals(other.getImageType()); + result = result && internalGetLabels().equals( + other.internalGetLabels()); + result = result && (getLocalSsdCount() + == other.getLocalSsdCount()); + result = result && getTagsList() + .equals(other.getTagsList()); + result = result && (getPreemptible() + == other.getPreemptible()); + result = result && getAcceleratorsList() + .equals(other.getAcceleratorsList()); + result = result && getDiskType() + .equals(other.getDiskType()); + result = result && getMinCpuPlatform() + .equals(other.getMinCpuPlatform()); + result = result && (hasWorkloadMetadataConfig() == other.hasWorkloadMetadataConfig()); + if (hasWorkloadMetadataConfig()) { + result = result && getWorkloadMetadataConfig() + .equals(other.getWorkloadMetadataConfig()); + } + result = result && getTaintsList() + .equals(other.getTaintsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDiskSizeGb(); + if (getOauthScopesCount() > 0) { + hash = (37 * hash) + OAUTH_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getOauthScopesList().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getImageType().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + LOCAL_SSD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getLocalSsdCount(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPreemptible()); + if (getAcceleratorsCount() > 0) { + hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; + hash = (53 * hash) + getAcceleratorsList().hashCode(); + } + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); + hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getMinCpuPlatform().hashCode(); + if (hasWorkloadMetadataConfig()) { + hash = (37 * hash) + WORKLOAD_METADATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadMetadataConfig().hashCode(); + } + if (getTaintsCount() > 0) { + hash = (37 * hash) + TAINTS_FIELD_NUMBER; + hash = (53 * hash) + getTaintsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NodeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Parameters that describe the nodes in a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeConfig) + com.google.container.v1beta1.NodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableMetadata(); + case 6: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeConfig.class, com.google.container.v1beta1.NodeConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAcceleratorsFieldBuilder(); + getTaintsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + machineType_ = ""; + + diskSizeGb_ = 0; + + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + serviceAccount_ = ""; + + internalGetMutableMetadata().clear(); + imageType_ = ""; + + internalGetMutableLabels().clear(); + localSsdCount_ = 0; + + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + preemptible_ = false; + + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + acceleratorsBuilder_.clear(); + } + diskType_ = ""; + + minCpuPlatform_ = ""; + + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + } else { + taintsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig build() { + com.google.container.v1beta1.NodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig buildPartial() { + com.google.container.v1beta1.NodeConfig result = new com.google.container.v1beta1.NodeConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.machineType_ = machineType_; + result.diskSizeGb_ = diskSizeGb_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.oauthScopes_ = oauthScopes_; + result.serviceAccount_ = serviceAccount_; + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + result.imageType_ = imageType_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.localSsdCount_ = localSsdCount_; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.tags_ = tags_; + result.preemptible_ = preemptible_; + if (acceleratorsBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.accelerators_ = accelerators_; + } else { + result.accelerators_ = acceleratorsBuilder_.build(); + } + result.diskType_ = diskType_; + result.minCpuPlatform_ = minCpuPlatform_; + if (workloadMetadataConfigBuilder_ == null) { + result.workloadMetadataConfig_ = workloadMetadataConfig_; + } else { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); + } + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00004000) == 0x00004000)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodeConfig) { + return mergeFrom((com.google.container.v1beta1.NodeConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeConfig other) { + if (other == com.google.container.v1beta1.NodeConfig.getDefaultInstance()) return this; + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.oauthScopes_.isEmpty()) { + if (oauthScopes_.isEmpty()) { + oauthScopes_ = other.oauthScopes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.getPreemptible() != false) { + setPreemptible(other.getPreemptible()); + } + if (acceleratorsBuilder_ == null) { + if (!other.accelerators_.isEmpty()) { + if (accelerators_.isEmpty()) { + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureAcceleratorsIsMutable(); + accelerators_.addAll(other.accelerators_); + } + onChanged(); + } + } else { + if (!other.accelerators_.isEmpty()) { + if (acceleratorsBuilder_.isEmpty()) { + acceleratorsBuilder_.dispose(); + acceleratorsBuilder_ = null; + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000400); + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAcceleratorsFieldBuilder() : null; + } else { + acceleratorsBuilder_.addAllMessages(other.accelerators_); + } + } + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + onChanged(); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (taintsBuilder_ == null) { + if (!other.taints_.isEmpty()) { + if (taints_.isEmpty()) { + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureTaintsIsMutable(); + taints_.addAll(other.taints_); + } + onChanged(); + } + } else { + if (!other.taints_.isEmpty()) { + if (taintsBuilder_.isEmpty()) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00004000); + taintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaintsFieldBuilder() : null; + } else { + taintsBuilder_.addAllMessages(other.taints_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NodeConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NodeConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object machineType_ = ""; + /** + *
+     * The name of a Google Compute Engine [machine
+     * type](/compute/docs/machine-types) (e.g.
+     * `n1-standard-1`).
+     * If unspecified, the default machine type is
+     * `n1-standard-1`.
+     * 
+ * + * string machine_type = 1; + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of a Google Compute Engine [machine
+     * type](/compute/docs/machine-types) (e.g.
+     * `n1-standard-1`).
+     * If unspecified, the default machine type is
+     * `n1-standard-1`.
+     * 
+ * + * string machine_type = 1; + */ + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of a Google Compute Engine [machine
+     * type](/compute/docs/machine-types) (e.g.
+     * `n1-standard-1`).
+     * If unspecified, the default machine type is
+     * `n1-standard-1`.
+     * 
+ * + * string machine_type = 1; + */ + public Builder setMachineType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + machineType_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of a Google Compute Engine [machine
+     * type](/compute/docs/machine-types) (e.g.
+     * `n1-standard-1`).
+     * If unspecified, the default machine type is
+     * `n1-standard-1`.
+     * 
+ * + * string machine_type = 1; + */ + public Builder clearMachineType() { + + machineType_ = getDefaultInstance().getMachineType(); + onChanged(); + return this; + } + /** + *
+     * The name of a Google Compute Engine [machine
+     * type](/compute/docs/machine-types) (e.g.
+     * `n1-standard-1`).
+     * If unspecified, the default machine type is
+     * `n1-standard-1`.
+     * 
+ * + * string machine_type = 1; + */ + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + machineType_ = value; + onChanged(); + return this; + } + + private int diskSizeGb_ ; + /** + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + */ + public int getDiskSizeGb() { + return diskSizeGb_; + } + /** + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + */ + public Builder setDiskSizeGb(int value) { + + diskSizeGb_ = value; + onChanged(); + return this; + } + /** + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureOauthScopesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public com.google.protobuf.ProtocolStringList + getOauthScopesList() { + return oauthScopes_.getUnmodifiableView(); + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public com.google.protobuf.ByteString + getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public Builder setOauthScopes( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public Builder addOauthScopes( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public Builder addAllOauthScopes( + java.lang.Iterable values) { + ensureOauthScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oauthScopes_); + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public Builder clearOauthScopes() { + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container Registry](/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + */ + public Builder addOauthScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs. If
+     * no Service Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs. If
+     * no Service Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + */ + public com.google.protobuf.ByteString + getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs. If
+     * no Service Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + */ + public Builder setServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs. If
+     * no Service Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs. If
+     * no Service Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + */ + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-oslogin"
+     *  "gci-ensure-gke-docker"
+     *  "gci-update-strategy"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-oslogin"
+     *  "gci-ensure-gke-docker"
+     *  "gci-update-strategy"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-oslogin"
+     *  "gci-ensure-gke-docker"
+     *  "gci-update-strategy"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-oslogin"
+     *  "gci-ensure-gke-docker"
+     *  "gci-update-strategy"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-oslogin"
+     *  "gci-ensure-gke-docker"
+     *  "gci-update-strategy"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-oslogin"
+     *  "gci-ensure-gke-docker"
+     *  "gci-update-strategy"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  "cluster-location"
+     *  "cluster-name"
+     *  "cluster-uid"
+     *  "configure-sh"
+     *  "enable-oslogin"
+     *  "gci-ensure-gke-docker"
+     *  "gci-update-strategy"
+     *  "instance-template"
+     *  "kube-env"
+     *  "startup-script"
+     *  "user-data"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + */ + public com.google.protobuf.ByteString + getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + */ + public Builder setImageType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + */ + public Builder setImageTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + 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.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + 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 + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + 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; + } + /** + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private int localSsdCount_ ; + /** + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependant upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + */ + public int getLocalSsdCount() { + return localSsdCount_; + } + /** + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependant upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + onChanged(); + return this; + } + /** + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependant upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + */ + public Builder clearLocalSsdCount() { + + localSsdCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000100; + } + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private boolean preemptible_ ; + /** + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + */ + public boolean getPreemptible() { + return preemptible_; + } + /** + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + */ + public Builder setPreemptible(boolean value) { + + preemptible_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + */ + public Builder clearPreemptible() { + + preemptible_ = false; + onChanged(); + return this; + } + + private java.util.List accelerators_ = + java.util.Collections.emptyList(); + private void ensureAcceleratorsIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + accelerators_ = new java.util.ArrayList(accelerators_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, com.google.container.v1beta1.AcceleratorConfig.Builder, com.google.container.v1beta1.AcceleratorConfigOrBuilder> acceleratorsBuilder_; + + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List getAcceleratorsList() { + if (acceleratorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accelerators_); + } else { + return acceleratorsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public int getAcceleratorsCount() { + if (acceleratorsBuilder_ == null) { + return accelerators_.size(); + } else { + return acceleratorsBuilder_.getCount(); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.set(index, value); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.set(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators(com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(index, value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAllAccelerators( + java.lang.Iterable values) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, accelerators_); + onChanged(); + } else { + acceleratorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder clearAccelerators() { + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + acceleratorsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder removeAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.remove(index); + onChanged(); + } else { + acceleratorsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder getAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); } else { + return acceleratorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsOrBuilderList() { + if (acceleratorsBuilder_ != null) { + return acceleratorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accelerators_); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder().addBuilder( + com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsBuilderList() { + return getAcceleratorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, com.google.container.v1beta1.AcceleratorConfig.Builder, com.google.container.v1beta1.AcceleratorConfigOrBuilder> + getAcceleratorsFieldBuilder() { + if (acceleratorsBuilder_ == null) { + acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, com.google.container.v1beta1.AcceleratorConfig.Builder, com.google.container.v1beta1.AcceleratorConfigOrBuilder>( + accelerators_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + accelerators_ = null; + } + return acceleratorsBuilder_; + } + + private java.lang.Object diskType_ = ""; + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public com.google.protobuf.ByteString + getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public Builder setDiskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + diskType_ = value; + onChanged(); + return this; + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public Builder clearDiskType() { + + diskType_ = getDefaultInstance().getDiskType(); + onChanged(); + return this; + } + /** + *
+     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + */ + public Builder setDiskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diskType_ = value; + onChanged(); + return this; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+     * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + */ + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+     * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + */ + public com.google.protobuf.ByteString + getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+     * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + */ + public Builder setMinCpuPlatform( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + minCpuPlatform_ = value; + onChanged(); + return this; + } + /** + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+     * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + */ + public Builder clearMinCpuPlatform() { + + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + onChanged(); + return this; + } + /** + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+     * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + */ + public Builder setMinCpuPlatformBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minCpuPlatform_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, com.google.container.v1beta1.WorkloadMetadataConfig.Builder, com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> workloadMetadataConfigBuilder_; + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig(com.google.container.v1beta1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadMetadataConfig_ = value; + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig.Builder builderForValue) { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig(com.google.container.v1beta1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (workloadMetadataConfig_ != null) { + workloadMetadataConfig_ = + com.google.container.v1beta1.WorkloadMetadataConfig.newBuilder(workloadMetadataConfig_).mergeFrom(value).buildPartial(); + } else { + workloadMetadataConfig_ = value; + } + onChanged(); + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + onChanged(); + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfig.Builder getWorkloadMetadataConfigBuilder() { + + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null ? + com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, com.google.container.v1beta1.WorkloadMetadataConfig.Builder, com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, com.google.container.v1beta1.WorkloadMetadataConfig.Builder, com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), + getParentForChildren(), + isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private java.util.List taints_ = + java.util.Collections.emptyList(); + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00004000) == 0x00004000)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodeTaint, com.google.container.v1beta1.NodeTaint.Builder, com.google.container.v1beta1.NodeTaintOrBuilder> taintsBuilder_; + + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List getTaintsList() { + if (taintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taints_); + } else { + return taintsBuilder_.getMessageList(); + } + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public int getTaintsCount() { + if (taintsBuilder_ == null) { + return taints_.size(); + } else { + return taintsBuilder_.getCount(); + } + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint getTaints(int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); + } else { + return taintsBuilder_.getMessage(index); + } + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder setTaints( + int index, com.google.container.v1beta1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.set(index, value); + onChanged(); + } else { + taintsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder setTaints( + int index, com.google.container.v1beta1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.set(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints(com.google.container.v1beta1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(value); + onChanged(); + } else { + taintsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints( + int index, com.google.container.v1beta1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(index, value); + onChanged(); + } else { + taintsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints( + com.google.container.v1beta1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints( + int index, com.google.container.v1beta1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addAllTaints( + java.lang.Iterable values) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, taints_); + onChanged(); + } else { + taintsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder clearTaints() { + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + taintsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder removeTaints(int index) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.remove(index); + onChanged(); + } else { + taintsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint.Builder getTaintsBuilder( + int index) { + return getTaintsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder( + int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); } else { + return taintsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List + getTaintsOrBuilderList() { + if (taintsBuilder_ != null) { + return taintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taints_); + } + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder() { + return getTaintsFieldBuilder().addBuilder( + com.google.container.v1beta1.NodeTaint.getDefaultInstance()); + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder( + int index) { + return getTaintsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.NodeTaint.getDefaultInstance()); + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List + getTaintsBuilderList() { + return getTaintsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodeTaint, com.google.container.v1beta1.NodeTaint.Builder, com.google.container.v1beta1.NodeTaintOrBuilder> + getTaintsFieldBuilder() { + if (taintsBuilder_ == null) { + taintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodeTaint, com.google.container.v1beta1.NodeTaint.Builder, com.google.container.v1beta1.NodeTaintOrBuilder>( + taints_, + ((bitField0_ & 0x00004000) == 0x00004000), + getParentForChildren(), + isClean()); + taints_ = null; + } + return taintsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeConfig) + private static final com.google.container.v1beta1.NodeConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeConfig(); + } + + public static com.google.container.v1beta1.NodeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java new file mode 100644 index 000000000000..2d9ef59809c2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java @@ -0,0 +1,653 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodeConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of a Google Compute Engine [machine
+   * type](/compute/docs/machine-types) (e.g.
+   * `n1-standard-1`).
+   * If unspecified, the default machine type is
+   * `n1-standard-1`.
+   * 
+ * + * string machine_type = 1; + */ + java.lang.String getMachineType(); + /** + *
+   * The name of a Google Compute Engine [machine
+   * type](/compute/docs/machine-types) (e.g.
+   * `n1-standard-1`).
+   * If unspecified, the default machine type is
+   * `n1-standard-1`.
+   * 
+ * + * string machine_type = 1; + */ + com.google.protobuf.ByteString + getMachineTypeBytes(); + + /** + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 2; + */ + int getDiskSizeGb(); + + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + java.util.List + getOauthScopesList(); + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + int getOauthScopesCount(); + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + java.lang.String getOauthScopes(int index); + /** + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container Registry](/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + */ + com.google.protobuf.ByteString + getOauthScopesBytes(int index); + + /** + *
+   * The Google Cloud Platform Service Account to be used by the node VMs. If
+   * no Service Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + */ + java.lang.String getServiceAccount(); + /** + *
+   * The Google Cloud Platform Service Account to be used by the node VMs. If
+   * no Service Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + */ + com.google.protobuf.ByteString + getServiceAccountBytes(); + + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-oslogin"
+   *  "gci-ensure-gke-docker"
+   *  "gci-update-strategy"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + int getMetadataCount(); + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-oslogin"
+   *  "gci-ensure-gke-docker"
+   *  "gci-update-strategy"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getMetadata(); + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-oslogin"
+   *  "gci-ensure-gke-docker"
+   *  "gci-update-strategy"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + java.util.Map + getMetadataMap(); + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-oslogin"
+   *  "gci-ensure-gke-docker"
+   *  "gci-update-strategy"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + java.lang.String getMetadataOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  "cluster-location"
+   *  "cluster-name"
+   *  "cluster-uid"
+   *  "configure-sh"
+   *  "enable-oslogin"
+   *  "gci-ensure-gke-docker"
+   *  "gci-update-strategy"
+   *  "instance-template"
+   *  "kube-env"
+   *  "startup-script"
+   *  "user-data"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + + java.lang.String getMetadataOrThrow( + java.lang.String key); + + /** + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + */ + java.lang.String getImageType(); + /** + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + */ + com.google.protobuf.ByteString + getImageTypeBytes(); + + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + int getLabelsCount(); + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * The number of local SSD disks to be attached to the node.
+   * The limit for this value is dependant upon the maximum number of
+   * disks available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+   * for more information.
+   * 
+ * + * int32 local_ssd_count = 7; + */ + int getLocalSsdCount(); + + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + java.util.List + getTagsList(); + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + int getTagsCount(); + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + java.lang.String getTags(int index); + /** + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + *
+   * Whether the nodes are created as preemptible VM instances. See:
+   * https://cloud.google.com/compute/docs/instances/preemptible for more
+   * inforamtion about preemptible VM instances.
+   * 
+ * + * bool preemptible = 10; + */ + boolean getPreemptible(); + + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + java.util.List + getAcceleratorsList(); + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index); + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + int getAcceleratorsCount(); + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + java.util.List + getAcceleratorsOrBuilderList(); + /** + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index); + + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + java.lang.String getDiskType(); + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + */ + com.google.protobuf.ByteString + getDiskTypeBytes(); + + /** + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+   * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + */ + java.lang.String getMinCpuPlatform(); + /** + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+   * <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + */ + com.google.protobuf.ByteString + getMinCpuPlatformBytes(); + + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + boolean hasWorkloadMetadataConfig(); + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig(); + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); + + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + java.util.List + getTaintsList(); + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + com.google.container.v1beta1.NodeTaint getTaints(int index); + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + int getTaintsCount(); + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + java.util.List + getTaintsOrBuilderList(); + /** + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeManagement.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeManagement.java new file mode 100644 index 000000000000..6cd4fb08d088 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeManagement.java @@ -0,0 +1,803 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * NodeManagement defines the set of node management services turned on for the
+ * node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeManagement} + */ +public final class NodeManagement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeManagement) + NodeManagementOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeManagement.newBuilder() to construct. + private NodeManagement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeManagement() { + autoUpgrade_ = false; + autoRepair_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeManagement( + 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 8: { + + autoUpgrade_ = input.readBool(); + break; + } + case 16: { + + autoRepair_ = input.readBool(); + break; + } + case 82: { + com.google.container.v1beta1.AutoUpgradeOptions.Builder subBuilder = null; + if (upgradeOptions_ != null) { + subBuilder = upgradeOptions_.toBuilder(); + } + upgradeOptions_ = input.readMessage(com.google.container.v1beta1.AutoUpgradeOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(upgradeOptions_); + upgradeOptions_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeManagement.class, com.google.container.v1beta1.NodeManagement.Builder.class); + } + + public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; + private boolean autoUpgrade_; + /** + *
+   * Whether the nodes will be automatically upgraded.
+   * 
+ * + * bool auto_upgrade = 1; + */ + public boolean getAutoUpgrade() { + return autoUpgrade_; + } + + public static final int AUTO_REPAIR_FIELD_NUMBER = 2; + private boolean autoRepair_; + /** + *
+   * Whether the nodes will be automatically repaired.
+   * 
+ * + * bool auto_repair = 2; + */ + public boolean getAutoRepair() { + return autoRepair_; + } + + public static final int UPGRADE_OPTIONS_FIELD_NUMBER = 10; + private com.google.container.v1beta1.AutoUpgradeOptions upgradeOptions_; + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public boolean hasUpgradeOptions() { + return upgradeOptions_ != null; + } + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions() { + return upgradeOptions_ == null ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { + return getUpgradeOptions(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (autoUpgrade_ != false) { + output.writeBool(1, autoUpgrade_); + } + if (autoRepair_ != false) { + output.writeBool(2, autoRepair_); + } + if (upgradeOptions_ != null) { + output.writeMessage(10, getUpgradeOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (autoUpgrade_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, autoUpgrade_); + } + if (autoRepair_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, autoRepair_); + } + if (upgradeOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getUpgradeOptions()); + } + 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.container.v1beta1.NodeManagement)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeManagement other = (com.google.container.v1beta1.NodeManagement) obj; + + boolean result = true; + result = result && (getAutoUpgrade() + == other.getAutoUpgrade()); + result = result && (getAutoRepair() + == other.getAutoRepair()); + result = result && (hasUpgradeOptions() == other.hasUpgradeOptions()); + if (hasUpgradeOptions()) { + result = result && getUpgradeOptions() + .equals(other.getUpgradeOptions()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUTO_UPGRADE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutoUpgrade()); + hash = (37 * hash) + AUTO_REPAIR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutoRepair()); + if (hasUpgradeOptions()) { + hash = (37 * hash) + UPGRADE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeManagement parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeManagement parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeManagement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeManagement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeManagement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeManagement parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeManagement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeManagement parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodeManagement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeManagement parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodeManagement parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeManagement parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NodeManagement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NodeManagement defines the set of node management services turned on for the
+   * node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeManagement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeManagement) + com.google.container.v1beta1.NodeManagementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeManagement.class, com.google.container.v1beta1.NodeManagement.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeManagement.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + autoUpgrade_ = false; + + autoRepair_ = false; + + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = null; + } else { + upgradeOptions_ = null; + upgradeOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeManagement_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeManagement.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement build() { + com.google.container.v1beta1.NodeManagement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement buildPartial() { + com.google.container.v1beta1.NodeManagement result = new com.google.container.v1beta1.NodeManagement(this); + result.autoUpgrade_ = autoUpgrade_; + result.autoRepair_ = autoRepair_; + if (upgradeOptionsBuilder_ == null) { + result.upgradeOptions_ = upgradeOptions_; + } else { + result.upgradeOptions_ = upgradeOptionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodeManagement) { + return mergeFrom((com.google.container.v1beta1.NodeManagement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeManagement other) { + if (other == com.google.container.v1beta1.NodeManagement.getDefaultInstance()) return this; + if (other.getAutoUpgrade() != false) { + setAutoUpgrade(other.getAutoUpgrade()); + } + if (other.getAutoRepair() != false) { + setAutoRepair(other.getAutoRepair()); + } + if (other.hasUpgradeOptions()) { + mergeUpgradeOptions(other.getUpgradeOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NodeManagement parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NodeManagement) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean autoUpgrade_ ; + /** + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + */ + public boolean getAutoUpgrade() { + return autoUpgrade_; + } + /** + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + */ + public Builder setAutoUpgrade(boolean value) { + + autoUpgrade_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + */ + public Builder clearAutoUpgrade() { + + autoUpgrade_ = false; + onChanged(); + return this; + } + + private boolean autoRepair_ ; + /** + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + */ + public boolean getAutoRepair() { + return autoRepair_; + } + /** + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + */ + public Builder setAutoRepair(boolean value) { + + autoRepair_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + */ + public Builder clearAutoRepair() { + + autoRepair_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AutoUpgradeOptions upgradeOptions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoUpgradeOptions, com.google.container.v1beta1.AutoUpgradeOptions.Builder, com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder> upgradeOptionsBuilder_; + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public boolean hasUpgradeOptions() { + return upgradeOptionsBuilder_ != null || upgradeOptions_ != null; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions() { + if (upgradeOptionsBuilder_ == null) { + return upgradeOptions_ == null ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } else { + return upgradeOptionsBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder setUpgradeOptions(com.google.container.v1beta1.AutoUpgradeOptions value) { + if (upgradeOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeOptions_ = value; + onChanged(); + } else { + upgradeOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder setUpgradeOptions( + com.google.container.v1beta1.AutoUpgradeOptions.Builder builderForValue) { + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = builderForValue.build(); + onChanged(); + } else { + upgradeOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder mergeUpgradeOptions(com.google.container.v1beta1.AutoUpgradeOptions value) { + if (upgradeOptionsBuilder_ == null) { + if (upgradeOptions_ != null) { + upgradeOptions_ = + com.google.container.v1beta1.AutoUpgradeOptions.newBuilder(upgradeOptions_).mergeFrom(value).buildPartial(); + } else { + upgradeOptions_ = value; + } + onChanged(); + } else { + upgradeOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder clearUpgradeOptions() { + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = null; + onChanged(); + } else { + upgradeOptions_ = null; + upgradeOptionsBuilder_ = null; + } + + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1beta1.AutoUpgradeOptions.Builder getUpgradeOptionsBuilder() { + + onChanged(); + return getUpgradeOptionsFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { + if (upgradeOptionsBuilder_ != null) { + return upgradeOptionsBuilder_.getMessageOrBuilder(); + } else { + return upgradeOptions_ == null ? + com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoUpgradeOptions, com.google.container.v1beta1.AutoUpgradeOptions.Builder, com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder> + getUpgradeOptionsFieldBuilder() { + if (upgradeOptionsBuilder_ == null) { + upgradeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoUpgradeOptions, com.google.container.v1beta1.AutoUpgradeOptions.Builder, com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder>( + getUpgradeOptions(), + getParentForChildren(), + isClean()); + upgradeOptions_ = null; + } + return upgradeOptionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodeManagement) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeManagement) + private static final com.google.container.v1beta1.NodeManagement DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeManagement(); + } + + public static com.google.container.v1beta1.NodeManagement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeManagement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeManagement(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java new file mode 100644 index 000000000000..febcfe37734f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodeManagementOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeManagement) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the nodes will be automatically upgraded.
+   * 
+ * + * bool auto_upgrade = 1; + */ + boolean getAutoUpgrade(); + + /** + *
+   * Whether the nodes will be automatically repaired.
+   * 
+ * + * bool auto_repair = 2; + */ + boolean getAutoRepair(); + + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + boolean hasUpgradeOptions(); + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions(); + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePool.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePool.java new file mode 100644 index 000000000000..d6ebbe444995 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePool.java @@ -0,0 +1,3103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * NodePool contains the name and configuration for a cluster's node pool.
+ * Node pools are a set of nodes (i.e. VM's), with a common configuration and
+ * specification, under the control of the cluster master. They may have a set
+ * of Kubernetes labels applied to them, which may be used to reference them
+ * during pod scheduling. They may also be resized up or down, to accommodate
+ * the workload.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool} + */ +public final class NodePool extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool) + NodePoolOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodePool.newBuilder() to construct. + private NodePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodePool() { + name_ = ""; + initialNodeCount_ = 0; + selfLink_ = ""; + version_ = ""; + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + status_ = 0; + statusMessage_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodePool( + 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: { + com.google.container.v1beta1.NodeConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = input.readMessage(com.google.container.v1beta1.NodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + initialNodeCount_ = input.readInt32(); + break; + } + case 34: { + com.google.container.v1beta1.NodePoolAutoscaling.Builder subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = input.readMessage(com.google.container.v1beta1.NodePoolAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.container.v1beta1.NodeManagement.Builder subBuilder = null; + if (management_ != null) { + subBuilder = management_.toBuilder(); + } + management_ = input.readMessage(com.google.container.v1beta1.NodeManagement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(management_); + management_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.container.v1beta1.MaxPodsConstraint.Builder subBuilder = null; + if (maxPodsConstraint_ != null) { + subBuilder = maxPodsConstraint_.toBuilder(); + } + maxPodsConstraint_ = input.readMessage(com.google.container.v1beta1.MaxPodsConstraint.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxPodsConstraint_); + maxPodsConstraint_ = subBuilder.buildPartial(); + } + + break; + } + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + + selfLink_ = s; + break; + } + case 810: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 818: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + instanceGroupUrls_.add(s); + break; + } + case 824: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 834: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 842: { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + conditions_.add( + input.readMessage(com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.class, com.google.container.v1beta1.NodePool.Builder.class); + } + + /** + *
+   * The current status of the node pool instance.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodePool.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + *
+     * The PROVISIONING state indicates the node pool is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + *
+     * The RUNNING state indicates the node pool has been created
+     * and is fully usable.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + *
+     * The RUNNING_WITH_ERROR state indicates the node pool has been created
+     * and is partially usable. Some error state has occurred and some
+     * functionality may be impaired. Customer may need to reissue a request
+     * or trigger a new update.
+     * 
+ * + * RUNNING_WITH_ERROR = 3; + */ + RUNNING_WITH_ERROR(3), + /** + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the node pool, such as upgrading node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 4; + */ + RECONCILING(4), + /** + *
+     * The STOPPING state indicates the node pool is being deleted.
+     * 
+ * + * STOPPING = 5; + */ + STOPPING(5), + /** + *
+     * The ERROR state indicates the node pool may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 6; + */ + ERROR(6), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+     * The PROVISIONING state indicates the node pool is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + *
+     * The RUNNING state indicates the node pool has been created
+     * and is fully usable.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + *
+     * The RUNNING_WITH_ERROR state indicates the node pool has been created
+     * and is partially usable. Some error state has occurred and some
+     * functionality may be impaired. Customer may need to reissue a request
+     * or trigger a new update.
+     * 
+ * + * RUNNING_WITH_ERROR = 3; + */ + public static final int RUNNING_WITH_ERROR_VALUE = 3; + /** + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the node pool, such as upgrading node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 4; + */ + public static final int RECONCILING_VALUE = 4; + /** + *
+     * The STOPPING state indicates the node pool is being deleted.
+     * 
+ * + * STOPPING = 5; + */ + public static final int STOPPING_VALUE = 5; + /** + *
+     * The ERROR state indicates the node pool may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 6; + */ + public static final int ERROR_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return RUNNING; + case 3: return RUNNING_WITH_ERROR; + case 4: return RECONCILING; + case 5: return STOPPING; + case 6: return ERROR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.NodePool.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePool.Status) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + */ + 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 CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1beta1.NodeConfig config_; + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public boolean hasConfig() { + return config_ != null; + } + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public com.google.container.v1beta1.NodeConfig getConfig() { + return config_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : config_; + } + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder() { + return getConfig(); + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_; + /** + *
+   * The initial node count for the pool. You must ensure that your
+   * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * 
+ * + * int32 initial_node_count = 3; + */ + public int getInitialNodeCount() { + return initialNodeCount_; + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + private volatile java.lang.Object selfLink_; + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 101; + private volatile java.lang.Object version_; + /** + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 102; + private com.google.protobuf.LazyStringList instanceGroupUrls_; + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + return instanceGroupUrls_; + } + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + public com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + + public static final int STATUS_FIELD_NUMBER = 103; + private int status_; + /** + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + */ + public int getStatusValue() { + return status_; + } + /** + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + */ + public com.google.container.v1beta1.NodePool.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.Status result = com.google.container.v1beta1.NodePool.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.NodePool.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; + private volatile java.lang.Object statusMessage_; + /** + *
+   * [Output only] Additional information about the current status of this
+   * node pool instance, if available.
+   * 
+ * + * string status_message = 104; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + *
+   * [Output only] Additional information about the current status of this
+   * node pool instance, if available.
+   * 
+ * + * string status_message = 104; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOSCALING_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + return autoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int MANAGEMENT_FIELD_NUMBER = 5; + private com.google.container.v1beta1.NodeManagement management_; + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public boolean hasManagement() { + return management_ != null; + } + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagement getManagement() { + return management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; + } + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int MAX_PODS_CONSTRAINT_FIELD_NUMBER = 6; + private com.google.container.v1beta1.MaxPodsConstraint maxPodsConstraint_; + /** + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public boolean hasMaxPodsConstraint() { + return maxPodsConstraint_ != null; + } + /** + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsConstraint() { + return maxPodsConstraint_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : maxPodsConstraint_; + } + /** + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { + return getMaxPodsConstraint(); + } + + public static final int CONDITIONS_FIELD_NUMBER = 105; + private java.util.List conditions_; + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (config_ != null) { + output.writeMessage(2, getConfig()); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (autoscaling_ != null) { + output.writeMessage(4, getAutoscaling()); + } + if (management_ != null) { + output.writeMessage(5, getManagement()); + } + if (maxPodsConstraint_ != null) { + output.writeMessage(6, getMaxPodsConstraint()); + } + if (!getSelfLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, version_); + } + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, instanceGroupUrls_.getRaw(i)); + } + if (status_ != com.google.container.v1beta1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(103, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 104, statusMessage_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(105, conditions_.get(i)); + } + 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 (config_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfig()); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, initialNodeCount_); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAutoscaling()); + } + if (management_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getManagement()); + } + if (maxPodsConstraint_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getMaxPodsConstraint()); + } + if (!getSelfLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, version_); + } + { + int dataSize = 0; + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(instanceGroupUrls_.getRaw(i)); + } + size += dataSize; + size += 2 * getInstanceGroupUrlsList().size(); + } + if (status_ != com.google.container.v1beta1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(103, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, statusMessage_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(105, conditions_.get(i)); + } + 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.container.v1beta1.NodePool)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePool other = (com.google.container.v1beta1.NodePool) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && (hasConfig() == other.hasConfig()); + if (hasConfig()) { + result = result && getConfig() + .equals(other.getConfig()); + } + result = result && (getInitialNodeCount() + == other.getInitialNodeCount()); + result = result && getSelfLink() + .equals(other.getSelfLink()); + result = result && getVersion() + .equals(other.getVersion()); + result = result && getInstanceGroupUrlsList() + .equals(other.getInstanceGroupUrlsList()); + result = result && status_ == other.status_; + result = result && getStatusMessage() + .equals(other.getStatusMessage()); + result = result && (hasAutoscaling() == other.hasAutoscaling()); + if (hasAutoscaling()) { + result = result && getAutoscaling() + .equals(other.getAutoscaling()); + } + result = result && (hasManagement() == other.hasManagement()); + if (hasManagement()) { + result = result && getManagement() + .equals(other.getManagement()); + } + result = result && (hasMaxPodsConstraint() == other.hasMaxPodsConstraint()); + if (hasMaxPodsConstraint()) { + result = result && getMaxPodsConstraint() + .equals(other.getMaxPodsConstraint()); + } + result = result && getConditionsList() + .equals(other.getConditionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInitialNodeCount(); + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + if (getInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().hashCode(); + } + if (hasManagement()) { + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getManagement().hashCode(); + } + if (hasMaxPodsConstraint()) { + hash = (37 * hash) + MAX_PODS_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getMaxPodsConstraint().hashCode(); + } + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePool parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePool parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodePool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePool parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodePool parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NodePool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NodePool contains the name and configuration for a cluster's node pool.
+   * Node pools are a set of nodes (i.e. VM's), with a common configuration and
+   * specification, under the control of the cluster master. They may have a set
+   * of Kubernetes labels applied to them, which may be used to reference them
+   * during pod scheduling. They may also be resized up or down, to accommodate
+   * the workload.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool) + com.google.container.v1beta1.NodePoolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.class, com.google.container.v1beta1.NodePool.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (configBuilder_ == null) { + config_ = null; + } else { + config_ = null; + configBuilder_ = null; + } + initialNodeCount_ = 0; + + selfLink_ = ""; + + version_ = ""; + + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + status_ = 0; + + statusMessage_ = ""; + + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = null; + } else { + maxPodsConstraint_ = null; + maxPodsConstraintBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + conditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool build() { + com.google.container.v1beta1.NodePool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool buildPartial() { + com.google.container.v1beta1.NodePool result = new com.google.container.v1beta1.NodePool(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (configBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + result.initialNodeCount_ = initialNodeCount_; + result.selfLink_ = selfLink_; + result.version_ = version_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.instanceGroupUrls_ = instanceGroupUrls_; + result.status_ = status_; + result.statusMessage_ = statusMessage_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + if (maxPodsConstraintBuilder_ == null) { + result.maxPodsConstraint_ = maxPodsConstraint_; + } else { + result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodePool) { + return mergeFrom((com.google.container.v1beta1.NodePool)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePool other) { + if (other == com.google.container.v1beta1.NodePool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.getInitialNodeCount() != 0) { + setInitialNodeCount(other.getInitialNodeCount()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (other.hasMaxPodsConstraint()) { + mergeMaxPodsConstraint(other.getMaxPodsConstraint()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000800); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NodePool parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NodePool) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeConfig config_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder> configBuilder_; + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public boolean hasConfig() { + return configBuilder_ != null || config_ != null; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public com.google.container.v1beta1.NodeConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder setConfig(com.google.container.v1beta1.NodeConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + configBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder setConfig( + com.google.container.v1beta1.NodeConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder mergeConfig(com.google.container.v1beta1.NodeConfig value) { + if (configBuilder_ == null) { + if (config_ != null) { + config_ = + com.google.container.v1beta1.NodeConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + configBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = null; + onChanged(); + } else { + config_ = null; + configBuilder_ = null; + } + + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public com.google.container.v1beta1.NodeConfig.Builder getConfigBuilder() { + + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null ? + com.google.container.v1beta1.NodeConfig.getDefaultInstance() : config_; + } + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + private int initialNodeCount_ ; + /** + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public int getInitialNodeCount() { + return initialNodeCount_; + } + /** + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + */ + public Builder clearInitialNodeCount() { + + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder setSelfLink( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + */ + public Builder setSelfLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + bitField0_ |= 0x00000020; + } + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + return instanceGroupUrls_.getUnmodifiableView(); + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public Builder setInstanceGroupUrls( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public Builder addInstanceGroupUrls( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public Builder addAllInstanceGroupUrls( + java.lang.Iterable values) { + ensureInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instanceGroupUrls_); + onChanged(); + return this; + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + */ + public Builder addInstanceGroupUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + */ + public com.google.container.v1beta1.NodePool.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.Status result = com.google.container.v1beta1.NodePool.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.NodePool.Status.UNRECOGNIZED : result; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + */ + public Builder setStatus(com.google.container.v1beta1.NodePool.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * [Output only] Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104; + */ + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104; + */ + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + *
+     * [Output only] Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104; + */ + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> autoscalingBuilder_; + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder setAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder setAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder mergeAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1beta1.NodePoolAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1beta1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null ? + com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( + getAutoscaling(), + getParentForChildren(), + isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private com.google.container.v1beta1.NodeManagement management_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder> managementBuilder_; + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder setManagement( + com.google.container.v1beta1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1beta1.NodeManagement.newBuilder(management_).mergeFrom(value).buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null ? + com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; + } + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder>( + getManagement(), + getParentForChildren(), + isClean()); + management_ = null; + } + return managementBuilder_; + } + + private com.google.container.v1beta1.MaxPodsConstraint maxPodsConstraint_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder> maxPodsConstraintBuilder_; + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public boolean hasMaxPodsConstraint() { + return maxPodsConstraintBuilder_ != null || maxPodsConstraint_ != null; + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsConstraint() { + if (maxPodsConstraintBuilder_ == null) { + return maxPodsConstraint_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : maxPodsConstraint_; + } else { + return maxPodsConstraintBuilder_.getMessage(); + } + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder setMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { + if (maxPodsConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxPodsConstraint_ = value; + onChanged(); + } else { + maxPodsConstraintBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder setMaxPodsConstraint( + com.google.container.v1beta1.MaxPodsConstraint.Builder builderForValue) { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = builderForValue.build(); + onChanged(); + } else { + maxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder mergeMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { + if (maxPodsConstraintBuilder_ == null) { + if (maxPodsConstraint_ != null) { + maxPodsConstraint_ = + com.google.container.v1beta1.MaxPodsConstraint.newBuilder(maxPodsConstraint_).mergeFrom(value).buildPartial(); + } else { + maxPodsConstraint_ = value; + } + onChanged(); + } else { + maxPodsConstraintBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder clearMaxPodsConstraint() { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = null; + onChanged(); + } else { + maxPodsConstraint_ = null; + maxPodsConstraintBuilder_ = null; + } + + return this; + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1beta1.MaxPodsConstraint.Builder getMaxPodsConstraintBuilder() { + + onChanged(); + return getMaxPodsConstraintFieldBuilder().getBuilder(); + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { + if (maxPodsConstraintBuilder_ != null) { + return maxPodsConstraintBuilder_.getMessageOrBuilder(); + } else { + return maxPodsConstraint_ == null ? + com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : maxPodsConstraint_; + } + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + getMaxPodsConstraintFieldBuilder() { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder>( + getMaxPodsConstraint(), + getParentForChildren(), + isClean()); + maxPodsConstraint_ = null; + } + return maxPodsConstraintBuilder_; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> conditionsBuilder_; + + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder setConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder setConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions(com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00000800) == 0x00000800), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodePool) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool) + private static final com.google.container.v1beta1.NodePool DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool(); + } + + public static com.google.container.v1beta1.NodePool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodePool(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java new file mode 100644 index 000000000000..3329a4b29aad --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java @@ -0,0 +1,730 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * NodePoolAutoscaling contains information required by cluster autoscaler to
+ * adjust the size of the node pool to the current cluster usage.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolAutoscaling} + */ +public final class NodePoolAutoscaling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePoolAutoscaling) + NodePoolAutoscalingOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodePoolAutoscaling.newBuilder() to construct. + private NodePoolAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodePoolAutoscaling() { + enabled_ = false; + minNodeCount_ = 0; + maxNodeCount_ = 0; + autoprovisioned_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodePoolAutoscaling( + 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 8: { + + enabled_ = input.readBool(); + break; + } + case 16: { + + minNodeCount_ = input.readInt32(); + break; + } + case 24: { + + maxNodeCount_ = input.readInt32(); + break; + } + case 32: { + + autoprovisioned_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePoolAutoscaling.class, com.google.container.v1beta1.NodePoolAutoscaling.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+   * Is autoscaling enabled for this node pool.
+   * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; + private int minNodeCount_; + /** + *
+   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+   * max_node_count.
+   * 
+ * + * int32 min_node_count = 2; + */ + public int getMinNodeCount() { + return minNodeCount_; + } + + public static final int MAX_NODE_COUNT_FIELD_NUMBER = 3; + private int maxNodeCount_; + /** + *
+   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+   * has to enough quota to scale up the cluster.
+   * 
+ * + * int32 max_node_count = 3; + */ + public int getMaxNodeCount() { + return maxNodeCount_; + } + + public static final int AUTOPROVISIONED_FIELD_NUMBER = 4; + private boolean autoprovisioned_; + /** + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + */ + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (minNodeCount_ != 0) { + output.writeInt32(2, minNodeCount_); + } + if (maxNodeCount_ != 0) { + output.writeInt32(3, maxNodeCount_); + } + if (autoprovisioned_ != false) { + output.writeBool(4, autoprovisioned_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (minNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minNodeCount_); + } + if (maxNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxNodeCount_); + } + if (autoprovisioned_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, autoprovisioned_); + } + 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.container.v1beta1.NodePoolAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePoolAutoscaling other = (com.google.container.v1beta1.NodePoolAutoscaling) obj; + + boolean result = true; + result = result && (getEnabled() + == other.getEnabled()); + result = result && (getMinNodeCount() + == other.getMinNodeCount()); + result = result && (getMaxNodeCount() + == other.getMaxNodeCount()); + result = result && (getAutoprovisioned() + == other.getAutoprovisioned()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + MIN_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinNodeCount(); + hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxNodeCount(); + hash = (37 * hash) + AUTOPROVISIONED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutoprovisioned()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NodePoolAutoscaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NodePoolAutoscaling contains information required by cluster autoscaler to
+   * adjust the size of the node pool to the current cluster usage.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolAutoscaling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePoolAutoscaling) + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePoolAutoscaling.class, com.google.container.v1beta1.NodePoolAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePoolAutoscaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + minNodeCount_ = 0; + + maxNodeCount_ = 0; + + autoprovisioned_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling build() { + com.google.container.v1beta1.NodePoolAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling buildPartial() { + com.google.container.v1beta1.NodePoolAutoscaling result = new com.google.container.v1beta1.NodePoolAutoscaling(this); + result.enabled_ = enabled_; + result.minNodeCount_ = minNodeCount_; + result.maxNodeCount_ = maxNodeCount_; + result.autoprovisioned_ = autoprovisioned_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodePoolAutoscaling) { + return mergeFrom((com.google.container.v1beta1.NodePoolAutoscaling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePoolAutoscaling other) { + if (other == com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getMinNodeCount() != 0) { + setMinNodeCount(other.getMinNodeCount()); + } + if (other.getMaxNodeCount() != 0) { + setMaxNodeCount(other.getMaxNodeCount()); + } + if (other.getAutoprovisioned() != false) { + setAutoprovisioned(other.getAutoprovisioned()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NodePoolAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NodePoolAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private int minNodeCount_ ; + /** + *
+     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + */ + public int getMinNodeCount() { + return minNodeCount_; + } + /** + *
+     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + */ + public Builder setMinNodeCount(int value) { + + minNodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + */ + public Builder clearMinNodeCount() { + + minNodeCount_ = 0; + onChanged(); + return this; + } + + private int maxNodeCount_ ; + /** + *
+     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+     * has to enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + */ + public int getMaxNodeCount() { + return maxNodeCount_; + } + /** + *
+     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+     * has to enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + */ + public Builder setMaxNodeCount(int value) { + + maxNodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+     * has to enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + */ + public Builder clearMaxNodeCount() { + + maxNodeCount_ = 0; + onChanged(); + return this; + } + + private boolean autoprovisioned_ ; + /** + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + */ + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + /** + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + */ + public Builder setAutoprovisioned(boolean value) { + + autoprovisioned_ = value; + onChanged(); + return this; + } + /** + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + */ + public Builder clearAutoprovisioned() { + + autoprovisioned_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodePoolAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePoolAutoscaling) + private static final com.google.container.v1beta1.NodePoolAutoscaling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePoolAutoscaling(); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodePoolAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java new file mode 100644 index 000000000000..fa16dc3daa01 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodePoolAutoscalingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePoolAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Is autoscaling enabled for this node pool.
+   * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); + + /** + *
+   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+   * max_node_count.
+   * 
+ * + * int32 min_node_count = 2; + */ + int getMinNodeCount(); + + /** + *
+   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+   * has to enough quota to scale up the cluster.
+   * 
+ * + * int32 max_node_count = 3; + */ + int getMaxNodeCount(); + + /** + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + */ + boolean getAutoprovisioned(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolName.java new file mode 100644 index 000000000000..afd6a3b099ee --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolName.java @@ -0,0 +1,235 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1beta1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class NodePoolName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + private final String cluster; + private final String nodePool; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getNodePool() { + return nodePool; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private NodePoolName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + nodePool = Preconditions.checkNotNull(builder.getNodePool()); + } + + public static NodePoolName of(String project, String location, String cluster, String nodePool) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setNodePool(nodePool) + .build(); + } + + public static String format(String project, String location, String cluster, String nodePool) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .setNodePool(nodePool) + .build() + .toString(); + } + + public static NodePoolName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "NodePoolName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster"), matchMap.get("node_pool")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (NodePoolName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldMapBuilder.put("cluster", cluster); + fieldMapBuilder.put("nodePool", nodePool); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location, "cluster", cluster, "node_pool", nodePool); + } + + /** Builder for NodePoolName. */ + public static class Builder { + + private String project; + private String location; + private String cluster; + private String nodePool; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public String getNodePool() { + return nodePool; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + public Builder setNodePool(String nodePool) { + this.nodePool = nodePool; + return this; + } + + private Builder() { + } + + private Builder(NodePoolName nodePoolName) { + project = nodePoolName.project; + location = nodePoolName.location; + cluster = nodePoolName.cluster; + nodePool = nodePoolName.nodePool; + } + + public NodePoolName build() { + return new NodePoolName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof NodePoolName) { + NodePoolName that = (NodePoolName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)) + && (this.cluster.equals(that.cluster)) + && (this.nodePool.equals(that.nodePool)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + h *= 1000003; + h ^= cluster.hashCode(); + h *= 1000003; + h ^= nodePool.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java new file mode 100644 index 000000000000..010a2a52e3b3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java @@ -0,0 +1,305 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodePoolOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + boolean hasConfig(); + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + com.google.container.v1beta1.NodeConfig getConfig(); + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder(); + + /** + *
+   * The initial node count for the pool. You must ensure that your
+   * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * 
+ * + * int32 initial_node_count = 3; + */ + int getInitialNodeCount(); + + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + java.lang.String getSelfLink(); + /** + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + */ + com.google.protobuf.ByteString + getSelfLinkBytes(); + + /** + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + */ + java.lang.String getVersion(); + /** + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + java.util.List + getInstanceGroupUrlsList(); + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + int getInstanceGroupUrlsCount(); + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + java.lang.String getInstanceGroupUrls(int index); + /** + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + */ + com.google.protobuf.ByteString + getInstanceGroupUrlsBytes(int index); + + /** + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + */ + int getStatusValue(); + /** + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + */ + com.google.container.v1beta1.NodePool.Status getStatus(); + + /** + *
+   * [Output only] Additional information about the current status of this
+   * node pool instance, if available.
+   * 
+ * + * string status_message = 104; + */ + java.lang.String getStatusMessage(); + /** + *
+   * [Output only] Additional information about the current status of this
+   * node pool instance, if available.
+   * 
+ * + * string status_message = 104; + */ + com.google.protobuf.ByteString + getStatusMessageBytes(); + + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + boolean hasAutoscaling(); + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling(); + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + boolean hasManagement(); + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + com.google.container.v1beta1.NodeManagement getManagement(); + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + boolean hasMaxPodsConstraint(); + /** + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + com.google.container.v1beta1.MaxPodsConstraint getMaxPodsConstraint(); + /** + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder(); + + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + java.util.List + getConditionsList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + com.google.container.v1beta1.StatusCondition getConditions(int index); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + int getConditionsCount(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeTaint.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeTaint.java new file mode 100644 index 000000000000..aab66df96394 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeTaint.java @@ -0,0 +1,1003 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
+ * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
+ * For more information, including usage and the valid values, see:
+ * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeTaint} + */ +public final class NodeTaint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeTaint) + NodeTaintOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeTaint.newBuilder() to construct. + private NodeTaint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeTaint() { + key_ = ""; + value_ = ""; + effect_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeTaint( + 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(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + effect_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeTaint.class, com.google.container.v1beta1.NodeTaint.Builder.class); + } + + /** + *
+   * Possible values for Effect in taint.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodeTaint.Effect} + */ + public enum Effect + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set
+     * 
+ * + * EFFECT_UNSPECIFIED = 0; + */ + EFFECT_UNSPECIFIED(0), + /** + *
+     * NoSchedule
+     * 
+ * + * NO_SCHEDULE = 1; + */ + NO_SCHEDULE(1), + /** + *
+     * PreferNoSchedule
+     * 
+ * + * PREFER_NO_SCHEDULE = 2; + */ + PREFER_NO_SCHEDULE(2), + /** + *
+     * NoExecute
+     * 
+ * + * NO_EXECUTE = 3; + */ + NO_EXECUTE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set
+     * 
+ * + * EFFECT_UNSPECIFIED = 0; + */ + public static final int EFFECT_UNSPECIFIED_VALUE = 0; + /** + *
+     * NoSchedule
+     * 
+ * + * NO_SCHEDULE = 1; + */ + public static final int NO_SCHEDULE_VALUE = 1; + /** + *
+     * PreferNoSchedule
+     * 
+ * + * PREFER_NO_SCHEDULE = 2; + */ + public static final int PREFER_NO_SCHEDULE_VALUE = 2; + /** + *
+     * NoExecute
+     * 
+ * + * NO_EXECUTE = 3; + */ + public static final int NO_EXECUTE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Effect valueOf(int value) { + return forNumber(value); + } + + public static Effect forNumber(int value) { + switch (value) { + case 0: return EFFECT_UNSPECIFIED; + case 1: return NO_SCHEDULE; + case 2: return PREFER_NO_SCHEDULE; + case 3: return NO_EXECUTE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Effect> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Effect findValueByNumber(int number) { + return Effect.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.NodeTaint.getDescriptor().getEnumTypes().get(0); + } + + private static final Effect[] VALUES = values(); + + public static Effect valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Effect(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodeTaint.Effect) + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECT_FIELD_NUMBER = 3; + private int effect_; + /** + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + */ + public int getEffectValue() { + return effect_; + } + /** + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + */ + public com.google.container.v1beta1.NodeTaint.Effect getEffect() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodeTaint.Effect result = com.google.container.v1beta1.NodeTaint.Effect.valueOf(effect_); + return result == null ? com.google.container.v1beta1.NodeTaint.Effect.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (effect_ != com.google.container.v1beta1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + output.writeEnum(3, effect_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (effect_ != com.google.container.v1beta1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, effect_); + } + 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.container.v1beta1.NodeTaint)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeTaint other = (com.google.container.v1beta1.NodeTaint) obj; + + boolean result = true; + result = result && getKey() + .equals(other.getKey()); + result = result && getValue() + .equals(other.getValue()); + result = result && effect_ == other.effect_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + EFFECT_FIELD_NUMBER; + hash = (53 * hash) + effect_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeTaint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeTaint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeTaint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeTaint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeTaint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeTaint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeTaint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeTaint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodeTaint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeTaint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodeTaint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeTaint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NodeTaint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
+   * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeTaint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeTaint) + com.google.container.v1beta1.NodeTaintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeTaint.class, com.google.container.v1beta1.NodeTaint.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeTaint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + effect_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaint_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeTaint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint build() { + com.google.container.v1beta1.NodeTaint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint buildPartial() { + com.google.container.v1beta1.NodeTaint result = new com.google.container.v1beta1.NodeTaint(this); + result.key_ = key_; + result.value_ = value_; + result.effect_ = effect_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodeTaint) { + return mergeFrom((com.google.container.v1beta1.NodeTaint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeTaint other) { + if (other == com.google.container.v1beta1.NodeTaint.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.effect_ != 0) { + setEffectValue(other.getEffectValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NodeTaint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NodeTaint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private int effect_ = 0; + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + */ + public int getEffectValue() { + return effect_; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + */ + public Builder setEffectValue(int value) { + effect_ = value; + onChanged(); + return this; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + */ + public com.google.container.v1beta1.NodeTaint.Effect getEffect() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodeTaint.Effect result = com.google.container.v1beta1.NodeTaint.Effect.valueOf(effect_); + return result == null ? com.google.container.v1beta1.NodeTaint.Effect.UNRECOGNIZED : result; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + */ + public Builder setEffect(com.google.container.v1beta1.NodeTaint.Effect value) { + if (value == null) { + throw new NullPointerException(); + } + + effect_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + */ + public Builder clearEffect() { + + effect_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodeTaint) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeTaint) + private static final com.google.container.v1beta1.NodeTaint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeTaint(); + } + + public static com.google.container.v1beta1.NodeTaint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeTaint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeTaint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java new file mode 100644 index 000000000000..2abeba265f3c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodeTaintOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeTaint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + */ + java.lang.String getKey(); + /** + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + */ + java.lang.String getValue(); + /** + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + */ + int getEffectValue(); + /** + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + */ + com.google.container.v1beta1.NodeTaint.Effect getEffect(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/Operation.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/Operation.java new file mode 100644 index 000000000000..28ca4d6b6877 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/Operation.java @@ -0,0 +1,3747 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * This operation resource represents operations that may have happened or are
+ * happening on the cluster. All fields are output only.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Operation} + */ +public final class Operation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Operation) + OperationOrBuilder { +private static final long serialVersionUID = 0L; + // Use Operation.newBuilder() to construct. + private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Operation() { + name_ = ""; + zone_ = ""; + operationType_ = 0; + status_ = 0; + detail_ = ""; + statusMessage_ = ""; + selfLink_ = ""; + targetLink_ = ""; + location_ = ""; + startTime_ = ""; + endTime_ = ""; + clusterConditions_ = java.util.Collections.emptyList(); + nodepoolConditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Operation( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + operationType_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + selfLink_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + targetLink_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + detail_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + startTime_ = s; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + endTime_ = s; + break; + } + case 98: { + com.google.container.v1beta1.OperationProgress.Builder subBuilder = null; + if (progress_ != null) { + subBuilder = progress_.toBuilder(); + } + progress_ = input.readMessage(com.google.container.v1beta1.OperationProgress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progress_); + progress_ = subBuilder.buildPartial(); + } + + break; + } + case 106: { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + clusterConditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + clusterConditions_.add( + input.readMessage(com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry)); + break; + } + case 114: { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + nodepoolConditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00002000; + } + nodepoolConditions_.add( + input.readMessage(com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + } + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Operation.class, com.google.container.v1beta1.Operation.Builder.class); + } + + /** + *
+   * Current status of the operation.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Operation.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + *
+     * The operation has been created.
+     * 
+ * + * PENDING = 1; + */ + PENDING(1), + /** + *
+     * The operation is currently running.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + *
+     * The operation is done, either cancelled or completed.
+     * 
+ * + * DONE = 3; + */ + DONE(3), + /** + *
+     * The operation is aborting.
+     * 
+ * + * ABORTING = 4; + */ + ABORTING(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+     * The operation has been created.
+     * 
+ * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + *
+     * The operation is currently running.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + *
+     * The operation is done, either cancelled or completed.
+     * 
+ * + * DONE = 3; + */ + public static final int DONE_VALUE = 3; + /** + *
+     * The operation is aborting.
+     * 
+ * + * ABORTING = 4; + */ + public static final int ABORTING_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return PENDING; + case 2: return RUNNING; + case 3: return DONE; + case 4: return ABORTING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.Operation.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Operation.Status) + } + + /** + *
+   * Operation type.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Operation.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + *
+     * Cluster create.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + CREATE_CLUSTER(1), + /** + *
+     * Cluster delete.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + DELETE_CLUSTER(2), + /** + *
+     * A master upgrade.
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + UPGRADE_MASTER(3), + /** + *
+     * A node upgrade.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + UPGRADE_NODES(4), + /** + *
+     * Cluster repair.
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + REPAIR_CLUSTER(5), + /** + *
+     * Cluster update.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + UPDATE_CLUSTER(6), + /** + *
+     * Node pool create.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + CREATE_NODE_POOL(7), + /** + *
+     * Node pool delete.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + DELETE_NODE_POOL(8), + /** + *
+     * Set node pool management.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + SET_NODE_POOL_MANAGEMENT(9), + /** + *
+     * Automatic node pool repair.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + AUTO_REPAIR_NODES(10), + /** + *
+     * Automatic node upgrade.
+     * 
+ * + * AUTO_UPGRADE_NODES = 11; + */ + AUTO_UPGRADE_NODES(11), + /** + *
+     * Set labels.
+     * 
+ * + * SET_LABELS = 12; + */ + SET_LABELS(12), + /** + *
+     * Set/generate master auth materials
+     * 
+ * + * SET_MASTER_AUTH = 13; + */ + SET_MASTER_AUTH(13), + /** + *
+     * Set node pool size.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + SET_NODE_POOL_SIZE(14), + /** + *
+     * Updates network policy for a cluster.
+     * 
+ * + * SET_NETWORK_POLICY = 15; + */ + SET_NETWORK_POLICY(15), + /** + *
+     * Set the maintenance policy.
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16; + */ + SET_MAINTENANCE_POLICY(16), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Cluster create.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + public static final int CREATE_CLUSTER_VALUE = 1; + /** + *
+     * Cluster delete.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + public static final int DELETE_CLUSTER_VALUE = 2; + /** + *
+     * A master upgrade.
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + public static final int UPGRADE_MASTER_VALUE = 3; + /** + *
+     * A node upgrade.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + public static final int UPGRADE_NODES_VALUE = 4; + /** + *
+     * Cluster repair.
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + public static final int REPAIR_CLUSTER_VALUE = 5; + /** + *
+     * Cluster update.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + public static final int UPDATE_CLUSTER_VALUE = 6; + /** + *
+     * Node pool create.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + public static final int CREATE_NODE_POOL_VALUE = 7; + /** + *
+     * Node pool delete.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + public static final int DELETE_NODE_POOL_VALUE = 8; + /** + *
+     * Set node pool management.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; + /** + *
+     * Automatic node pool repair.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + public static final int AUTO_REPAIR_NODES_VALUE = 10; + /** + *
+     * Automatic node upgrade.
+     * 
+ * + * AUTO_UPGRADE_NODES = 11; + */ + public static final int AUTO_UPGRADE_NODES_VALUE = 11; + /** + *
+     * Set labels.
+     * 
+ * + * SET_LABELS = 12; + */ + public static final int SET_LABELS_VALUE = 12; + /** + *
+     * Set/generate master auth materials
+     * 
+ * + * SET_MASTER_AUTH = 13; + */ + public static final int SET_MASTER_AUTH_VALUE = 13; + /** + *
+     * Set node pool size.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + public static final int SET_NODE_POOL_SIZE_VALUE = 14; + /** + *
+     * Updates network policy for a cluster.
+     * 
+ * + * SET_NETWORK_POLICY = 15; + */ + public static final int SET_NETWORK_POLICY_VALUE = 15; + /** + *
+     * Set the maintenance policy.
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16; + */ + public static final int SET_MAINTENANCE_POLICY_VALUE = 16; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type forNumber(int value) { + switch (value) { + case 0: return TYPE_UNSPECIFIED; + case 1: return CREATE_CLUSTER; + case 2: return DELETE_CLUSTER; + case 3: return UPGRADE_MASTER; + case 4: return UPGRADE_NODES; + case 5: return REPAIR_CLUSTER; + case 6: return UPDATE_CLUSTER; + case 7: return CREATE_NODE_POOL; + case 8: return DELETE_NODE_POOL; + case 9: return SET_NODE_POOL_MANAGEMENT; + case 10: return AUTO_REPAIR_NODES; + case 11: return AUTO_UPGRADE_NODES; + case 12: return SET_LABELS; + case 13: return SET_MASTER_AUTH; + case 14: return SET_NODE_POOL_SIZE; + case 15: return SET_NETWORK_POLICY; + case 16: return SET_MAINTENANCE_POLICY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.Operation.getDescriptor().getEnumTypes().get(1); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Operation.Type) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + */ + 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 server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + */ + 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 ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation
+   * is taking place.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation
+   * is taking place.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 3; + private int operationType_; + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + */ + public com.google.container.v1beta1.Operation.Type getOperationType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Type result = com.google.container.v1beta1.Operation.Type.valueOf(operationType_); + return result == null ? com.google.container.v1beta1.Operation.Type.UNRECOGNIZED : result; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_; + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + */ + public int getStatusValue() { + return status_; + } + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + */ + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int DETAIL_FIELD_NUMBER = 8; + private volatile java.lang.Object detail_; + /** + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } + } + /** + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + */ + public com.google.protobuf.ByteString + getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object statusMessage_; + /** + *
+   * If an error has occurred, a textual description of the error.
+   * 
+ * + * string status_message = 5; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + *
+   * If an error has occurred, a textual description of the error.
+   * 
+ * + * string status_message = 5; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELF_LINK_FIELD_NUMBER = 6; + private volatile java.lang.Object selfLink_; + /** + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_LINK_FIELD_NUMBER = 7; + private volatile java.lang.Object targetLink_; + /** + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + */ + public java.lang.String getTargetLink() { + java.lang.Object ref = targetLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLink_ = s; + return s; + } + } + /** + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + */ + public com.google.protobuf.ByteString + getTargetLinkBytes() { + java.lang.Object ref = targetLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 9; + private volatile java.lang.Object location_; + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 10; + private volatile java.lang.Object startTime_; + /** + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } + } + /** + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + */ + public com.google.protobuf.ByteString + getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int END_TIME_FIELD_NUMBER = 11; + private volatile java.lang.Object endTime_; + /** + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + */ + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } + } + /** + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + */ + public com.google.protobuf.ByteString + getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_FIELD_NUMBER = 12; + private com.google.container.v1beta1.OperationProgress progress_; + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public boolean hasProgress() { + return progress_ != null; + } + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public com.google.container.v1beta1.OperationProgress getProgress() { + return progress_ == null ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() : progress_; + } + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder() { + return getProgress(); + } + + public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; + private java.util.List clusterConditions_; + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public java.util.List getClusterConditionsList() { + return clusterConditions_; + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public java.util.List + getClusterConditionsOrBuilderList() { + return clusterConditions_; + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public int getClusterConditionsCount() { + return clusterConditions_.size(); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1beta1.StatusCondition getClusterConditions(int index) { + return clusterConditions_.get(index); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index) { + return clusterConditions_.get(index); + } + + public static final int NODEPOOL_CONDITIONS_FIELD_NUMBER = 14; + private java.util.List nodepoolConditions_; + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List getNodepoolConditionsList() { + return nodepoolConditions_; + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List + getNodepoolConditionsOrBuilderList() { + return nodepoolConditions_; + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public int getNodepoolConditionsCount() { + return nodepoolConditions_.size(); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index) { + return nodepoolConditions_.get(index); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index) { + return nodepoolConditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (operationType_ != com.google.container.v1beta1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, operationType_); + } + if (status_ != com.google.container.v1beta1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(4, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (!getSelfLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selfLink_); + } + if (!getTargetLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetLink_); + } + if (!getDetailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_); + } + if (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_); + } + if (!getStartTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); + } + if (!getEndTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_); + } + if (progress_ != null) { + output.writeMessage(12, getProgress()); + } + for (int i = 0; i < clusterConditions_.size(); i++) { + output.writeMessage(13, clusterConditions_.get(i)); + } + for (int i = 0; i < nodepoolConditions_.size(); i++) { + output.writeMessage(14, nodepoolConditions_.get(i)); + } + 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 (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (operationType_ != com.google.container.v1beta1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, operationType_); + } + if (status_ != com.google.container.v1beta1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (!getSelfLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selfLink_); + } + if (!getTargetLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetLink_); + } + if (!getDetailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_); + } + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_); + } + if (!getStartTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); + } + if (!getEndTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_); + } + if (progress_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getProgress()); + } + for (int i = 0; i < clusterConditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, clusterConditions_.get(i)); + } + for (int i = 0; i < nodepoolConditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, nodepoolConditions_.get(i)); + } + 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.container.v1beta1.Operation)) { + return super.equals(obj); + } + com.google.container.v1beta1.Operation other = (com.google.container.v1beta1.Operation) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getZone() + .equals(other.getZone()); + result = result && operationType_ == other.operationType_; + result = result && status_ == other.status_; + result = result && getDetail() + .equals(other.getDetail()); + result = result && getStatusMessage() + .equals(other.getStatusMessage()); + result = result && getSelfLink() + .equals(other.getSelfLink()); + result = result && getTargetLink() + .equals(other.getTargetLink()); + result = result && getLocation() + .equals(other.getLocation()); + result = result && getStartTime() + .equals(other.getStartTime()); + result = result && getEndTime() + .equals(other.getEndTime()); + result = result && (hasProgress() == other.hasProgress()); + if (hasProgress()) { + result = result && getProgress() + .equals(other.getProgress()); + } + result = result && getClusterConditionsList() + .equals(other.getClusterConditionsList()); + result = result && getNodepoolConditionsList() + .equals(other.getNodepoolConditionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + operationType_; + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getDetail().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + TARGET_LINK_FIELD_NUMBER; + hash = (53 * hash) + getTargetLink().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + if (hasProgress()) { + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + getProgress().hashCode(); + } + if (getClusterConditionsCount() > 0) { + hash = (37 * hash) + CLUSTER_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getClusterConditionsList().hashCode(); + } + if (getNodepoolConditionsCount() > 0) { + hash = (37 * hash) + NODEPOOL_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getNodepoolConditionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.Operation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Operation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Operation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Operation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Operation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Operation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Operation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Operation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.Operation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Operation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.Operation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Operation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.Operation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * This operation resource represents operations that may have happened or are
+   * happening on the cluster. All fields are output only.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.Operation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Operation) + com.google.container.v1beta1.OperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Operation.class, com.google.container.v1beta1.Operation.Builder.class); + } + + // Construct using com.google.container.v1beta1.Operation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getClusterConditionsFieldBuilder(); + getNodepoolConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + zone_ = ""; + + operationType_ = 0; + + status_ = 0; + + detail_ = ""; + + statusMessage_ = ""; + + selfLink_ = ""; + + targetLink_ = ""; + + location_ = ""; + + startTime_ = ""; + + endTime_ = ""; + + if (progressBuilder_ == null) { + progress_ = null; + } else { + progress_ = null; + progressBuilder_ = null; + } + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + } else { + clusterConditionsBuilder_.clear(); + } + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + } else { + nodepoolConditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Operation_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Operation getDefaultInstanceForType() { + return com.google.container.v1beta1.Operation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Operation build() { + com.google.container.v1beta1.Operation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Operation buildPartial() { + com.google.container.v1beta1.Operation result = new com.google.container.v1beta1.Operation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.zone_ = zone_; + result.operationType_ = operationType_; + result.status_ = status_; + result.detail_ = detail_; + result.statusMessage_ = statusMessage_; + result.selfLink_ = selfLink_; + result.targetLink_ = targetLink_; + result.location_ = location_; + result.startTime_ = startTime_; + result.endTime_ = endTime_; + if (progressBuilder_ == null) { + result.progress_ = progress_; + } else { + result.progress_ = progressBuilder_.build(); + } + if (clusterConditionsBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.clusterConditions_ = clusterConditions_; + } else { + result.clusterConditions_ = clusterConditionsBuilder_.build(); + } + if (nodepoolConditionsBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.nodepoolConditions_ = nodepoolConditions_; + } else { + result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.Operation) { + return mergeFrom((com.google.container.v1beta1.Operation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Operation other) { + if (other == com.google.container.v1beta1.Operation.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getTargetLink().isEmpty()) { + targetLink_ = other.targetLink_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + onChanged(); + } + if (!other.getEndTime().isEmpty()) { + endTime_ = other.endTime_; + onChanged(); + } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } + if (clusterConditionsBuilder_ == null) { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditions_.isEmpty()) { + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureClusterConditionsIsMutable(); + clusterConditions_.addAll(other.clusterConditions_); + } + onChanged(); + } + } else { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditionsBuilder_.isEmpty()) { + clusterConditionsBuilder_.dispose(); + clusterConditionsBuilder_ = null; + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00001000); + clusterConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClusterConditionsFieldBuilder() : null; + } else { + clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); + } + } + } + if (nodepoolConditionsBuilder_ == null) { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditions_.isEmpty()) { + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.addAll(other.nodepoolConditions_); + } + onChanged(); + } + } else { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditionsBuilder_.isEmpty()) { + nodepoolConditionsBuilder_.dispose(); + nodepoolConditionsBuilder_ = null; + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00002000); + nodepoolConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodepoolConditionsFieldBuilder() : null; + } else { + nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.Operation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.Operation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + */ + 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 server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + */ + 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 server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + */ + 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 zone_ = ""; + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation
+     * is taking place.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation
+     * is taking place.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation
+     * is taking place.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation
+     * is taking place.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the operation
+     * is taking place.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private int operationType_ = 0; + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + */ + public Builder setOperationTypeValue(int value) { + operationType_ = value; + onChanged(); + return this; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + */ + public com.google.container.v1beta1.Operation.Type getOperationType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Type result = com.google.container.v1beta1.Operation.Type.valueOf(operationType_); + return result == null ? com.google.container.v1beta1.Operation.Type.UNRECOGNIZED : result; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + */ + public Builder setOperationType(com.google.container.v1beta1.Operation.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + */ + public Builder clearOperationType() { + + operationType_ = 0; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + */ + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + */ + public Builder setStatus(com.google.container.v1beta1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object detail_ = ""; + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + */ + public com.google.protobuf.ByteString + getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + */ + public Builder setDetail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + detail_ = value; + onChanged(); + return this; + } + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + */ + public Builder clearDetail() { + + detail_ = getDefaultInstance().getDetail(); + onChanged(); + return this; + } + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + */ + public Builder setDetailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + detail_ = value; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * If an error has occurred, a textual description of the error.
+     * 
+ * + * string status_message = 5; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If an error has occurred, a textual description of the error.
+     * 
+ * + * string status_message = 5; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If an error has occurred, a textual description of the error.
+     * 
+ * + * string status_message = 5; + */ + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + *
+     * If an error has occurred, a textual description of the error.
+     * 
+ * + * string status_message = 5; + */ + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + *
+     * If an error has occurred, a textual description of the error.
+     * 
+ * + * string status_message = 5; + */ + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + */ + public Builder setSelfLink( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + */ + public Builder setSelfLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetLink_ = ""; + /** + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + */ + public java.lang.String getTargetLink() { + java.lang.Object ref = targetLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + */ + public com.google.protobuf.ByteString + getTargetLinkBytes() { + java.lang.Object ref = targetLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + */ + public Builder setTargetLink( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetLink_ = value; + onChanged(); + return this; + } + /** + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + */ + public Builder clearTargetLink() { + + targetLink_ = getDefaultInstance().getTargetLink(); + onChanged(); + return this; + } + /** + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + */ + public Builder setTargetLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public Builder setLocation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
+     * 
+ * + * string location = 9; + */ + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private java.lang.Object startTime_ = ""; + /** + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + */ + public com.google.protobuf.ByteString + getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + */ + public Builder setStartTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startTime_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + */ + public Builder clearStartTime() { + + startTime_ = getDefaultInstance().getStartTime(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + */ + public Builder setStartTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object endTime_ = ""; + /** + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + */ + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + */ + public com.google.protobuf.ByteString + getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + */ + public Builder setEndTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endTime_ = value; + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + */ + public Builder clearEndTime() { + + endTime_ = getDefaultInstance().getEndTime(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + */ + public Builder setEndTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endTime_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.OperationProgress progress_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder> progressBuilder_; + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public boolean hasProgress() { + return progressBuilder_ != null || progress_ != null; + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public com.google.container.v1beta1.OperationProgress getProgress() { + if (progressBuilder_ == null) { + return progress_ == null ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() : progress_; + } else { + return progressBuilder_.getMessage(); + } + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public Builder setProgress(com.google.container.v1beta1.OperationProgress value) { + if (progressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progress_ = value; + onChanged(); + } else { + progressBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public Builder setProgress( + com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (progressBuilder_ == null) { + progress_ = builderForValue.build(); + onChanged(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public Builder mergeProgress(com.google.container.v1beta1.OperationProgress value) { + if (progressBuilder_ == null) { + if (progress_ != null) { + progress_ = + com.google.container.v1beta1.OperationProgress.newBuilder(progress_).mergeFrom(value).buildPartial(); + } else { + progress_ = value; + } + onChanged(); + } else { + progressBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public Builder clearProgress() { + if (progressBuilder_ == null) { + progress_ = null; + onChanged(); + } else { + progress_ = null; + progressBuilder_ = null; + } + + return this; + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public com.google.container.v1beta1.OperationProgress.Builder getProgressBuilder() { + + onChanged(); + return getProgressFieldBuilder().getBuilder(); + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + public com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder() { + if (progressBuilder_ != null) { + return progressBuilder_.getMessageOrBuilder(); + } else { + return progress_ == null ? + com.google.container.v1beta1.OperationProgress.getDefaultInstance() : progress_; + } + } + /** + *
+     * [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder> + getProgressFieldBuilder() { + if (progressBuilder_ == null) { + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); + progress_ = null; + } + return progressBuilder_; + } + + private java.util.List clusterConditions_ = + java.util.Collections.emptyList(); + private void ensureClusterConditionsIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + clusterConditions_ = new java.util.ArrayList(clusterConditions_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> clusterConditionsBuilder_; + + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public java.util.List getClusterConditionsList() { + if (clusterConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusterConditions_); + } else { + return clusterConditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public int getClusterConditionsCount() { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.size(); + } else { + return clusterConditionsBuilder_.getCount(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1beta1.StatusCondition getClusterConditions(int index) { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.get(index); + } else { + return clusterConditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public Builder setClusterConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.set(index, value); + onChanged(); + } else { + clusterConditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public Builder setClusterConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public Builder addClusterConditions(com.google.container.v1beta1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.add(value); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public Builder addClusterConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.add(index, value); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public Builder addClusterConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.add(builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public Builder addClusterConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public Builder addAllClusterConditions( + java.lang.Iterable values) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clusterConditions_); + onChanged(); + } else { + clusterConditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public Builder clearClusterConditions() { + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + clusterConditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public Builder removeClusterConditions(int index) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.remove(index); + onChanged(); + } else { + clusterConditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1beta1.StatusCondition.Builder getClusterConditionsBuilder( + int index) { + return getClusterConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index) { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.get(index); } else { + return clusterConditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public java.util.List + getClusterConditionsOrBuilderList() { + if (clusterConditionsBuilder_ != null) { + return clusterConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusterConditions_); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1beta1.StatusCondition.Builder addClusterConditionsBuilder() { + return getClusterConditionsFieldBuilder().addBuilder( + com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1beta1.StatusCondition.Builder addClusterConditionsBuilder( + int index) { + return getClusterConditionsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + public java.util.List + getClusterConditionsBuilderList() { + return getClusterConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> + getClusterConditionsFieldBuilder() { + if (clusterConditionsBuilder_ == null) { + clusterConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder>( + clusterConditions_, + ((bitField0_ & 0x00001000) == 0x00001000), + getParentForChildren(), + isClean()); + clusterConditions_ = null; + } + return clusterConditionsBuilder_; + } + + private java.util.List nodepoolConditions_ = + java.util.Collections.emptyList(); + private void ensureNodepoolConditionsIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + nodepoolConditions_ = new java.util.ArrayList(nodepoolConditions_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> nodepoolConditionsBuilder_; + + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List getNodepoolConditionsList() { + if (nodepoolConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodepoolConditions_); + } else { + return nodepoolConditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public int getNodepoolConditionsCount() { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.size(); + } else { + return nodepoolConditionsBuilder_.getCount(); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index) { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.get(index); + } else { + return nodepoolConditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public Builder setNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.set(index, value); + onChanged(); + } else { + nodepoolConditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public Builder setNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public Builder addNodepoolConditions(com.google.container.v1beta1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(value); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public Builder addNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(index, value); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public Builder addNodepoolConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public Builder addNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public Builder addAllNodepoolConditions( + java.lang.Iterable values) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodepoolConditions_); + onChanged(); + } else { + nodepoolConditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public Builder clearNodepoolConditions() { + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + nodepoolConditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public Builder removeNodepoolConditions(int index) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.remove(index); + onChanged(); + } else { + nodepoolConditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1beta1.StatusCondition.Builder getNodepoolConditionsBuilder( + int index) { + return getNodepoolConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index) { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.get(index); } else { + return nodepoolConditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List + getNodepoolConditionsOrBuilderList() { + if (nodepoolConditionsBuilder_ != null) { + return nodepoolConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodepoolConditions_); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1beta1.StatusCondition.Builder addNodepoolConditionsBuilder() { + return getNodepoolConditionsFieldBuilder().addBuilder( + com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1beta1.StatusCondition.Builder addNodepoolConditionsBuilder( + int index) { + return getNodepoolConditionsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List + getNodepoolConditionsBuilderList() { + return getNodepoolConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> + getNodepoolConditionsFieldBuilder() { + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder>( + nodepoolConditions_, + ((bitField0_ & 0x00002000) == 0x00002000), + getParentForChildren(), + isClean()); + nodepoolConditions_ = null; + } + return nodepoolConditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Operation) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Operation) + private static final com.google.container.v1beta1.Operation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Operation(); + } + + public static com.google.container.v1beta1.Operation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Operation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Operation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.Operation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationName.java new file mode 100644 index 000000000000..a85b9cc00c2c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationName.java @@ -0,0 +1,212 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1beta1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class OperationName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/operations/{operation}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + private final String operation; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOperation() { + return operation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private OperationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + operation = Preconditions.checkNotNull(builder.getOperation()); + } + + public static OperationName of(String project, String location, String operation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOperation(operation) + .build(); + } + + public static String format(String project, String location, String operation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOperation(operation) + .build() + .toString(); + } + + public static OperationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "OperationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("operation")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (OperationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldMapBuilder.put("operation", operation); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location, "operation", operation); + } + + /** Builder for OperationName. */ + public static class Builder { + + private String project; + private String location; + private String operation; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOperation() { + return operation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOperation(String operation) { + this.operation = operation; + return this; + } + + private Builder() { + } + + private Builder(OperationName operationName) { + project = operationName.project; + location = operationName.location; + operation = operationName.operation; + } + + public OperationName build() { + return new OperationName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof OperationName) { + OperationName that = (OperationName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)) + && (this.operation.equals(that.operation)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + h *= 1000003; + h ^= operation.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java new file mode 100644 index 000000000000..d57d32e75690 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java @@ -0,0 +1,334 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface OperationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Operation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation
+   * is taking place.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the operation
+   * is taking place.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + */ + int getOperationTypeValue(); + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + */ + com.google.container.v1beta1.Operation.Type getOperationType(); + + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + */ + int getStatusValue(); + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + */ + com.google.container.v1beta1.Operation.Status getStatus(); + + /** + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + */ + java.lang.String getDetail(); + /** + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + */ + com.google.protobuf.ByteString + getDetailBytes(); + + /** + *
+   * If an error has occurred, a textual description of the error.
+   * 
+ * + * string status_message = 5; + */ + java.lang.String getStatusMessage(); + /** + *
+   * If an error has occurred, a textual description of the error.
+   * 
+ * + * string status_message = 5; + */ + com.google.protobuf.ByteString + getStatusMessageBytes(); + + /** + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + */ + java.lang.String getSelfLink(); + /** + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + */ + com.google.protobuf.ByteString + getSelfLinkBytes(); + + /** + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + */ + java.lang.String getTargetLink(); + /** + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + */ + com.google.protobuf.ByteString + getTargetLinkBytes(); + + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + java.lang.String getLocation(); + /** + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](/compute/docs/regions-zones/regions-zones#available) or
+   * [region](/compute/docs/regions-zones/regions-zones#available) in which
+   * the cluster resides.
+   * 
+ * + * string location = 9; + */ + com.google.protobuf.ByteString + getLocationBytes(); + + /** + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + */ + java.lang.String getStartTime(); + /** + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + */ + com.google.protobuf.ByteString + getStartTimeBytes(); + + /** + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + */ + java.lang.String getEndTime(); + /** + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + */ + com.google.protobuf.ByteString + getEndTimeBytes(); + + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + boolean hasProgress(); + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + com.google.container.v1beta1.OperationProgress getProgress(); + /** + *
+   * [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1beta1.OperationProgress progress = 12; + */ + com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder(); + + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + java.util.List + getClusterConditionsList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + com.google.container.v1beta1.StatusCondition getClusterConditions(int index); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + int getClusterConditionsCount(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + java.util.List + getClusterConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13; + */ + com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index); + + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + java.util.List + getNodepoolConditionsList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + int getNodepoolConditionsCount(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + java.util.List + getNodepoolConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14; + */ + com.google.container.v1beta1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationProgress.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationProgress.java new file mode 100644 index 000000000000..ec446763c5fe --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationProgress.java @@ -0,0 +1,2765 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Information about operation (or operation stage) progress.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.OperationProgress} + */ +public final class OperationProgress extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.OperationProgress) + OperationProgressOrBuilder { +private static final long serialVersionUID = 0L; + // Use OperationProgress.newBuilder() to construct. + private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OperationProgress() { + name_ = ""; + status_ = 0; + metrics_ = java.util.Collections.emptyList(); + stages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OperationProgress( + 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 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + metrics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + metrics_.add( + input.readMessage(com.google.container.v1beta1.OperationProgress.Metric.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + stages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + stages_.add( + input.readMessage(com.google.container.v1beta1.OperationProgress.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.OperationProgress.class, com.google.container.v1beta1.OperationProgress.Builder.class); + } + + public interface MetricOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.OperationProgress.Metric) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Metric name, required.
+     * e.g., "nodes total", "percent done"
+     * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+     * Metric name, required.
+     * e.g., "nodes total", "percent done"
+     * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + */ + long getIntValue(); + + /** + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + */ + double getDoubleValue(); + + /** + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + */ + java.lang.String getStringValue(); + /** + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + */ + com.google.protobuf.ByteString + getStringValueBytes(); + + public com.google.container.v1beta1.OperationProgress.Metric.ValueCase getValueCase(); + } + /** + *
+   * Progress metric is (string, int|float|string) pair.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.OperationProgress.Metric} + */ + public static final class Metric extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.OperationProgress.Metric) + MetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metric.newBuilder() to construct. + private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Metric() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Metric( + 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 16: { + valueCase_ = 2; + value_ = input.readInt64(); + break; + } + case 25: { + valueCase_ = 3; + value_ = input.readDouble(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 4; + value_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.OperationProgress.Metric.class, com.google.container.v1beta1.OperationProgress.Metric.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + INT_VALUE(2), + DOUBLE_VALUE(3), + STRING_VALUE(4), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 2: return INT_VALUE; + case 3: return DOUBLE_VALUE; + case 4: return STRING_VALUE; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Metric name, required.
+     * e.g., "nodes total", "percent done"
+     * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+     * Metric name, required.
+     * e.g., "nodes total", "percent done"
+     * 
+ * + * string name = 1; + */ + 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 INT_VALUE_FIELD_NUMBER = 2; + /** + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + */ + public long getIntValue() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; + /** + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + */ + public double getDoubleValue() { + if (valueCase_ == 3) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 4; + /** + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 4) { + value_ = s; + } + return s; + } + } + /** + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 4) { + value_ = 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 (valueCase_ == 2) { + output.writeInt64( + 2, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 3) { + output.writeDouble( + 3, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); + } + 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 (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 2, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 3, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); + } + 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.container.v1beta1.OperationProgress.Metric)) { + return super.equals(obj); + } + com.google.container.v1beta1.OperationProgress.Metric other = (com.google.container.v1beta1.OperationProgress.Metric) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getValueCase().equals( + other.getValueCase()); + if (!result) return false; + switch (valueCase_) { + case 2: + result = result && (getIntValue() + == other.getIntValue()); + break; + case 3: + result = result && ( + java.lang.Double.doubleToLongBits(getDoubleValue()) + == java.lang.Double.doubleToLongBits( + other.getDoubleValue())); + break; + case 4: + result = result && getStringValue() + .equals(other.getStringValue()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + switch (valueCase_) { + case 2: + hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIntValue()); + break; + case 3: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 4: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.OperationProgress.Metric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Progress metric is (string, int|float|string) pair.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.OperationProgress.Metric} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.OperationProgress.Metric) + com.google.container.v1beta1.OperationProgress.MetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.OperationProgress.Metric.class, com.google.container.v1beta1.OperationProgress.Metric.Builder.class); + } + + // Construct using com.google.container.v1beta1.OperationProgress.Metric.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric getDefaultInstanceForType() { + return com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric build() { + com.google.container.v1beta1.OperationProgress.Metric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric buildPartial() { + com.google.container.v1beta1.OperationProgress.Metric result = new com.google.container.v1beta1.OperationProgress.Metric(this); + result.name_ = name_; + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.OperationProgress.Metric) { + return mergeFrom((com.google.container.v1beta1.OperationProgress.Metric)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.OperationProgress.Metric other) { + if (other == com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + switch (other.getValueCase()) { + case INT_VALUE: { + setIntValue(other.getIntValue()); + break; + } + case DOUBLE_VALUE: { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: { + valueCase_ = 4; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.OperationProgress.Metric parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.OperationProgress.Metric) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private java.lang.Object name_ = ""; + /** + *
+       * Metric name, required.
+       * e.g., "nodes total", "percent done"
+       * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+       * Metric name, required.
+       * e.g., "nodes total", "percent done"
+       * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+       * Metric name, required.
+       * e.g., "nodes total", "percent done"
+       * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Metric name, required.
+       * e.g., "nodes total", "percent done"
+       * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Metric name, required.
+       * e.g., "nodes total", "percent done"
+       * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + /** + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + */ + public long getIntValue() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + */ + public Builder setIntValue(long value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + */ + public Builder clearIntValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + */ + public double getDoubleValue() { + if (valueCase_ == 3) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + */ + public Builder setDoubleValue(double value) { + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + */ + public Builder clearDoubleValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 4) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 4) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + */ + public Builder setStringValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + */ + public Builder clearStringValue() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + */ + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.OperationProgress.Metric) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.OperationProgress.Metric) + private static final com.google.container.v1beta1.OperationProgress.Metric DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.OperationProgress.Metric(); + } + + public static com.google.container.v1beta1.OperationProgress.Metric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Metric(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + */ + 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 STATUS_FIELD_NUMBER = 2; + private int status_; + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + */ + public int getStatusValue() { + return status_; + } + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + */ + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int METRICS_FIELD_NUMBER = 3; + private java.util.List metrics_; + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List getMetricsList() { + return metrics_; + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public int getMetricsCount() { + return metrics_.size(); + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index) { + return metrics_.get(index); + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + return metrics_.get(index); + } + + public static final int STAGES_FIELD_NUMBER = 4; + private java.util.List stages_; + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List getStagesList() { + return stages_; + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List + getStagesOrBuilderList() { + return stages_; + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public int getStagesCount() { + return stages_.size(); + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress getStages(int index) { + return stages_.get(index); + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder( + int index) { + return stages_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (status_ != com.google.container.v1beta1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(2, status_); + } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(3, metrics_.get(i)); + } + for (int i = 0; i < stages_.size(); i++) { + output.writeMessage(4, stages_.get(i)); + } + 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 (status_ != com.google.container.v1beta1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); + } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, metrics_.get(i)); + } + for (int i = 0; i < stages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, stages_.get(i)); + } + 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.container.v1beta1.OperationProgress)) { + return super.equals(obj); + } + com.google.container.v1beta1.OperationProgress other = (com.google.container.v1beta1.OperationProgress) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && status_ == other.status_; + result = result && getMetricsList() + .equals(other.getMetricsList()); + result = result && getStagesList() + .equals(other.getStagesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (getStagesCount() > 0) { + hash = (37 * hash) + STAGES_FIELD_NUMBER; + hash = (53 * hash) + getStagesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.OperationProgress parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.OperationProgress parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.OperationProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.OperationProgress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.OperationProgress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.OperationProgress parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.OperationProgress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.OperationProgress parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.OperationProgress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.OperationProgress parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.OperationProgress parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.OperationProgress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.OperationProgress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Information about operation (or operation stage) progress.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.OperationProgress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.OperationProgress) + com.google.container.v1beta1.OperationProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.OperationProgress.class, com.google.container.v1beta1.OperationProgress.Builder.class); + } + + // Construct using com.google.container.v1beta1.OperationProgress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetricsFieldBuilder(); + getStagesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + status_ = 0; + + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + metricsBuilder_.clear(); + } + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + stagesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress getDefaultInstanceForType() { + return com.google.container.v1beta1.OperationProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress build() { + com.google.container.v1beta1.OperationProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress buildPartial() { + com.google.container.v1beta1.OperationProgress result = new com.google.container.v1beta1.OperationProgress(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.status_ = status_; + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (stagesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.stages_ = stages_; + } else { + result.stages_ = stagesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.OperationProgress) { + return mergeFrom((com.google.container.v1beta1.OperationProgress)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.OperationProgress other) { + if (other == com.google.container.v1beta1.OperationProgress.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricsFieldBuilder() : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (stagesBuilder_ == null) { + if (!other.stages_.isEmpty()) { + if (stages_.isEmpty()) { + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureStagesIsMutable(); + stages_.addAll(other.stages_); + } + onChanged(); + } + } else { + if (!other.stages_.isEmpty()) { + if (stagesBuilder_.isEmpty()) { + stagesBuilder_.dispose(); + stagesBuilder_ = null; + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000008); + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStagesFieldBuilder() : null; + } else { + stagesBuilder_.addAllMessages(other.stages_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.OperationProgress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.OperationProgress) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + */ + 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; + } + } + /** + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + */ + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + */ + public Builder setStatus(com.google.container.v1beta1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + metrics_ = new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, com.google.container.v1beta1.OperationProgress.Metric.Builder, com.google.container.v1beta1.OperationProgress.MetricOrBuilder> metricsBuilder_; + + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics(com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder getMetricsBuilder( + int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder().addBuilder( + com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder( + int index) { + return getMetricsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, com.google.container.v1beta1.OperationProgress.Metric.Builder, com.google.container.v1beta1.OperationProgress.MetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, com.google.container.v1beta1.OperationProgress.Metric.Builder, com.google.container.v1beta1.OperationProgress.MetricOrBuilder>( + metrics_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List stages_ = + java.util.Collections.emptyList(); + private void ensureStagesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + stages_ = new java.util.ArrayList(stages_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder> stagesBuilder_; + + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List getStagesList() { + if (stagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stages_); + } else { + return stagesBuilder_.getMessageList(); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public int getStagesCount() { + if (stagesBuilder_ == null) { + return stages_.size(); + } else { + return stagesBuilder_.getCount(); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress getStages(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessage(index); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.set(index, value); + onChanged(); + } else { + stagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.set(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages(com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(value); + onChanged(); + } else { + stagesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(index, value); + onChanged(); + } else { + stagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages( + com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addAllStages( + java.lang.Iterable values) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stages_); + onChanged(); + } else { + stagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder clearStages() { + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + stagesBuilder_.clear(); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder removeStages(int index) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.remove(index); + onChanged(); + } else { + stagesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder getStagesBuilder( + int index) { + return getStagesFieldBuilder().getBuilder(index); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder( + int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); } else { + return stagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List + getStagesOrBuilderList() { + if (stagesBuilder_ != null) { + return stagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stages_); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder() { + return getStagesFieldBuilder().addBuilder( + com.google.container.v1beta1.OperationProgress.getDefaultInstance()); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder( + int index) { + return getStagesFieldBuilder().addBuilder( + index, com.google.container.v1beta1.OperationProgress.getDefaultInstance()); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List + getStagesBuilderList() { + return getStagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder> + getStagesFieldBuilder() { + if (stagesBuilder_ == null) { + stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder>( + stages_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + stages_ = null; + } + return stagesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.OperationProgress) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.OperationProgress) + private static final com.google.container.v1beta1.OperationProgress DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.OperationProgress(); + } + + public static com.google.container.v1beta1.OperationProgress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationProgress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java new file mode 100644 index 000000000000..974cf3e4a84a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java @@ -0,0 +1,161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface OperationProgressOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.OperationProgress) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + */ + int getStatusValue(); + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + */ + com.google.container.v1beta1.Operation.Status getStatus(); + + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + java.util.List + getMetricsList(); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + int getMetricsCount(); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + java.util.List + getMetricsOrBuilderList(); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index); + + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + java.util.List + getStagesList(); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + com.google.container.v1beta1.OperationProgress getStages(int index); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + int getStagesCount(); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + java.util.List + getStagesOrBuilderList(); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java new file mode 100644 index 000000000000..69eedbc6797a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration for the PodSecurityPolicy feature.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.PodSecurityPolicyConfig} + */ +public final class PodSecurityPolicyConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.PodSecurityPolicyConfig) + PodSecurityPolicyConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use PodSecurityPolicyConfig.newBuilder() to construct. + private PodSecurityPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PodSecurityPolicyConfig() { + enabled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PodSecurityPolicyConfig( + 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 8: { + + enabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PodSecurityPolicyConfig.class, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+   * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+   * must be valid under a PodSecurityPolicy to be created.
+   * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + size += 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.container.v1beta1.PodSecurityPolicyConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.PodSecurityPolicyConfig other = (com.google.container.v1beta1.PodSecurityPolicyConfig) obj; + + boolean result = true; + result = result && (getEnabled() + == other.getEnabled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.PodSecurityPolicyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.PodSecurityPolicyConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.PodSecurityPolicyConfig) + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PodSecurityPolicyConfig.class, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.PodSecurityPolicyConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig build() { + com.google.container.v1beta1.PodSecurityPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig buildPartial() { + com.google.container.v1beta1.PodSecurityPolicyConfig result = new com.google.container.v1beta1.PodSecurityPolicyConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.PodSecurityPolicyConfig) { + return mergeFrom((com.google.container.v1beta1.PodSecurityPolicyConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.PodSecurityPolicyConfig other) { + if (other == com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.PodSecurityPolicyConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.PodSecurityPolicyConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.PodSecurityPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.PodSecurityPolicyConfig) + private static final com.google.container.v1beta1.PodSecurityPolicyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.PodSecurityPolicyConfig(); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PodSecurityPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PodSecurityPolicyConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..5bb9619e4b12 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface PodSecurityPolicyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PodSecurityPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+   * must be valid under a PodSecurityPolicy to be created.
+   * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java new file mode 100644 index 000000000000..74e70e3a3ab5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java @@ -0,0 +1,1055 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Configuration options for private clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.PrivateClusterConfig} + */ +public final class PrivateClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.PrivateClusterConfig) + PrivateClusterConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use PrivateClusterConfig.newBuilder() to construct. + private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PrivateClusterConfig() { + enablePrivateNodes_ = false; + enablePrivateEndpoint_ = false; + masterIpv4CidrBlock_ = ""; + privateEndpoint_ = ""; + publicEndpoint_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrivateClusterConfig( + 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 8: { + + enablePrivateNodes_ = input.readBool(); + break; + } + case 16: { + + enablePrivateEndpoint_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + masterIpv4CidrBlock_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + privateEndpoint_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + publicEndpoint_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PrivateClusterConfig.class, com.google.container.v1beta1.PrivateClusterConfig.Builder.class); + } + + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; + private boolean enablePrivateNodes_; + /** + *
+   * Whether nodes have only private IP addresses, and communicate with the
+   * master via private networking.
+   * 
+ * + * bool enable_private_nodes = 1; + */ + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + + public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 2; + private boolean enablePrivateEndpoint_; + /** + *
+   * Whether the master's internal IP address is used as the cluster endpoint.
+   * 
+ * + * bool enable_private_endpoint = 2; + */ + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + private volatile java.lang.Object masterIpv4CidrBlock_; + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network. This
+   * prefix will be used for assigning private IP addresses to the master or
+   * set of masters, as well as the ILB VIP.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network. This
+   * prefix will be used for assigning private IP addresses to the master or
+   * set of masters, as well as the ILB VIP.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public com.google.protobuf.ByteString + getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_ENDPOINT_FIELD_NUMBER = 4; + private volatile java.lang.Object privateEndpoint_; + /** + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + */ + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } + } + /** + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + */ + public com.google.protobuf.ByteString + getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLIC_ENDPOINT_FIELD_NUMBER = 5; + private volatile java.lang.Object publicEndpoint_; + /** + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + */ + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } + } + /** + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + */ + public com.google.protobuf.ByteString + getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicEndpoint_ = 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 (enablePrivateNodes_ != false) { + output.writeBool(1, enablePrivateNodes_); + } + if (enablePrivateEndpoint_ != false) { + output.writeBool(2, enablePrivateEndpoint_); + } + if (!getMasterIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); + } + if (!getPrivateEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateEndpoint_); + } + if (!getPublicEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicEndpoint_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enablePrivateNodes_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enablePrivateNodes_); + } + if (enablePrivateEndpoint_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enablePrivateEndpoint_); + } + if (!getMasterIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); + } + if (!getPrivateEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateEndpoint_); + } + if (!getPublicEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicEndpoint_); + } + 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.container.v1beta1.PrivateClusterConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.PrivateClusterConfig other = (com.google.container.v1beta1.PrivateClusterConfig) obj; + + boolean result = true; + result = result && (getEnablePrivateNodes() + == other.getEnablePrivateNodes()); + result = result && (getEnablePrivateEndpoint() + == other.getEnablePrivateEndpoint()); + result = result && getMasterIpv4CidrBlock() + .equals(other.getMasterIpv4CidrBlock()); + result = result && getPrivateEndpoint() + .equals(other.getPrivateEndpoint()); + result = result && getPublicEndpoint() + .equals(other.getPublicEndpoint()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_PRIVATE_NODES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrivateNodes()); + hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrivateEndpoint()); + hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); + hash = (37 * hash) + PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpoint().hashCode(); + hash = (37 * hash) + PUBLIC_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getPublicEndpoint().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.PrivateClusterConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for private clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.PrivateClusterConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.PrivateClusterConfig) + com.google.container.v1beta1.PrivateClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PrivateClusterConfig.class, com.google.container.v1beta1.PrivateClusterConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.PrivateClusterConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enablePrivateNodes_ = false; + + enablePrivateEndpoint_ = false; + + masterIpv4CidrBlock_ = ""; + + privateEndpoint_ = ""; + + publicEndpoint_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig build() { + com.google.container.v1beta1.PrivateClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig buildPartial() { + com.google.container.v1beta1.PrivateClusterConfig result = new com.google.container.v1beta1.PrivateClusterConfig(this); + result.enablePrivateNodes_ = enablePrivateNodes_; + result.enablePrivateEndpoint_ = enablePrivateEndpoint_; + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + result.privateEndpoint_ = privateEndpoint_; + result.publicEndpoint_ = publicEndpoint_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.PrivateClusterConfig) { + return mergeFrom((com.google.container.v1beta1.PrivateClusterConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.PrivateClusterConfig other) { + if (other == com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance()) return this; + if (other.getEnablePrivateNodes() != false) { + setEnablePrivateNodes(other.getEnablePrivateNodes()); + } + if (other.getEnablePrivateEndpoint() != false) { + setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + onChanged(); + } + if (!other.getPrivateEndpoint().isEmpty()) { + privateEndpoint_ = other.privateEndpoint_; + onChanged(); + } + if (!other.getPublicEndpoint().isEmpty()) { + publicEndpoint_ = other.publicEndpoint_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.PrivateClusterConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.PrivateClusterConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enablePrivateNodes_ ; + /** + *
+     * Whether nodes have only private IP addresses, and communicate with the
+     * master via private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + */ + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + /** + *
+     * Whether nodes have only private IP addresses, and communicate with the
+     * master via private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + */ + public Builder setEnablePrivateNodes(boolean value) { + + enablePrivateNodes_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether nodes have only private IP addresses, and communicate with the
+     * master via private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + */ + public Builder clearEnablePrivateNodes() { + + enablePrivateNodes_ = false; + onChanged(); + return this; + } + + private boolean enablePrivateEndpoint_ ; + /** + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + */ + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + /** + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + */ + public Builder setEnablePrivateEndpoint(boolean value) { + + enablePrivateEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + */ + public Builder clearEnablePrivateEndpoint() { + + enablePrivateEndpoint_ = false; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network. This
+     * prefix will be used for assigning private IP addresses to the master or
+     * set of masters, as well as the ILB VIP.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network. This
+     * prefix will be used for assigning private IP addresses to the master or
+     * set of masters, as well as the ILB VIP.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public com.google.protobuf.ByteString + getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network. This
+     * prefix will be used for assigning private IP addresses to the master or
+     * set of masters, as well as the ILB VIP.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public Builder setMasterIpv4CidrBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network. This
+     * prefix will be used for assigning private IP addresses to the master or
+     * set of masters, as well as the ILB VIP.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public Builder clearMasterIpv4CidrBlock() { + + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + *
+     * The IP prefix in CIDR notation to use for the hosted master network. This
+     * prefix will be used for assigning private IP addresses to the master or
+     * set of masters, as well as the ILB VIP.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + */ + public Builder setMasterIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object privateEndpoint_ = ""; + /** + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + */ + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + */ + public com.google.protobuf.ByteString + getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + */ + public Builder setPrivateEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + */ + public Builder clearPrivateEndpoint() { + + privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); + onChanged(); + return this; + } + /** + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + */ + public Builder setPrivateEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object publicEndpoint_ = ""; + /** + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + */ + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + */ + public com.google.protobuf.ByteString + getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + */ + public Builder setPublicEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publicEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + */ + public Builder clearPublicEndpoint() { + + publicEndpoint_ = getDefaultInstance().getPublicEndpoint(); + onChanged(); + return this; + } + /** + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + */ + public Builder setPublicEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicEndpoint_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.PrivateClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.PrivateClusterConfig) + private static final com.google.container.v1beta1.PrivateClusterConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.PrivateClusterConfig(); + } + + public static com.google.container.v1beta1.PrivateClusterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrivateClusterConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java new file mode 100644 index 000000000000..562c44a4c9af --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface PrivateClusterConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PrivateClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether nodes have only private IP addresses, and communicate with the
+   * master via private networking.
+   * 
+ * + * bool enable_private_nodes = 1; + */ + boolean getEnablePrivateNodes(); + + /** + *
+   * Whether the master's internal IP address is used as the cluster endpoint.
+   * 
+ * + * bool enable_private_endpoint = 2; + */ + boolean getEnablePrivateEndpoint(); + + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network. This
+   * prefix will be used for assigning private IP addresses to the master or
+   * set of masters, as well as the ILB VIP.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + */ + java.lang.String getMasterIpv4CidrBlock(); + /** + *
+   * The IP prefix in CIDR notation to use for the hosted master network. This
+   * prefix will be used for assigning private IP addresses to the master or
+   * set of masters, as well as the ILB VIP.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + */ + com.google.protobuf.ByteString + getMasterIpv4CidrBlockBytes(); + + /** + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + */ + java.lang.String getPrivateEndpoint(); + /** + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + */ + com.google.protobuf.ByteString + getPrivateEndpointBytes(); + + /** + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + */ + java.lang.String getPublicEndpoint(); + /** + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + */ + com.google.protobuf.ByteString + getPublicEndpointBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ProjectName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ProjectName.java new file mode 100644 index 000000000000..0abf9d6d03f5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ProjectName.java @@ -0,0 +1,166 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1beta1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + + private volatile Map fieldValuesMap; + + private final String project; + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public static ProjectName of(String project) { + return newBuilder() + .setProject(project) + .build(); + } + + public static String format(String project) { + return newBuilder() + .setProject(project) + .build() + .toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project); + } + + /** Builder for ProjectName. */ + public static class Builder { + + private String project; + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder() { + } + + private Builder(ProjectName projectName) { + project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectName) { + ProjectName that = (ProjectName) o; + return (this.project.equals(that.project)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ProjectPathName.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ProjectPathName.java new file mode 100644 index 000000000000..f9e68e15e81d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ProjectPathName.java @@ -0,0 +1,166 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.container.v1beta1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectPathName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project_path=**}"); + + private volatile Map fieldValuesMap; + + private final String projectPath; + + public String getProjectPath() { + return projectPath; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectPathName(Builder builder) { + projectPath = Preconditions.checkNotNull(builder.getProjectPath()); + } + + public static ProjectPathName of(String projectPath) { + return newBuilder() + .setProjectPath(projectPath) + .build(); + } + + public static String format(String projectPath) { + return newBuilder() + .setProjectPath(projectPath) + .build() + .toString(); + } + + public static ProjectPathName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ProjectPathName.parse: formattedString not in valid format"); + return of(matchMap.get("project_path")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectPathName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("projectPath", projectPath); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project_path", projectPath); + } + + /** Builder for ProjectPathName. */ + public static class Builder { + + private String projectPath; + + public String getProjectPath() { + return projectPath; + } + + public Builder setProjectPath(String projectPath) { + this.projectPath = projectPath; + return this; + } + + private Builder() { + } + + private Builder(ProjectPathName projectPathName) { + projectPath = projectPathName.projectPath; + } + + public ProjectPathName build() { + return new ProjectPathName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectPathName) { + ProjectPathName that = (ProjectPathName) o; + return (this.projectPath.equals(that.projectPath)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= projectPath.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ResourceLimit.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ResourceLimit.java new file mode 100644 index 000000000000..97468cada4b2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ResourceLimit.java @@ -0,0 +1,729 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Contains information about amount of some resource in the cluster.
+ * For memory, value should be in GB.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceLimit} + */ +public final class ResourceLimit extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceLimit) + ResourceLimitOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResourceLimit.newBuilder() to construct. + private ResourceLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceLimit() { + resourceType_ = ""; + minimum_ = 0L; + maximum_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceLimit( + 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(); + + resourceType_ = s; + break; + } + case 16: { + + minimum_ = input.readInt64(); + break; + } + case 24: { + + maximum_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLimit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceLimit.class, com.google.container.v1beta1.ResourceLimit.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceType_; + /** + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + /** + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + */ + public com.google.protobuf.ByteString + getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MINIMUM_FIELD_NUMBER = 2; + private long minimum_; + /** + *
+   * Minimum amount of the resource in the cluster.
+   * 
+ * + * int64 minimum = 2; + */ + public long getMinimum() { + return minimum_; + } + + public static final int MAXIMUM_FIELD_NUMBER = 3; + private long maximum_; + /** + *
+   * Maximum amount of the resource in the cluster.
+   * 
+ * + * int64 maximum = 3; + */ + public long getMaximum() { + return maximum_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); + } + if (minimum_ != 0L) { + output.writeInt64(2, minimum_); + } + if (maximum_ != 0L) { + output.writeInt64(3, maximum_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceType_); + } + if (minimum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, minimum_); + } + if (maximum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maximum_); + } + 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.container.v1beta1.ResourceLimit)) { + return super.equals(obj); + } + com.google.container.v1beta1.ResourceLimit other = (com.google.container.v1beta1.ResourceLimit) obj; + + boolean result = true; + result = result && getResourceType() + .equals(other.getResourceType()); + result = result && (getMinimum() + == other.getMinimum()); + result = result && (getMaximum() + == other.getMaximum()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().hashCode(); + hash = (37 * hash) + MINIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinimum()); + hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaximum()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ResourceLimit parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ResourceLimit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ResourceLimit parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ResourceLimit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ResourceLimit parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ResourceLimit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ResourceLimit parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ResourceLimit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ResourceLimit parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ResourceLimit parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ResourceLimit parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ResourceLimit prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Contains information about amount of some resource in the cluster.
+   * For memory, value should be in GB.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceLimit} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ResourceLimit) + com.google.container.v1beta1.ResourceLimitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLimit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceLimit.class, com.google.container.v1beta1.ResourceLimit.Builder.class); + } + + // Construct using com.google.container.v1beta1.ResourceLimit.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = ""; + + minimum_ = 0L; + + maximum_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLimit_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceLimit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit build() { + com.google.container.v1beta1.ResourceLimit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit buildPartial() { + com.google.container.v1beta1.ResourceLimit result = new com.google.container.v1beta1.ResourceLimit(this); + result.resourceType_ = resourceType_; + result.minimum_ = minimum_; + result.maximum_ = maximum_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ResourceLimit) { + return mergeFrom((com.google.container.v1beta1.ResourceLimit)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ResourceLimit other) { + if (other == com.google.container.v1beta1.ResourceLimit.getDefaultInstance()) return this; + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + onChanged(); + } + if (other.getMinimum() != 0L) { + setMinimum(other.getMinimum()); + } + if (other.getMaximum() != 0L) { + setMaximum(other.getMaximum()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ResourceLimit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ResourceLimit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceType_ = ""; + /** + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + */ + public com.google.protobuf.ByteString + getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + */ + public Builder setResourceType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = getDefaultInstance().getResourceType(); + onChanged(); + return this; + } + /** + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + */ + public Builder setResourceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceType_ = value; + onChanged(); + return this; + } + + private long minimum_ ; + /** + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + */ + public long getMinimum() { + return minimum_; + } + /** + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + */ + public Builder setMinimum(long value) { + + minimum_ = value; + onChanged(); + return this; + } + /** + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + */ + public Builder clearMinimum() { + + minimum_ = 0L; + onChanged(); + return this; + } + + private long maximum_ ; + /** + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + */ + public long getMaximum() { + return maximum_; + } + /** + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + */ + public Builder setMaximum(long value) { + + maximum_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + */ + public Builder clearMaximum() { + + maximum_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ResourceLimit) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceLimit) + private static final com.google.container.v1beta1.ResourceLimit DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceLimit(); + } + + public static com.google.container.v1beta1.ResourceLimit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceLimit(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java new file mode 100644 index 000000000000..1062fce6b5d9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ResourceLimitOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceLimit) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + */ + java.lang.String getResourceType(); + /** + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + */ + com.google.protobuf.ByteString + getResourceTypeBytes(); + + /** + *
+   * Minimum amount of the resource in the cluster.
+   * 
+ * + * int64 minimum = 2; + */ + long getMinimum(); + + /** + *
+   * Maximum amount of the resource in the cluster.
+   * 
+ * + * int64 maximum = 3; + */ + long getMaximum(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java new file mode 100644 index 000000000000..777939dbbb7f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java @@ -0,0 +1,1264 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
+ * NodePool upgrade. This will be an no-op if the last upgrade successfully
+ * completed.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.RollbackNodePoolUpgradeRequest} + */ +public final class RollbackNodePoolUpgradeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + RollbackNodePoolUpgradeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use RollbackNodePoolUpgradeRequest.newBuilder() to construct. + private RollbackNodePoolUpgradeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RollbackNodePoolUpgradeRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RollbackNodePoolUpgradeRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.class, com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1beta1.RollbackNodePoolUpgradeRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest other = (com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().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.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
+   * NodePool upgrade. This will be an no-op if the last upgrade successfully
+   * completed.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.RollbackNodePoolUpgradeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + com.google.container.v1beta1.RollbackNodePoolUpgradeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.class, com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.RollbackNodePoolUpgradeRequest build() { + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.RollbackNodePoolUpgradeRequest buildPartial() { + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest result = new com.google.container.v1beta1.RollbackNodePoolUpgradeRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) { + return mergeFrom((com.google.container.v1beta1.RollbackNodePoolUpgradeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest other) { + if (other == com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + private static final com.google.container.v1beta1.RollbackNodePoolUpgradeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.RollbackNodePoolUpgradeRequest(); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackNodePoolUpgradeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RollbackNodePoolUpgradeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java new file mode 100644 index 000000000000..c53b0d645d31 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface RollbackNodePoolUpgradeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ServerConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ServerConfig.java new file mode 100644 index 000000000000..da35fba4729a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ServerConfig.java @@ -0,0 +1,1403 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Kubernetes Engine service configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ServerConfig} + */ +public final class ServerConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ServerConfig) + ServerConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ServerConfig.newBuilder() to construct. + private ServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ServerConfig() { + defaultClusterVersion_ = ""; + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + defaultImageType_ = ""; + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ServerConfig( + 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(); + + defaultClusterVersion_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + validNodeVersions_.add(s); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + defaultImageType_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + validImageTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + validImageTypes_.add(s); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + validMasterVersions_.add(s); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + validImageTypes_ = validImageTypes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServerConfig.class, com.google.container.v1beta1.ServerConfig.Builder.class); + } + + private int bitField0_; + public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object defaultClusterVersion_; + /** + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + */ + public java.lang.String getDefaultClusterVersion() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultClusterVersion_ = s; + return s; + } + } + /** + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + */ + public com.google.protobuf.ByteString + getDefaultClusterVersionBytes() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_NODE_VERSIONS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList validNodeVersions_; + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + public com.google.protobuf.ProtocolStringList + getValidNodeVersionsList() { + return validNodeVersions_; + } + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + public int getValidNodeVersionsCount() { + return validNodeVersions_.size(); + } + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + public java.lang.String getValidNodeVersions(int index) { + return validNodeVersions_.get(index); + } + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + public com.google.protobuf.ByteString + getValidNodeVersionsBytes(int index) { + return validNodeVersions_.getByteString(index); + } + + public static final int DEFAULT_IMAGE_TYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object defaultImageType_; + /** + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + */ + public java.lang.String getDefaultImageType() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultImageType_ = s; + return s; + } + } + /** + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + */ + public com.google.protobuf.ByteString + getDefaultImageTypeBytes() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_IMAGE_TYPES_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList validImageTypes_; + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + public com.google.protobuf.ProtocolStringList + getValidImageTypesList() { + return validImageTypes_; + } + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + public int getValidImageTypesCount() { + return validImageTypes_.size(); + } + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + public com.google.protobuf.ByteString + getValidImageTypesBytes(int index) { + return validImageTypes_.getByteString(index); + } + + public static final int VALID_MASTER_VERSIONS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList validMasterVersions_; + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + public com.google.protobuf.ProtocolStringList + getValidMasterVersionsList() { + return validMasterVersions_; + } + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + public com.google.protobuf.ByteString + getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getDefaultClusterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultClusterVersion_); + } + for (int i = 0; i < validNodeVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validNodeVersions_.getRaw(i)); + } + if (!getDefaultImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultImageType_); + } + for (int i = 0; i < validImageTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validImageTypes_.getRaw(i)); + } + for (int i = 0; i < validMasterVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, validMasterVersions_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDefaultClusterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultClusterVersion_); + } + { + int dataSize = 0; + for (int i = 0; i < validNodeVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(validNodeVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidNodeVersionsList().size(); + } + if (!getDefaultImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultImageType_); + } + { + int dataSize = 0; + for (int i = 0; i < validImageTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(validImageTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidImageTypesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < validMasterVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(validMasterVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidMasterVersionsList().size(); + } + 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.container.v1beta1.ServerConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ServerConfig other = (com.google.container.v1beta1.ServerConfig) obj; + + boolean result = true; + result = result && getDefaultClusterVersion() + .equals(other.getDefaultClusterVersion()); + result = result && getValidNodeVersionsList() + .equals(other.getValidNodeVersionsList()); + result = result && getDefaultImageType() + .equals(other.getDefaultImageType()); + result = result && getValidImageTypesList() + .equals(other.getValidImageTypesList()); + result = result && getValidMasterVersionsList() + .equals(other.getValidMasterVersionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_CLUSTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDefaultClusterVersion().hashCode(); + if (getValidNodeVersionsCount() > 0) { + hash = (37 * hash) + VALID_NODE_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidNodeVersionsList().hashCode(); + } + hash = (37 * hash) + DEFAULT_IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultImageType().hashCode(); + if (getValidImageTypesCount() > 0) { + hash = (37 * hash) + VALID_IMAGE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getValidImageTypesList().hashCode(); + } + if (getValidMasterVersionsCount() > 0) { + hash = (37 * hash) + VALID_MASTER_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidMasterVersionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ServerConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ServerConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ServerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ServerConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ServerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ServerConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ServerConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ServerConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ServerConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ServerConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ServerConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ServerConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ServerConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Kubernetes Engine service configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ServerConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ServerConfig) + com.google.container.v1beta1.ServerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServerConfig.class, com.google.container.v1beta1.ServerConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ServerConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + defaultClusterVersion_ = ""; + + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + defaultImageType_ = ""; + + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ServerConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig build() { + com.google.container.v1beta1.ServerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig buildPartial() { + com.google.container.v1beta1.ServerConfig result = new com.google.container.v1beta1.ServerConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.defaultClusterVersion_ = defaultClusterVersion_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.validNodeVersions_ = validNodeVersions_; + result.defaultImageType_ = defaultImageType_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + validImageTypes_ = validImageTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.validImageTypes_ = validImageTypes_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.validMasterVersions_ = validMasterVersions_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ServerConfig) { + return mergeFrom((com.google.container.v1beta1.ServerConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ServerConfig other) { + if (other == com.google.container.v1beta1.ServerConfig.getDefaultInstance()) return this; + if (!other.getDefaultClusterVersion().isEmpty()) { + defaultClusterVersion_ = other.defaultClusterVersion_; + onChanged(); + } + if (!other.validNodeVersions_.isEmpty()) { + if (validNodeVersions_.isEmpty()) { + validNodeVersions_ = other.validNodeVersions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.addAll(other.validNodeVersions_); + } + onChanged(); + } + if (!other.getDefaultImageType().isEmpty()) { + defaultImageType_ = other.defaultImageType_; + onChanged(); + } + if (!other.validImageTypes_.isEmpty()) { + if (validImageTypes_.isEmpty()) { + validImageTypes_ = other.validImageTypes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureValidImageTypesIsMutable(); + validImageTypes_.addAll(other.validImageTypes_); + } + onChanged(); + } + if (!other.validMasterVersions_.isEmpty()) { + if (validMasterVersions_.isEmpty()) { + validMasterVersions_ = other.validMasterVersions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.addAll(other.validMasterVersions_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ServerConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ServerConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object defaultClusterVersion_ = ""; + /** + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + */ + public java.lang.String getDefaultClusterVersion() { + java.lang.Object ref = defaultClusterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultClusterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + */ + public com.google.protobuf.ByteString + getDefaultClusterVersionBytes() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + */ + public Builder setDefaultClusterVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultClusterVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + */ + public Builder clearDefaultClusterVersion() { + + defaultClusterVersion_ = getDefaultInstance().getDefaultClusterVersion(); + onChanged(); + return this; + } + /** + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + */ + public Builder setDefaultClusterVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultClusterVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValidNodeVersionsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public com.google.protobuf.ProtocolStringList + getValidNodeVersionsList() { + return validNodeVersions_.getUnmodifiableView(); + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public int getValidNodeVersionsCount() { + return validNodeVersions_.size(); + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public java.lang.String getValidNodeVersions(int index) { + return validNodeVersions_.get(index); + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public com.google.protobuf.ByteString + getValidNodeVersionsBytes(int index) { + return validNodeVersions_.getByteString(index); + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public Builder setValidNodeVersions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public Builder addValidNodeVersions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public Builder addAllValidNodeVersions( + java.lang.Iterable values) { + ensureValidNodeVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validNodeVersions_); + onChanged(); + return this; + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public Builder clearValidNodeVersions() { + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * List of valid node upgrade target versions.
+     * 
+ * + * repeated string valid_node_versions = 3; + */ + public Builder addValidNodeVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object defaultImageType_ = ""; + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + */ + public java.lang.String getDefaultImageType() { + java.lang.Object ref = defaultImageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultImageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + */ + public com.google.protobuf.ByteString + getDefaultImageTypeBytes() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + */ + public Builder setDefaultImageType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultImageType_ = value; + onChanged(); + return this; + } + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + */ + public Builder clearDefaultImageType() { + + defaultImageType_ = getDefaultInstance().getDefaultImageType(); + onChanged(); + return this; + } + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + */ + public Builder setDefaultImageTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultImageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValidImageTypesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); + bitField0_ |= 0x00000008; + } + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public com.google.protobuf.ProtocolStringList + getValidImageTypesList() { + return validImageTypes_.getUnmodifiableView(); + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public int getValidImageTypesCount() { + return validImageTypes_.size(); + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public com.google.protobuf.ByteString + getValidImageTypesBytes(int index) { + return validImageTypes_.getByteString(index); + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public Builder setValidImageTypes( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidImageTypesIsMutable(); + validImageTypes_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public Builder addValidImageTypes( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidImageTypesIsMutable(); + validImageTypes_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public Builder addAllValidImageTypes( + java.lang.Iterable values) { + ensureValidImageTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validImageTypes_); + onChanged(); + return this; + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public Builder clearValidImageTypes() { + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + */ + public Builder addValidImageTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidImageTypesIsMutable(); + validImageTypes_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValidMasterVersionsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); + bitField0_ |= 0x00000010; + } + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public com.google.protobuf.ProtocolStringList + getValidMasterVersionsList() { + return validMasterVersions_.getUnmodifiableView(); + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public com.google.protobuf.ByteString + getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public Builder setValidMasterVersions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public Builder addValidMasterVersions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public Builder addAllValidMasterVersions( + java.lang.Iterable values) { + ensureValidMasterVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validMasterVersions_); + onChanged(); + return this; + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public Builder clearValidMasterVersions() { + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * List of valid master versions.
+     * 
+ * + * repeated string valid_master_versions = 6; + */ + public Builder addValidMasterVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ServerConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ServerConfig) + private static final com.google.container.v1beta1.ServerConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ServerConfig(); + } + + public static com.google.container.v1beta1.ServerConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java new file mode 100644 index 000000000000..e14a4902678a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ServerConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ServerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + */ + java.lang.String getDefaultClusterVersion(); + /** + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + */ + com.google.protobuf.ByteString + getDefaultClusterVersionBytes(); + + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + java.util.List + getValidNodeVersionsList(); + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + int getValidNodeVersionsCount(); + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + java.lang.String getValidNodeVersions(int index); + /** + *
+   * List of valid node upgrade target versions.
+   * 
+ * + * repeated string valid_node_versions = 3; + */ + com.google.protobuf.ByteString + getValidNodeVersionsBytes(int index); + + /** + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + */ + java.lang.String getDefaultImageType(); + /** + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + */ + com.google.protobuf.ByteString + getDefaultImageTypeBytes(); + + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + java.util.List + getValidImageTypesList(); + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + int getValidImageTypesCount(); + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + java.lang.String getValidImageTypes(int index); + /** + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + */ + com.google.protobuf.ByteString + getValidImageTypesBytes(int index); + + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + java.util.List + getValidMasterVersionsList(); + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + int getValidMasterVersionsCount(); + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + java.lang.String getValidMasterVersions(int index); + /** + *
+   * List of valid master versions.
+   * 
+ * + * repeated string valid_master_versions = 6; + */ + com.google.protobuf.ByteString + getValidMasterVersionsBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java new file mode 100644 index 000000000000..6982c8ea563f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java @@ -0,0 +1,1332 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetAddonsRequest sets the addons associated with the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetAddonsConfigRequest} + */ +public final class SetAddonsConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetAddonsConfigRequest) + SetAddonsConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetAddonsConfigRequest.newBuilder() to construct. + private SetAddonsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetAddonsConfigRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetAddonsConfigRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + com.google.container.v1beta1.AddonsConfig.Builder subBuilder = null; + if (addonsConfig_ != null) { + subBuilder = addonsConfig_.toBuilder(); + } + addonsConfig_ = input.readMessage(com.google.container.v1beta1.AddonsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(addonsConfig_); + addonsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetAddonsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetAddonsConfigRequest.class, com.google.container.v1beta1.SetAddonsConfigRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDONS_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1beta1.AddonsConfig addonsConfig_; + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public boolean hasAddonsConfig() { + return addonsConfig_ != null; + } + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + return addonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + return getAddonsConfig(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (addonsConfig_ != null) { + output.writeMessage(4, getAddonsConfig()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (addonsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAddonsConfig()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1beta1.SetAddonsConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetAddonsConfigRequest other = (com.google.container.v1beta1.SetAddonsConfigRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (hasAddonsConfig() == other.hasAddonsConfig()); + if (hasAddonsConfig()) { + result = result && getAddonsConfig() + .equals(other.getAddonsConfig()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasAddonsConfig()) { + hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAddonsConfig().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.container.v1beta1.SetAddonsConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetAddonsConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetAddonsRequest sets the addons associated with the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetAddonsConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetAddonsConfigRequest) + com.google.container.v1beta1.SetAddonsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetAddonsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetAddonsConfigRequest.class, com.google.container.v1beta1.SetAddonsConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetAddonsConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetAddonsConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest build() { + com.google.container.v1beta1.SetAddonsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest buildPartial() { + com.google.container.v1beta1.SetAddonsConfigRequest result = new com.google.container.v1beta1.SetAddonsConfigRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (addonsConfigBuilder_ == null) { + result.addonsConfig_ = addonsConfig_; + } else { + result.addonsConfig_ = addonsConfigBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetAddonsConfigRequest) { + return mergeFrom((com.google.container.v1beta1.SetAddonsConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetAddonsConfigRequest other) { + if (other == com.google.container.v1beta1.SetAddonsConfigRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetAddonsConfigRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetAddonsConfigRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AddonsConfig addonsConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> addonsConfigBuilder_; + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public boolean hasAddonsConfig() { + return addonsConfigBuilder_ != null || addonsConfig_ != null; + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + if (addonsConfigBuilder_ == null) { + return addonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } else { + return addonsConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public Builder setAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addonsConfig_ = value; + onChanged(); + } else { + addonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public Builder setAddonsConfig( + com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = builderForValue.build(); + onChanged(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public Builder mergeAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (addonsConfig_ != null) { + addonsConfig_ = + com.google.container.v1beta1.AddonsConfig.newBuilder(addonsConfig_).mergeFrom(value).buildPartial(); + } else { + addonsConfig_ = value; + } + onChanged(); + } else { + addonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public Builder clearAddonsConfig() { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + onChanged(); + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public com.google.container.v1beta1.AddonsConfig.Builder getAddonsConfigBuilder() { + + onChanged(); + return getAddonsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + if (addonsConfigBuilder_ != null) { + return addonsConfigBuilder_.getMessageOrBuilder(); + } else { + return addonsConfig_ == null ? + com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + } + /** + *
+     * The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> + getAddonsConfigFieldBuilder() { + if (addonsConfigBuilder_ == null) { + addonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder>( + getAddonsConfig(), + getParentForChildren(), + isClean()); + addonsConfig_ = null; + } + return addonsConfigBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetAddonsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetAddonsConfigRequest) + private static final com.google.container.v1beta1.SetAddonsConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetAddonsConfigRequest(); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetAddonsConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetAddonsConfigRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java new file mode 100644 index 000000000000..9ae38a1bac3f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetAddonsConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetAddonsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + boolean hasAddonsConfig(); + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + com.google.container.v1beta1.AddonsConfig getAddonsConfig(); + /** + *
+   * The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 4; + */ + com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java new file mode 100644 index 000000000000..87ad8b1afd56 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java @@ -0,0 +1,1607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
+ * Engine cluster, which will in turn set them for Google Compute Engine
+ * resources used by that cluster
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLabelsRequest} + */ +public final class SetLabelsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLabelsRequest) + SetLabelsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetLabelsRequest.newBuilder() to construct. + private SetLabelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetLabelsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + labelFingerprint_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetLabelsRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry + resourceLabels__ = input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + resourceLabels_.getMutableMap().put( + resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + labelFingerprint_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLabelsRequest.class, com.google.container.v1beta1.SetLabelsRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 4; + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.lang.String getResourceLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABEL_FINGERPRINT_FIELD_NUMBER = 5; + private volatile java.lang.Object labelFingerprint_; + /** + *
+   * The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a <code>get()</code> request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5; + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } + } + /** + *
+   * The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a <code>get()</code> request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5; + */ + public com.google.protobuf.ByteString + getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResourceLabels(), + ResourceLabelsDefaultEntryHolder.defaultEntry, + 4); + if (!getLabelFingerprintBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, labelFingerprint_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + for (java.util.Map.Entry entry + : internalGetResourceLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + resourceLabels__ = ResourceLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, resourceLabels__); + } + if (!getLabelFingerprintBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, labelFingerprint_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1beta1.SetLabelsRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetLabelsRequest other = (com.google.container.v1beta1.SetLabelsRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && internalGetResourceLabels().equals( + other.internalGetResourceLabels()); + result = result && getLabelFingerprint() + .equals(other.getLabelFingerprint()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (!internalGetResourceLabels().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceLabels().hashCode(); + } + hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; + hash = (53 * hash) + getLabelFingerprint().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.container.v1beta1.SetLabelsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLabelsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLabelsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetLabelsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLabelsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetLabelsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
+   * Engine cluster, which will in turn set them for Google Compute Engine
+   * resources used by that cluster
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLabelsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetLabelsRequest) + com.google.container.v1beta1.SetLabelsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLabelsRequest.class, com.google.container.v1beta1.SetLabelsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetLabelsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLabelsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest build() { + com.google.container.v1beta1.SetLabelsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest buildPartial() { + com.google.container.v1beta1.SetLabelsRequest result = new com.google.container.v1beta1.SetLabelsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + result.labelFingerprint_ = labelFingerprint_; + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetLabelsRequest) { + return mergeFrom((com.google.container.v1beta1.SetLabelsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLabelsRequest other) { + if (other == com.google.container.v1beta1.SetLabelsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + internalGetMutableResourceLabels().mergeFrom( + other.internalGetResourceLabels()); + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetLabelsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetLabelsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged();; + if (resourceLabels_ == null) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public java.lang.String getResourceLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceLabels() { + internalGetMutableResourceLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public Builder removeResourceLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableResourceLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceLabels() { + return internalGetMutableResourceLabels().getMutableMap(); + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + public Builder putResourceLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableResourceLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * The labels to set for that cluster.
+     * 
+ * + * map<string, string> resource_labels = 4; + */ + + public Builder putAllResourceLabels( + java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object labelFingerprint_ = ""; + /** + *
+     * The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a <code>get()</code> request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5; + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a <code>get()</code> request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5; + */ + public com.google.protobuf.ByteString + getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a <code>get()</code> request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5; + */ + public Builder setLabelFingerprint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + labelFingerprint_ = value; + onChanged(); + return this; + } + /** + *
+     * The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a <code>get()</code> request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5; + */ + public Builder clearLabelFingerprint() { + + labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); + onChanged(); + return this; + } + /** + *
+     * The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a <code>get()</code> request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5; + */ + public Builder setLabelFingerprintBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + labelFingerprint_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLabelsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLabelsRequest) + private static final com.google.container.v1beta1.SetLabelsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLabelsRequest(); + } + + public static com.google.container.v1beta1.SetLabelsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLabelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLabelsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java new file mode 100644 index 000000000000..92da58781f90 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java @@ -0,0 +1,177 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetLabelsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLabelsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + int getResourceLabelsCount(); + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + boolean containsResourceLabels( + java.lang.String key); + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getResourceLabels(); + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + java.util.Map + getResourceLabelsMap(); + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4; + */ + + java.lang.String getResourceLabelsOrThrow( + java.lang.String key); + + /** + *
+   * The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a <code>get()</code> request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5; + */ + java.lang.String getLabelFingerprint(); + /** + *
+   * The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a <code>get()</code> request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5; + */ + com.google.protobuf.ByteString + getLabelFingerprintBytes(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java new file mode 100644 index 000000000000..0217f17a7eae --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java @@ -0,0 +1,1168 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
+ * a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLegacyAbacRequest} + */ +public final class SetLegacyAbacRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLegacyAbacRequest) + SetLegacyAbacRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetLegacyAbacRequest.newBuilder() to construct. + private SetLegacyAbacRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetLegacyAbacRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + enabled_ = false; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetLegacyAbacRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 32: { + + enabled_ = input.readBool(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLegacyAbacRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLegacyAbacRequest.class, com.google.container.v1beta1.SetLegacyAbacRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLED_FIELD_NUMBER = 4; + private boolean enabled_; + /** + *
+   * Whether ABAC authorization will be enabled in the cluster.
+   * 
+ * + * bool enabled = 4; + */ + public boolean getEnabled() { + return enabled_; + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (enabled_ != false) { + output.writeBool(4, enabled_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enabled_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1beta1.SetLegacyAbacRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetLegacyAbacRequest other = (com.google.container.v1beta1.SetLegacyAbacRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (getEnabled() + == other.getEnabled()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetLegacyAbacRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
+   * a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLegacyAbacRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetLegacyAbacRequest) + com.google.container.v1beta1.SetLegacyAbacRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLegacyAbacRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLegacyAbacRequest.class, com.google.container.v1beta1.SetLegacyAbacRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetLegacyAbacRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + enabled_ = false; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLegacyAbacRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest build() { + com.google.container.v1beta1.SetLegacyAbacRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest buildPartial() { + com.google.container.v1beta1.SetLegacyAbacRequest result = new com.google.container.v1beta1.SetLegacyAbacRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.enabled_ = enabled_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetLegacyAbacRequest) { + return mergeFrom((com.google.container.v1beta1.SetLegacyAbacRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLegacyAbacRequest other) { + if (other == com.google.container.v1beta1.SetLegacyAbacRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetLegacyAbacRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetLegacyAbacRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private boolean enabled_ ; + /** + *
+     * Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLegacyAbacRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLegacyAbacRequest) + private static final com.google.container.v1beta1.SetLegacyAbacRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLegacyAbacRequest(); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLegacyAbacRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLegacyAbacRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java new file mode 100644 index 000000000000..091e88b65e99 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetLegacyAbacRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLegacyAbacRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Whether ABAC authorization will be enabled in the cluster.
+   * 
+ * + * bool enabled = 4; + */ + boolean getEnabled(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java new file mode 100644 index 000000000000..5434d601fe4f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java @@ -0,0 +1,1383 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetLocationsRequest sets the locations of the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLocationsRequest} + */ +public final class SetLocationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLocationsRequest) + SetLocationsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetLocationsRequest.newBuilder() to construct. + private SetLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetLocationsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetLocationsRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + locations_.add(s); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + locations_ = locations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLocationsRequest.class, com.google.container.v1beta1.SetLocationsRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList locations_; + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + public com.google.protobuf.ProtocolStringList + getLocationsList() { + return locations_; + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + public com.google.protobuf.ByteString + getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locations_.getRaw(i)); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1beta1.SetLocationsRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetLocationsRequest other = (com.google.container.v1beta1.SetLocationsRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getLocationsList() + .equals(other.getLocationsList()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().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.container.v1beta1.SetLocationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLocationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLocationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetLocationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLocationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetLocationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetLocationsRequest sets the locations of the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLocationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetLocationsRequest) + com.google.container.v1beta1.SetLocationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLocationsRequest.class, com.google.container.v1beta1.SetLocationsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetLocationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLocationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest build() { + com.google.container.v1beta1.SetLocationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest buildPartial() { + com.google.container.v1beta1.SetLocationsRequest result = new com.google.container.v1beta1.SetLocationsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.locations_ = locations_; + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetLocationsRequest) { + return mergeFrom((com.google.container.v1beta1.SetLocationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLocationsRequest other) { + if (other == com.google.container.v1beta1.SetLocationsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetLocationsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetLocationsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000008; + } + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public com.google.protobuf.ProtocolStringList + getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public com.google.protobuf.ByteString + getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public Builder setLocations( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public Builder addLocations( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public Builder addAllLocations( + java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, locations_); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The desired list of Google Compute Engine
+     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * should be located. Changing the locations a cluster is in will result
+     * in nodes being either created or removed from the cluster, depending on
+     * whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4; + */ + public Builder addLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLocationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLocationsRequest) + private static final com.google.container.v1beta1.SetLocationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLocationsRequest(); + } + + public static com.google.container.v1beta1.SetLocationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLocationsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java new file mode 100644 index 000000000000..a5ee4b51e091 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetLocationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLocationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + java.util.List + getLocationsList(); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + int getLocationsCount(); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + java.lang.String getLocations(int index); + /** + *
+   * The desired list of Google Compute Engine
+   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * should be located. Changing the locations a cluster is in will result
+   * in nodes being either created or removed from the cluster, depending on
+   * whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4; + */ + com.google.protobuf.ByteString + getLocationsBytes(int index); + + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java new file mode 100644 index 000000000000..a97d2d5db43a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java @@ -0,0 +1,1267 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetLoggingServiceRequest sets the logging service of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLoggingServiceRequest} + */ +public final class SetLoggingServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLoggingServiceRequest) + SetLoggingServiceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetLoggingServiceRequest.newBuilder() to construct. + private SetLoggingServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetLoggingServiceRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + loggingService_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetLoggingServiceRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + loggingService_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLoggingServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLoggingServiceRequest.class, com.google.container.v1beta1.SetLoggingServiceRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2; + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2; + */ + public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object loggingService_; + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string logging_service = 4; + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } + } + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string logging_service = 4; + */ + public com.google.protobuf.ByteString + getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getLoggingServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, loggingService_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getLoggingServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, loggingService_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1beta1.SetLoggingServiceRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetLoggingServiceRequest other = (com.google.container.v1beta1.SetLoggingServiceRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getLoggingService() + .equals(other.getLoggingService()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getLoggingService().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.container.v1beta1.SetLoggingServiceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetLoggingServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetLoggingServiceRequest sets the logging service of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLoggingServiceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetLoggingServiceRequest) + com.google.container.v1beta1.SetLoggingServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLoggingServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLoggingServiceRequest.class, com.google.container.v1beta1.SetLoggingServiceRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetLoggingServiceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + loggingService_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLoggingServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest build() { + com.google.container.v1beta1.SetLoggingServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest buildPartial() { + com.google.container.v1beta1.SetLoggingServiceRequest result = new com.google.container.v1beta1.SetLoggingServiceRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.loggingService_ = loggingService_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetLoggingServiceRequest) { + return mergeFrom((com.google.container.v1beta1.SetLoggingServiceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLoggingServiceRequest other) { + if (other == com.google.container.v1beta1.SetLoggingServiceRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetLoggingServiceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetLoggingServiceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2; + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2; + */ + public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2; + */ + public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2; + */ + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2; + */ + public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object loggingService_ = ""; + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string logging_service = 4; + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string logging_service = 4; + */ + public com.google.protobuf.ByteString + getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string logging_service = 4; + */ + public Builder setLoggingService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + loggingService_ = value; + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string logging_service = 4; + */ + public Builder clearLoggingService() { + + loggingService_ = getDefaultInstance().getLoggingService(); + onChanged(); + return this; + } + /** + *
+     * The logging service the cluster should use to write metrics.
+     * Currently available options:
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string logging_service = 4; + */ + public Builder setLoggingServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + loggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLoggingServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLoggingServiceRequest) + private static final com.google.container.v1beta1.SetLoggingServiceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLoggingServiceRequest(); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLoggingServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLoggingServiceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java new file mode 100644 index 000000000000..a8ecfd999f49 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetLoggingServiceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLoggingServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2; + */ + java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2; + */ + com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string logging_service = 4; + */ + java.lang.String getLoggingService(); + /** + *
+   * The logging service the cluster should use to write metrics.
+   * Currently available options:
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string logging_service = 4; + */ + com.google.protobuf.ByteString + getLoggingServiceBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java new file mode 100644 index 000000000000..0bc380768d77 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java @@ -0,0 +1,1318 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMaintenancePolicyRequest} + */ +public final class SetMaintenancePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMaintenancePolicyRequest) + SetMaintenancePolicyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetMaintenancePolicyRequest.newBuilder() to construct. + private SetMaintenancePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetMaintenancePolicyRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetMaintenancePolicyRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + com.google.container.v1beta1.MaintenancePolicy.Builder subBuilder = null; + if (maintenancePolicy_ != null) { + subBuilder = maintenancePolicy_.toBuilder(); + } + maintenancePolicy_ = input.readMessage(com.google.container.v1beta1.MaintenancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenancePolicy_); + maintenancePolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMaintenancePolicyRequest.class, com.google.container.v1beta1.SetMaintenancePolicyRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * 
+ * + * string zone = 2; + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * 
+ * + * string zone = 2; + */ + public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3; + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3; + */ + public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 4; + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicy_ != null; + } + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + return getMaintenancePolicy(); + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (maintenancePolicy_ != null) { + output.writeMessage(4, getMaintenancePolicy()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (maintenancePolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMaintenancePolicy()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1beta1.SetMaintenancePolicyRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetMaintenancePolicyRequest other = (com.google.container.v1beta1.SetMaintenancePolicyRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (hasMaintenancePolicy() == other.hasMaintenancePolicy()); + if (hasMaintenancePolicy()) { + result = result && getMaintenancePolicy() + .equals(other.getMaintenancePolicy()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasMaintenancePolicy()) { + hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMaintenancePolicy().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.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetMaintenancePolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMaintenancePolicyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetMaintenancePolicyRequest) + com.google.container.v1beta1.SetMaintenancePolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMaintenancePolicyRequest.class, com.google.container.v1beta1.SetMaintenancePolicyRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetMaintenancePolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetMaintenancePolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest build() { + com.google.container.v1beta1.SetMaintenancePolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest buildPartial() { + com.google.container.v1beta1.SetMaintenancePolicyRequest result = new com.google.container.v1beta1.SetMaintenancePolicyRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (maintenancePolicyBuilder_ == null) { + result.maintenancePolicy_ = maintenancePolicy_; + } else { + result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetMaintenancePolicyRequest) { + return mergeFrom((com.google.container.v1beta1.SetMaintenancePolicyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetMaintenancePolicyRequest other) { + if (other == com.google.container.v1beta1.SetMaintenancePolicyRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetMaintenancePolicyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetMaintenancePolicyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1; + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1; + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1; + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * 
+ * + * string zone = 2; + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * 
+ * + * string zone = 2; + */ + public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * 
+ * + * string zone = 2; + */ + public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * 
+ * + * string zone = 2; + */ + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * 
+ * + * string zone = 2; + */ + public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3; + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3; + */ + public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3; + */ + public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3; + */ + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3; + */ + public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } else { + return maintenancePolicyBuilder_.getMessage(); + } + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public Builder setMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public Builder setMaintenancePolicy( + com.google.container.v1beta1.MaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public Builder mergeMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (maintenancePolicy_ != null) { + maintenancePolicy_ = + com.google.container.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); + } else { + maintenancePolicy_ = value; + } + onChanged(); + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public Builder clearMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + onChanged(); + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public com.google.container.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null ? + com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + } + /** + *
+     * The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), + getParentForChildren(), + isClean()); + maintenancePolicy_ = null; + } + return maintenancePolicyBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetMaintenancePolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetMaintenancePolicyRequest) + private static final com.google.container.v1beta1.SetMaintenancePolicyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetMaintenancePolicyRequest(); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMaintenancePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMaintenancePolicyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java new file mode 100644 index 000000000000..11443e93e275 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetMaintenancePolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMaintenancePolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1; + */ + java.lang.String getProjectId(); + /** + *
+   * The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1; + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * 
+ * + * string zone = 2; + */ + java.lang.String getZone(); + /** + *
+   * The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * 
+ * + * string zone = 2; + */ + com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3; + */ + java.lang.String getClusterId(); + /** + *
+   * The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3; + */ + com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + boolean hasMaintenancePolicy(); + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy(); + /** + *
+   * The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4; + */ + com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java new file mode 100644 index 000000000000..198195dccf22 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java @@ -0,0 +1,1591 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetMasterAuthRequest updates the admin password of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMasterAuthRequest} + */ +public final class SetMasterAuthRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMasterAuthRequest) + SetMasterAuthRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetMasterAuthRequest.newBuilder() to construct. + private SetMasterAuthRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetMasterAuthRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + action_ = 0; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetMasterAuthRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 42: { + com.google.container.v1beta1.MasterAuth.Builder subBuilder = null; + if (update_ != null) { + subBuilder = update_.toBuilder(); + } + update_ = input.readMessage(com.google.container.v1beta1.MasterAuth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(update_); + update_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMasterAuthRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMasterAuthRequest.class, com.google.container.v1beta1.SetMasterAuthRequest.Builder.class); + } + + /** + *
+   * Operation type: what type update to perform.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.SetMasterAuthRequest.Action} + */ + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Operation is unknown and will error out.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + *
+     * Set the password to a user generated value.
+     * 
+ * + * SET_PASSWORD = 1; + */ + SET_PASSWORD(1), + /** + *
+     * Generate a new password and set it to that.
+     * 
+ * + * GENERATE_PASSWORD = 2; + */ + GENERATE_PASSWORD(2), + /** + *
+     * Set the username.  If an empty username is provided, basic authentication
+     * is disabled for the cluster.  If a non-empty username is provided, basic
+     * authentication is enabled, with either a provided password or a generated
+     * one.
+     * 
+ * + * SET_USERNAME = 3; + */ + SET_USERNAME(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Operation is unknown and will error out.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + *
+     * Set the password to a user generated value.
+     * 
+ * + * SET_PASSWORD = 1; + */ + public static final int SET_PASSWORD_VALUE = 1; + /** + *
+     * Generate a new password and set it to that.
+     * 
+ * + * GENERATE_PASSWORD = 2; + */ + public static final int GENERATE_PASSWORD_VALUE = 2; + /** + *
+     * Set the username.  If an empty username is provided, basic authentication
+     * is disabled for the cluster.  If a non-empty username is provided, basic
+     * authentication is enabled, with either a provided password or a generated
+     * one.
+     * 
+ * + * SET_USERNAME = 3; + */ + public static final int SET_USERNAME_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Action valueOf(int value) { + return forNumber(value); + } + + public static Action forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return SET_PASSWORD; + case 2: return GENERATE_PASSWORD; + case 3: return SET_USERNAME; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.SetMasterAuthRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final Action[] VALUES = values(); + + public static Action valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Action(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SetMasterAuthRequest.Action) + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 4; + private int action_; + /** + *
+   * The exact form of action to be taken on the master auth.
+   * 
+ * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4; + */ + public int getActionValue() { + return action_; + } + /** + *
+   * The exact form of action to be taken on the master auth.
+   * 
+ * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4; + */ + public com.google.container.v1beta1.SetMasterAuthRequest.Action getAction() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.SetMasterAuthRequest.Action result = com.google.container.v1beta1.SetMasterAuthRequest.Action.valueOf(action_); + return result == null ? com.google.container.v1beta1.SetMasterAuthRequest.Action.UNRECOGNIZED : result; + } + + public static final int UPDATE_FIELD_NUMBER = 5; + private com.google.container.v1beta1.MasterAuth update_; + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public boolean hasUpdate() { + return update_ != null; + } + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public com.google.container.v1beta1.MasterAuth getUpdate() { + return update_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : update_; + } + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public com.google.container.v1beta1.MasterAuthOrBuilder getUpdateOrBuilder() { + return getUpdate(); + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (action_ != com.google.container.v1beta1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { + output.writeEnum(4, action_); + } + if (update_ != null) { + output.writeMessage(5, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (action_ != com.google.container.v1beta1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, action_); + } + if (update_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1beta1.SetMasterAuthRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetMasterAuthRequest other = (com.google.container.v1beta1.SetMasterAuthRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && action_ == other.action_; + result = result && (hasUpdate() == other.hasUpdate()); + if (hasUpdate()) { + result = result && getUpdate() + .equals(other.getUpdate()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + if (hasUpdate()) { + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().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.container.v1beta1.SetMasterAuthRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetMasterAuthRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetMasterAuthRequest updates the admin password of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMasterAuthRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetMasterAuthRequest) + com.google.container.v1beta1.SetMasterAuthRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMasterAuthRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMasterAuthRequest.class, com.google.container.v1beta1.SetMasterAuthRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetMasterAuthRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + action_ = 0; + + if (updateBuilder_ == null) { + update_ = null; + } else { + update_ = null; + updateBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetMasterAuthRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest build() { + com.google.container.v1beta1.SetMasterAuthRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest buildPartial() { + com.google.container.v1beta1.SetMasterAuthRequest result = new com.google.container.v1beta1.SetMasterAuthRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.action_ = action_; + if (updateBuilder_ == null) { + result.update_ = update_; + } else { + result.update_ = updateBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetMasterAuthRequest) { + return mergeFrom((com.google.container.v1beta1.SetMasterAuthRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetMasterAuthRequest other) { + if (other == com.google.container.v1beta1.SetMasterAuthRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetMasterAuthRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetMasterAuthRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private int action_ = 0; + /** + *
+     * The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4; + */ + public int getActionValue() { + return action_; + } + /** + *
+     * The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4; + */ + public Builder setActionValue(int value) { + action_ = value; + onChanged(); + return this; + } + /** + *
+     * The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4; + */ + public com.google.container.v1beta1.SetMasterAuthRequest.Action getAction() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.SetMasterAuthRequest.Action result = com.google.container.v1beta1.SetMasterAuthRequest.Action.valueOf(action_); + return result == null ? com.google.container.v1beta1.SetMasterAuthRequest.Action.UNRECOGNIZED : result; + } + /** + *
+     * The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4; + */ + public Builder setAction(com.google.container.v1beta1.SetMasterAuthRequest.Action value) { + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4; + */ + public Builder clearAction() { + + action_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.MasterAuth update_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder> updateBuilder_; + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public boolean hasUpdate() { + return updateBuilder_ != null || update_ != null; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public com.google.container.v1beta1.MasterAuth getUpdate() { + if (updateBuilder_ == null) { + return update_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : update_; + } else { + return updateBuilder_.getMessage(); + } + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public Builder setUpdate(com.google.container.v1beta1.MasterAuth value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + update_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public Builder setUpdate( + com.google.container.v1beta1.MasterAuth.Builder builderForValue) { + if (updateBuilder_ == null) { + update_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public Builder mergeUpdate(com.google.container.v1beta1.MasterAuth value) { + if (updateBuilder_ == null) { + if (update_ != null) { + update_ = + com.google.container.v1beta1.MasterAuth.newBuilder(update_).mergeFrom(value).buildPartial(); + } else { + update_ = value; + } + onChanged(); + } else { + updateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + update_ = null; + onChanged(); + } else { + update_ = null; + updateBuilder_ = null; + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public com.google.container.v1beta1.MasterAuth.Builder getUpdateBuilder() { + + onChanged(); + return getUpdateFieldBuilder().getBuilder(); + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + public com.google.container.v1beta1.MasterAuthOrBuilder getUpdateOrBuilder() { + if (updateBuilder_ != null) { + return updateBuilder_.getMessageOrBuilder(); + } else { + return update_ == null ? + com.google.container.v1beta1.MasterAuth.getDefaultInstance() : update_; + } + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder>( + getUpdate(), + getParentForChildren(), + isClean()); + update_ = null; + } + return updateBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetMasterAuthRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetMasterAuthRequest) + private static final com.google.container.v1beta1.SetMasterAuthRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetMasterAuthRequest(); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMasterAuthRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMasterAuthRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java new file mode 100644 index 000000000000..dd141d22dec1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetMasterAuthRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMasterAuthRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The exact form of action to be taken on the master auth.
+   * 
+ * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4; + */ + int getActionValue(); + /** + *
+   * The exact form of action to be taken on the master auth.
+   * 
+ * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4; + */ + com.google.container.v1beta1.SetMasterAuthRequest.Action getAction(); + + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + boolean hasUpdate(); + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + com.google.container.v1beta1.MasterAuth getUpdate(); + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.MasterAuth update = 5; + */ + com.google.container.v1beta1.MasterAuthOrBuilder getUpdateOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java new file mode 100644 index 000000000000..03a8da17de0b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java @@ -0,0 +1,1267 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetMonitoringServiceRequest sets the monitoring service of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMonitoringServiceRequest} + */ +public final class SetMonitoringServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMonitoringServiceRequest) + SetMonitoringServiceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetMonitoringServiceRequest.newBuilder() to construct. + private SetMonitoringServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetMonitoringServiceRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + monitoringService_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetMonitoringServiceRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + monitoringService_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMonitoringServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMonitoringServiceRequest.class, com.google.container.v1beta1.SetMonitoringServiceRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONITORING_SERVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object monitoringService_; + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string monitoring_service = 4; + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } + } + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string monitoring_service = 4; + */ + public com.google.protobuf.ByteString + getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, monitoringService_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, monitoringService_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1beta1.SetMonitoringServiceRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetMonitoringServiceRequest other = (com.google.container.v1beta1.SetMonitoringServiceRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getMonitoringService() + .equals(other.getMonitoringService()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringService().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.container.v1beta1.SetMonitoringServiceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetMonitoringServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetMonitoringServiceRequest sets the monitoring service of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMonitoringServiceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetMonitoringServiceRequest) + com.google.container.v1beta1.SetMonitoringServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMonitoringServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMonitoringServiceRequest.class, com.google.container.v1beta1.SetMonitoringServiceRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetMonitoringServiceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + monitoringService_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetMonitoringServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest build() { + com.google.container.v1beta1.SetMonitoringServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest buildPartial() { + com.google.container.v1beta1.SetMonitoringServiceRequest result = new com.google.container.v1beta1.SetMonitoringServiceRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.monitoringService_ = monitoringService_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetMonitoringServiceRequest) { + return mergeFrom((com.google.container.v1beta1.SetMonitoringServiceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetMonitoringServiceRequest other) { + if (other == com.google.container.v1beta1.SetMonitoringServiceRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetMonitoringServiceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetMonitoringServiceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object monitoringService_ = ""; + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string monitoring_service = 4; + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string monitoring_service = 4; + */ + public com.google.protobuf.ByteString + getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string monitoring_service = 4; + */ + public Builder setMonitoringService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + monitoringService_ = value; + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string monitoring_service = 4; + */ + public Builder clearMonitoringService() { + + monitoringService_ = getDefaultInstance().getMonitoringService(); + onChanged(); + return this; + } + /** + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+     * * "none" - no metrics will be exported from the cluster
+     * 
+ * + * string monitoring_service = 4; + */ + public Builder setMonitoringServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + monitoringService_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetMonitoringServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetMonitoringServiceRequest) + private static final com.google.container.v1beta1.SetMonitoringServiceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetMonitoringServiceRequest(); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMonitoringServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMonitoringServiceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java new file mode 100644 index 000000000000..fae18ab30c0e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetMonitoringServiceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMonitoringServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string monitoring_service = 4; + */ + java.lang.String getMonitoringService(); + /** + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+   * * "none" - no metrics will be exported from the cluster
+   * 
+ * + * string monitoring_service = 4; + */ + com.google.protobuf.ByteString + getMonitoringServiceBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java new file mode 100644 index 000000000000..f17e6a971b20 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java @@ -0,0 +1,1320 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetNetworkPolicyRequest enables/disables network policy for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNetworkPolicyRequest} + */ +public final class SetNetworkPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNetworkPolicyRequest) + SetNetworkPolicyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetNetworkPolicyRequest.newBuilder() to construct. + private SetNetworkPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNetworkPolicyRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNetworkPolicyRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + com.google.container.v1beta1.NetworkPolicy.Builder subBuilder = null; + if (networkPolicy_ != null) { + subBuilder = networkPolicy_.toBuilder(); + } + networkPolicy_ = input.readMessage(com.google.container.v1beta1.NetworkPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkPolicy_); + networkPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNetworkPolicyRequest.class, com.google.container.v1beta1.SetNetworkPolicyRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NetworkPolicy networkPolicy_; + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public boolean hasNetworkPolicy() { + return networkPolicy_ != null; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return getNetworkPolicy(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (networkPolicy_ != null) { + output.writeMessage(4, getNetworkPolicy()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (networkPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNetworkPolicy()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1beta1.SetNetworkPolicyRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetNetworkPolicyRequest other = (com.google.container.v1beta1.SetNetworkPolicyRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (hasNetworkPolicy() == other.hasNetworkPolicy()); + if (hasNetworkPolicy()) { + result = result && getNetworkPolicy() + .equals(other.getNetworkPolicy()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasNetworkPolicy()) { + hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicy().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.container.v1beta1.SetNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetNetworkPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetNetworkPolicyRequest enables/disables network policy for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNetworkPolicyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetNetworkPolicyRequest) + com.google.container.v1beta1.SetNetworkPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNetworkPolicyRequest.class, com.google.container.v1beta1.SetNetworkPolicyRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetNetworkPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNetworkPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest build() { + com.google.container.v1beta1.SetNetworkPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest buildPartial() { + com.google.container.v1beta1.SetNetworkPolicyRequest result = new com.google.container.v1beta1.SetNetworkPolicyRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetNetworkPolicyRequest) { + return mergeFrom((com.google.container.v1beta1.SetNetworkPolicyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNetworkPolicyRequest other) { + if (other == com.google.container.v1beta1.SetNetworkPolicyRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetNetworkPolicyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetNetworkPolicyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NetworkPolicy networkPolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder> networkPolicyBuilder_; + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public boolean hasNetworkPolicy() { + return networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public Builder setNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public Builder setNetworkPolicy( + com.google.container.v1beta1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public Builder mergeNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (networkPolicy_ != null) { + networkPolicy_ = + com.google.container.v1beta1.NetworkPolicy.newBuilder(networkPolicy_).mergeFrom(value).buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public com.google.container.v1beta1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null ? + com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), + getParentForChildren(), + isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNetworkPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNetworkPolicyRequest) + private static final com.google.container.v1beta1.SetNetworkPolicyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNetworkPolicyRequest(); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNetworkPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNetworkPolicyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..d88fc5838847 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetNetworkPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNetworkPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + boolean hasNetworkPolicy(); + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + com.google.container.v1beta1.NetworkPolicy getNetworkPolicy(); + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4; + */ + com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java new file mode 100644 index 000000000000..50f1de62fcbf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java @@ -0,0 +1,1489 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolAutoscalingRequest} + */ +public final class SetNodePoolAutoscalingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNodePoolAutoscalingRequest) + SetNodePoolAutoscalingRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetNodePoolAutoscalingRequest.newBuilder() to construct. + private SetNodePoolAutoscalingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNodePoolAutoscalingRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNodePoolAutoscalingRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 42: { + com.google.container.v1beta1.NodePoolAutoscaling.Builder subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = input.readMessage(com.google.container.v1beta1.NodePoolAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest.class, com.google.container.v1beta1.SetNodePoolAutoscalingRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOSCALING_FIELD_NUMBER = 5; + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + return autoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (autoscaling_ != null) { + output.writeMessage(5, getAutoscaling()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAutoscaling()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1beta1.SetNodePoolAutoscalingRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetNodePoolAutoscalingRequest other = (com.google.container.v1beta1.SetNodePoolAutoscalingRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && (hasAutoscaling() == other.hasAutoscaling()); + if (hasAutoscaling()) { + result = result && getAutoscaling() + .equals(other.getAutoscaling()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().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.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetNodePoolAutoscalingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolAutoscalingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetNodePoolAutoscalingRequest) + com.google.container.v1beta1.SetNodePoolAutoscalingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest.class, com.google.container.v1beta1.SetNodePoolAutoscalingRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetNodePoolAutoscalingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNodePoolAutoscalingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest build() { + com.google.container.v1beta1.SetNodePoolAutoscalingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest buildPartial() { + com.google.container.v1beta1.SetNodePoolAutoscalingRequest result = new com.google.container.v1beta1.SetNodePoolAutoscalingRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetNodePoolAutoscalingRequest) { + return mergeFrom((com.google.container.v1beta1.SetNodePoolAutoscalingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolAutoscalingRequest other) { + if (other == com.google.container.v1beta1.SetNodePoolAutoscalingRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetNodePoolAutoscalingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetNodePoolAutoscalingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> autoscalingBuilder_; + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public Builder setAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public Builder setAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public Builder mergeAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1beta1.NodePoolAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public com.google.container.v1beta1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null ? + com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + } + /** + *
+     * Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( + getAutoscaling(), + getParentForChildren(), + isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 6; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolAutoscalingRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolAutoscalingRequest) + private static final com.google.container.v1beta1.SetNodePoolAutoscalingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolAutoscalingRequest(); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolAutoscalingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNodePoolAutoscalingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java new file mode 100644 index 000000000000..987b456c121d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -0,0 +1,142 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetNodePoolAutoscalingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolAutoscalingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + boolean hasAutoscaling(); + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling(); + /** + *
+   * Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5; + */ + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java new file mode 100644 index 000000000000..8e16780c119d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java @@ -0,0 +1,1491 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetNodePoolManagementRequest sets the node management properties of a node
+ * pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolManagementRequest} + */ +public final class SetNodePoolManagementRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNodePoolManagementRequest) + SetNodePoolManagementRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetNodePoolManagementRequest.newBuilder() to construct. + private SetNodePoolManagementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNodePoolManagementRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNodePoolManagementRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 42: { + com.google.container.v1beta1.NodeManagement.Builder subBuilder = null; + if (management_ != null) { + subBuilder = management_.toBuilder(); + } + management_ = input.readMessage(com.google.container.v1beta1.NodeManagement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(management_); + management_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolManagementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolManagementRequest.class, com.google.container.v1beta1.SetNodePoolManagementRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGEMENT_FIELD_NUMBER = 5; + private com.google.container.v1beta1.NodeManagement management_; + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public boolean hasManagement() { + return management_ != null; + } + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagement getManagement() { + return management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; + } + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (management_ != null) { + output.writeMessage(5, getManagement()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (management_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getManagement()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1beta1.SetNodePoolManagementRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetNodePoolManagementRequest other = (com.google.container.v1beta1.SetNodePoolManagementRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && (hasManagement() == other.hasManagement()); + if (hasManagement()) { + result = result && getManagement() + .equals(other.getManagement()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + if (hasManagement()) { + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getManagement().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.container.v1beta1.SetNodePoolManagementRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetNodePoolManagementRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetNodePoolManagementRequest sets the node management properties of a node
+   * pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolManagementRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetNodePoolManagementRequest) + com.google.container.v1beta1.SetNodePoolManagementRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolManagementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolManagementRequest.class, com.google.container.v1beta1.SetNodePoolManagementRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetNodePoolManagementRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNodePoolManagementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest build() { + com.google.container.v1beta1.SetNodePoolManagementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest buildPartial() { + com.google.container.v1beta1.SetNodePoolManagementRequest result = new com.google.container.v1beta1.SetNodePoolManagementRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetNodePoolManagementRequest) { + return mergeFrom((com.google.container.v1beta1.SetNodePoolManagementRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolManagementRequest other) { + if (other == com.google.container.v1beta1.SetNodePoolManagementRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetNodePoolManagementRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetNodePoolManagementRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeManagement management_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder> managementBuilder_; + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder setManagement( + com.google.container.v1beta1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1beta1.NodeManagement.newBuilder(management_).mergeFrom(value).buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null ? + com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; + } + } + /** + *
+     * NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder>( + getManagement(), + getParentForChildren(), + isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolManagementRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolManagementRequest) + private static final com.google.container.v1beta1.SetNodePoolManagementRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolManagementRequest(); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolManagementRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNodePoolManagementRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java new file mode 100644 index 000000000000..fc10fce79e68 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java @@ -0,0 +1,142 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetNodePoolManagementRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolManagementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + boolean hasManagement(); + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + com.google.container.v1beta1.NodeManagement getManagement(); + /** + *
+   * NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java new file mode 100644 index 000000000000..3f1c762c4085 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java @@ -0,0 +1,1336 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetNodePoolSizeRequest sets the size a node
+ * pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolSizeRequest} + */ +public final class SetNodePoolSizeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNodePoolSizeRequest) + SetNodePoolSizeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetNodePoolSizeRequest.newBuilder() to construct. + private SetNodePoolSizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNodePoolSizeRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + nodeCount_ = 0; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNodePoolSizeRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 40: { + + nodeCount_ = input.readInt32(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolSizeRequest.class, com.google.container.v1beta1.SetNodePoolSizeRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_COUNT_FIELD_NUMBER = 5; + private int nodeCount_; + /** + *
+   * The desired node count for the pool.
+   * 
+ * + * int32 node_count = 5; + */ + public int getNodeCount() { + return nodeCount_; + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (nodeCount_ != 0) { + output.writeInt32(5, nodeCount_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, nodeCount_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1beta1.SetNodePoolSizeRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetNodePoolSizeRequest other = (com.google.container.v1beta1.SetNodePoolSizeRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && (getNodeCount() + == other.getNodeCount()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNodeCount(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SetNodePoolSizeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetNodePoolSizeRequest sets the size a node
+   * pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolSizeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetNodePoolSizeRequest) + com.google.container.v1beta1.SetNodePoolSizeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolSizeRequest.class, com.google.container.v1beta1.SetNodePoolSizeRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetNodePoolSizeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + nodeCount_ = 0; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNodePoolSizeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest build() { + com.google.container.v1beta1.SetNodePoolSizeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest buildPartial() { + com.google.container.v1beta1.SetNodePoolSizeRequest result = new com.google.container.v1beta1.SetNodePoolSizeRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.nodeCount_ = nodeCount_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetNodePoolSizeRequest) { + return mergeFrom((com.google.container.v1beta1.SetNodePoolSizeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolSizeRequest other) { + if (other == com.google.container.v1beta1.SetNodePoolSizeRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetNodePoolSizeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetNodePoolSizeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private int nodeCount_ ; + /** + *
+     * The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5; + */ + public int getNodeCount() { + return nodeCount_; + } + /** + *
+     * The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5; + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + onChanged(); + return this; + } + /** + *
+     * The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5; + */ + public Builder clearNodeCount() { + + nodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolSizeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolSizeRequest) + private static final com.google.container.v1beta1.SetNodePoolSizeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolSizeRequest(); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolSizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNodePoolSizeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java new file mode 100644 index 000000000000..d63bc0cf6317 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetNodePoolSizeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolSizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * The desired node count for the pool.
+   * 
+ * + * int32 node_count = 5; + */ + int getNodeCount(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java new file mode 100644 index 000000000000..873896750367 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java @@ -0,0 +1,1168 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * StartIPRotationRequest creates a new IP for the cluster and then performs
+ * a node upgrade on each node pool to point to the new IP.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.StartIPRotationRequest} + */ +public final class StartIPRotationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.StartIPRotationRequest) + StartIPRotationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use StartIPRotationRequest.newBuilder() to construct. + private StartIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StartIPRotationRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + rotateCredentials_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StartIPRotationRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 56: { + + rotateCredentials_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StartIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StartIPRotationRequest.class, com.google.container.v1beta1.StartIPRotationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + 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 ROTATE_CREDENTIALS_FIELD_NUMBER = 7; + private boolean rotateCredentials_; + /** + *
+   * Whether to rotate credentials during IP rotation.
+   * 
+ * + * bool rotate_credentials = 7; + */ + public boolean getRotateCredentials() { + return rotateCredentials_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + if (rotateCredentials_ != false) { + output.writeBool(7, rotateCredentials_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + if (rotateCredentials_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, rotateCredentials_); + } + 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.container.v1beta1.StartIPRotationRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.StartIPRotationRequest other = (com.google.container.v1beta1.StartIPRotationRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getName() + .equals(other.getName()); + result = result && (getRotateCredentials() + == other.getRotateCredentials()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ROTATE_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRotateCredentials()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.StartIPRotationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * StartIPRotationRequest creates a new IP for the cluster and then performs
+   * a node upgrade on each node pool to point to the new IP.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.StartIPRotationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.StartIPRotationRequest) + com.google.container.v1beta1.StartIPRotationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StartIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StartIPRotationRequest.class, com.google.container.v1beta1.StartIPRotationRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.StartIPRotationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + rotateCredentials_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.StartIPRotationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest build() { + com.google.container.v1beta1.StartIPRotationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest buildPartial() { + com.google.container.v1beta1.StartIPRotationRequest result = new com.google.container.v1beta1.StartIPRotationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + result.rotateCredentials_ = rotateCredentials_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.StartIPRotationRequest) { + return mergeFrom((com.google.container.v1beta1.StartIPRotationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.StartIPRotationRequest other) { + if (other == com.google.container.v1beta1.StartIPRotationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getRotateCredentials() != false) { + setRotateCredentials(other.getRotateCredentials()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.StartIPRotationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.StartIPRotationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://developers.google.com/console/help/new/#projectnumber).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 6; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean rotateCredentials_ ; + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + */ + public boolean getRotateCredentials() { + return rotateCredentials_; + } + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + */ + public Builder setRotateCredentials(boolean value) { + + rotateCredentials_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + */ + public Builder clearRotateCredentials() { + + rotateCredentials_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.StartIPRotationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.StartIPRotationRequest) + private static final com.google.container.v1beta1.StartIPRotationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.StartIPRotationRequest(); + } + + public static com.google.container.v1beta1.StartIPRotationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartIPRotationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartIPRotationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java new file mode 100644 index 000000000000..a99172346c76 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface StartIPRotationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.StartIPRotationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://developers.google.com/console/help/new/#projectnumber).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 6; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Whether to rotate credentials during IP rotation.
+   * 
+ * + * bool rotate_credentials = 7; + */ + boolean getRotateCredentials(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StatusCondition.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StatusCondition.java new file mode 100644 index 000000000000..314be9163c30 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StatusCondition.java @@ -0,0 +1,831 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * StatusCondition describes why a cluster or a node pool has a certain status
+ * (e.g., ERROR or DEGRADED).
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.StatusCondition} + */ +public final class StatusCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.StatusCondition) + StatusConditionOrBuilder { +private static final long serialVersionUID = 0L; + // Use StatusCondition.newBuilder() to construct. + private StatusCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StatusCondition() { + code_ = 0; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StatusCondition( + 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 8: { + int rawValue = input.readEnum(); + + code_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StatusCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StatusCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StatusCondition.class, com.google.container.v1beta1.StatusCondition.Builder.class); + } + + /** + *
+   * Code for each condition
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.StatusCondition.Code} + */ + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * UNKNOWN indicates a generic condition.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + *
+     * GCE_STOCKOUT indicates a GCE stockout.
+     * 
+ * + * GCE_STOCKOUT = 1; + */ + GCE_STOCKOUT(1), + /** + *
+     * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
+     * service account.
+     * More codes TBA
+     * 
+ * + * GKE_SERVICE_ACCOUNT_DELETED = 2; + */ + GKE_SERVICE_ACCOUNT_DELETED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * UNKNOWN indicates a generic condition.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + *
+     * GCE_STOCKOUT indicates a GCE stockout.
+     * 
+ * + * GCE_STOCKOUT = 1; + */ + public static final int GCE_STOCKOUT_VALUE = 1; + /** + *
+     * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
+     * service account.
+     * More codes TBA
+     * 
+ * + * GKE_SERVICE_ACCOUNT_DELETED = 2; + */ + public static final int GKE_SERVICE_ACCOUNT_DELETED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Code valueOf(int value) { + return forNumber(value); + } + + public static Code forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return GCE_STOCKOUT; + case 2: return GKE_SERVICE_ACCOUNT_DELETED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.StatusCondition.getDescriptor().getEnumTypes().get(0); + } + + private static final Code[] VALUES = values(); + + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.StatusCondition.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + *
+   * Machine-friendly representation of the condition
+   * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1; + */ + public int getCodeValue() { + return code_; + } + /** + *
+   * Machine-friendly representation of the condition
+   * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1; + */ + public com.google.container.v1beta1.StatusCondition.Code getCode() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.StatusCondition.Code result = com.google.container.v1beta1.StatusCondition.Code.valueOf(code_); + return result == null ? com.google.container.v1beta1.StatusCondition.Code.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.container.v1beta1.StatusCondition.Code.UNKNOWN.getNumber()) { + output.writeEnum(1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != com.google.container.v1beta1.StatusCondition.Code.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + 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.container.v1beta1.StatusCondition)) { + return super.equals(obj); + } + com.google.container.v1beta1.StatusCondition other = (com.google.container.v1beta1.StatusCondition) obj; + + boolean result = true; + result = result && code_ == other.code_; + result = result && getMessage() + .equals(other.getMessage()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.StatusCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.StatusCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.StatusCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.StatusCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.StatusCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.StatusCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.StatusCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.StatusCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.StatusCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.StatusCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.StatusCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.StatusCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.StatusCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * StatusCondition describes why a cluster or a node pool has a certain status
+   * (e.g., ERROR or DEGRADED).
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.StatusCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.StatusCondition) + com.google.container.v1beta1.StatusConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StatusCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StatusCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StatusCondition.class, com.google.container.v1beta1.StatusCondition.Builder.class); + } + + // Construct using com.google.container.v1beta1.StatusCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + code_ = 0; + + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StatusCondition_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition getDefaultInstanceForType() { + return com.google.container.v1beta1.StatusCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition build() { + com.google.container.v1beta1.StatusCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition buildPartial() { + com.google.container.v1beta1.StatusCondition result = new com.google.container.v1beta1.StatusCondition(this); + result.code_ = code_; + result.message_ = message_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.StatusCondition) { + return mergeFrom((com.google.container.v1beta1.StatusCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.StatusCondition other) { + if (other == com.google.container.v1beta1.StatusCondition.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.StatusCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.StatusCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ = 0; + /** + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1; + */ + public int getCodeValue() { + return code_; + } + /** + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1; + */ + public Builder setCodeValue(int value) { + code_ = value; + onChanged(); + return this; + } + /** + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1; + */ + public com.google.container.v1beta1.StatusCondition.Code getCode() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.StatusCondition.Code result = com.google.container.v1beta1.StatusCondition.Code.valueOf(code_); + return result == null ? com.google.container.v1beta1.StatusCondition.Code.UNRECOGNIZED : result; + } + /** + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1; + */ + public Builder setCode(com.google.container.v1beta1.StatusCondition.Code value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.StatusCondition) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.StatusCondition) + private static final com.google.container.v1beta1.StatusCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.StatusCondition(); + } + + public static com.google.container.v1beta1.StatusCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StatusCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java new file mode 100644 index 000000000000..98fed3acc2a2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface StatusConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.StatusCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Machine-friendly representation of the condition
+   * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1; + */ + int getCodeValue(); + /** + *
+   * Machine-friendly representation of the condition
+   * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1; + */ + com.google.container.v1beta1.StatusCondition.Code getCode(); + + /** + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java new file mode 100644 index 000000000000..8cb338c6e160 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java @@ -0,0 +1,1320 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * UpdateClusterRequest updates the settings of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateClusterRequest} + */ +public final class UpdateClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateClusterRequest) + UpdateClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateClusterRequest.newBuilder() to construct. + private UpdateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateClusterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + com.google.container.v1beta1.ClusterUpdate.Builder subBuilder = null; + if (update_ != null) { + subBuilder = update_.toBuilder(); + } + update_ = input.readMessage(com.google.container.v1beta1.ClusterUpdate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(update_); + update_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateClusterRequest.class, com.google.container.v1beta1.UpdateClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_FIELD_NUMBER = 4; + private com.google.container.v1beta1.ClusterUpdate update_; + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public boolean hasUpdate() { + return update_ != null; + } + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public com.google.container.v1beta1.ClusterUpdate getUpdate() { + return update_ == null ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() : update_; + } + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public com.google.container.v1beta1.ClusterUpdateOrBuilder getUpdateOrBuilder() { + return getUpdate(); + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (update_ != null) { + output.writeMessage(4, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (update_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1beta1.UpdateClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.UpdateClusterRequest other = (com.google.container.v1beta1.UpdateClusterRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && (hasUpdate() == other.hasUpdate()); + if (hasUpdate()) { + result = result && getUpdate() + .equals(other.getUpdate()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasUpdate()) { + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().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.container.v1beta1.UpdateClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.UpdateClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UpdateClusterRequest updates the settings of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UpdateClusterRequest) + com.google.container.v1beta1.UpdateClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateClusterRequest.class, com.google.container.v1beta1.UpdateClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.UpdateClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (updateBuilder_ == null) { + update_ = null; + } else { + update_ = null; + updateBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.UpdateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest build() { + com.google.container.v1beta1.UpdateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest buildPartial() { + com.google.container.v1beta1.UpdateClusterRequest result = new com.google.container.v1beta1.UpdateClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (updateBuilder_ == null) { + result.update_ = update_; + } else { + result.update_ = updateBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UpdateClusterRequest) { + return mergeFrom((com.google.container.v1beta1.UpdateClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpdateClusterRequest other) { + if (other == com.google.container.v1beta1.UpdateClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.UpdateClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.UpdateClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ClusterUpdate update_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterUpdate, com.google.container.v1beta1.ClusterUpdate.Builder, com.google.container.v1beta1.ClusterUpdateOrBuilder> updateBuilder_; + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public boolean hasUpdate() { + return updateBuilder_ != null || update_ != null; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public com.google.container.v1beta1.ClusterUpdate getUpdate() { + if (updateBuilder_ == null) { + return update_ == null ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() : update_; + } else { + return updateBuilder_.getMessage(); + } + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public Builder setUpdate(com.google.container.v1beta1.ClusterUpdate value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + update_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public Builder setUpdate( + com.google.container.v1beta1.ClusterUpdate.Builder builderForValue) { + if (updateBuilder_ == null) { + update_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public Builder mergeUpdate(com.google.container.v1beta1.ClusterUpdate value) { + if (updateBuilder_ == null) { + if (update_ != null) { + update_ = + com.google.container.v1beta1.ClusterUpdate.newBuilder(update_).mergeFrom(value).buildPartial(); + } else { + update_ = value; + } + onChanged(); + } else { + updateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + update_ = null; + onChanged(); + } else { + update_ = null; + updateBuilder_ = null; + } + + return this; + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public com.google.container.v1beta1.ClusterUpdate.Builder getUpdateBuilder() { + + onChanged(); + return getUpdateFieldBuilder().getBuilder(); + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + public com.google.container.v1beta1.ClusterUpdateOrBuilder getUpdateOrBuilder() { + if (updateBuilder_ != null) { + return updateBuilder_.getMessageOrBuilder(); + } else { + return update_ == null ? + com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() : update_; + } + } + /** + *
+     * A description of the update.
+     * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterUpdate, com.google.container.v1beta1.ClusterUpdate.Builder, com.google.container.v1beta1.ClusterUpdateOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterUpdate, com.google.container.v1beta1.ClusterUpdate.Builder, com.google.container.v1beta1.ClusterUpdateOrBuilder>( + getUpdate(), + getParentForChildren(), + isClean()); + update_ = null; + } + return updateBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 5; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UpdateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpdateClusterRequest) + private static final com.google.container.v1beta1.UpdateClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UpdateClusterRequest(); + } + + public static com.google.container.v1beta1.UpdateClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java new file mode 100644 index 000000000000..64bec15f515b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface UpdateClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + boolean hasUpdate(); + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + com.google.container.v1beta1.ClusterUpdate getUpdate(); + /** + *
+   * A description of the update.
+   * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4; + */ + com.google.container.v1beta1.ClusterUpdateOrBuilder getUpdateOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 5; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java new file mode 100644 index 000000000000..24ba9cf520c0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java @@ -0,0 +1,1295 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * UpdateMasterRequest updates the master of the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateMasterRequest} + */ +public final class UpdateMasterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateMasterRequest) + UpdateMasterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateMasterRequest.newBuilder() to construct. + private UpdateMasterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateMasterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + masterVersion_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateMasterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + masterVersion_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateMasterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateMasterRequest.class, com.google.container.v1beta1.UpdateMasterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object masterVersion_; + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4; + */ + public java.lang.String getMasterVersion() { + java.lang.Object ref = masterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterVersion_ = s; + return s; + } + } + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4; + */ + public com.google.protobuf.ByteString + getMasterVersionBytes() { + java.lang.Object ref = masterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + masterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getMasterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, masterVersion_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getMasterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, masterVersion_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1beta1.UpdateMasterRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.UpdateMasterRequest other = (com.google.container.v1beta1.UpdateMasterRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getMasterVersion() + .equals(other.getMasterVersion()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMasterVersion().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.container.v1beta1.UpdateMasterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.UpdateMasterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UpdateMasterRequest updates the master of the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateMasterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UpdateMasterRequest) + com.google.container.v1beta1.UpdateMasterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateMasterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateMasterRequest.class, com.google.container.v1beta1.UpdateMasterRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.UpdateMasterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + masterVersion_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.UpdateMasterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest build() { + com.google.container.v1beta1.UpdateMasterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest buildPartial() { + com.google.container.v1beta1.UpdateMasterRequest result = new com.google.container.v1beta1.UpdateMasterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.masterVersion_ = masterVersion_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UpdateMasterRequest) { + return mergeFrom((com.google.container.v1beta1.UpdateMasterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpdateMasterRequest other) { + if (other == com.google.container.v1beta1.UpdateMasterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getMasterVersion().isEmpty()) { + masterVersion_ = other.masterVersion_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.UpdateMasterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.UpdateMasterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object masterVersion_ = ""; + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4; + */ + public java.lang.String getMasterVersion() { + java.lang.Object ref = masterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4; + */ + public com.google.protobuf.ByteString + getMasterVersionBytes() { + java.lang.Object ref = masterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + masterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4; + */ + public Builder setMasterVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4; + */ + public Builder clearMasterVersion() { + + masterVersion_ = getDefaultInstance().getMasterVersion(); + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4; + */ + public Builder setMasterVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format 'projects/*/locations/*/clusters/*'.
+     * 
+ * + * string name = 7; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UpdateMasterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpdateMasterRequest) + private static final com.google.container.v1beta1.UpdateMasterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UpdateMasterRequest(); + } + + public static com.google.container.v1beta1.UpdateMasterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMasterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMasterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java new file mode 100644 index 000000000000..015ab6334891 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java @@ -0,0 +1,127 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface UpdateMasterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateMasterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4; + */ + java.lang.String getMasterVersion(); + /** + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4; + */ + com.google.protobuf.ByteString + getMasterVersionBytes(); + + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format 'projects/*/locations/*/clusters/*'.
+   * 
+ * + * string name = 7; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java new file mode 100644 index 000000000000..9568442f321d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java @@ -0,0 +1,1626 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * SetNodePoolVersionRequest updates the version of a node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateNodePoolRequest} + */ +public final class UpdateNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateNodePoolRequest) + UpdateNodePoolRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateNodePoolRequest.newBuilder() to construct. + private UpdateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + nodeVersion_ = ""; + imageType_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateNodePoolRequest( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeVersion_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + imageType_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateNodePoolRequest.class, com.google.container.v1beta1.UpdateNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeVersion_; + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5; + */ + public java.lang.String getNodeVersion() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeVersion_ = s; + return s; + } + } + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5; + */ + public com.google.protobuf.ByteString + getNodeVersionBytes() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 6; + private volatile java.lang.Object imageType_; + /** + *
+   * The desired image type for the node pool.
+   * 
+ * + * string image_type = 6; + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + *
+   * The desired image type for the node pool.
+   * 
+ * + * string image_type = 6; + */ + public com.google.protobuf.ByteString + getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object name_; + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNodeVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeVersion_); + } + if (!getImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, imageType_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNodeVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeVersion_); + } + if (!getImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, imageType_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, 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.container.v1beta1.UpdateNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.UpdateNodePoolRequest other = (com.google.container.v1beta1.UpdateNodePoolRequest) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getZone() + .equals(other.getZone()); + result = result && getClusterId() + .equals(other.getClusterId()); + result = result && getNodePoolId() + .equals(other.getNodePoolId()); + result = result && getNodeVersion() + .equals(other.getNodeVersion()); + result = result && getImageType() + .equals(other.getImageType()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NODE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getNodeVersion().hashCode(); + hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getImageType().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.container.v1beta1.UpdateNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.UpdateNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetNodePoolVersionRequest updates the version of a node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UpdateNodePoolRequest) + com.google.container.v1beta1.UpdateNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateNodePoolRequest.class, com.google.container.v1beta1.UpdateNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.UpdateNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + nodeVersion_ = ""; + + imageType_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.UpdateNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest build() { + com.google.container.v1beta1.UpdateNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest buildPartial() { + com.google.container.v1beta1.UpdateNodePoolRequest result = new com.google.container.v1beta1.UpdateNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.nodeVersion_ = nodeVersion_; + result.imageType_ = imageType_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UpdateNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.UpdateNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpdateNodePoolRequest other) { + if (other == com.google.container.v1beta1.UpdateNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getNodeVersion().isEmpty()) { + nodeVersion_ = other.nodeVersion_; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.UpdateNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.UpdateNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodePoolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeVersion_ = ""; + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5; + */ + public java.lang.String getNodeVersion() { + java.lang.Object ref = nodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5; + */ + public com.google.protobuf.ByteString + getNodeVersionBytes() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5; + */ + public Builder setNodeVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5; + */ + public Builder clearNodeVersion() { + + nodeVersion_ = getDefaultInstance().getNodeVersion(); + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5; + */ + public Builder setNodeVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + *
+     * The desired image type for the node pool.
+     * 
+ * + * string image_type = 6; + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The desired image type for the node pool.
+     * 
+ * + * string image_type = 6; + */ + public com.google.protobuf.ByteString + getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The desired image type for the node pool.
+     * 
+ * + * string image_type = 6; + */ + public Builder setImageType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + *
+     * The desired image type for the node pool.
+     * 
+ * + * string image_type = 6; + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + *
+     * The desired image type for the node pool.
+     * 
+ * + * string image_type = 6; + */ + public Builder setImageTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * 'projects/*/locations/*/clusters/*/nodePools/*'.
+     * 
+ * + * string name = 8; + */ + 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.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UpdateNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpdateNodePoolRequest) + private static final com.google.container.v1beta1.UpdateNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UpdateNodePoolRequest(); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..2515b3c7fac5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java @@ -0,0 +1,169 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface UpdateNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5; + */ + java.lang.String getNodeVersion(); + /** + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5; + */ + com.google.protobuf.ByteString + getNodeVersionBytes(); + + /** + *
+   * The desired image type for the node pool.
+   * 
+ * + * string image_type = 6; + */ + java.lang.String getImageType(); + /** + *
+   * The desired image type for the node pool.
+   * 
+ * + * string image_type = 6; + */ + com.google.protobuf.ByteString + getImageTypeBytes(); + + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * 'projects/*/locations/*/clusters/*/nodePools/*'.
+   * 
+ * + * string name = 8; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java new file mode 100644 index 000000000000..0dc2eac289d6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java @@ -0,0 +1,1519 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * UsableSubnetwork resource returns the subnetwork name, its associated network
+ * and the primary CIDR range.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UsableSubnetwork} + */ +public final class UsableSubnetwork extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UsableSubnetwork) + UsableSubnetworkOrBuilder { +private static final long serialVersionUID = 0L; + // Use UsableSubnetwork.newBuilder() to construct. + private UsableSubnetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UsableSubnetwork() { + subnetwork_ = ""; + network_ = ""; + ipCidrRange_ = ""; + secondaryIpRanges_ = java.util.Collections.emptyList(); + statusMessage_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UsableSubnetwork( + 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(); + + subnetwork_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + ipCidrRange_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + secondaryIpRanges_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + secondaryIpRanges_.add( + input.readMessage(com.google.container.v1beta1.UsableSubnetworkSecondaryRange.parser(), extensionRegistry)); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UsableSubnetwork.class, com.google.container.v1beta1.UsableSubnetwork.Builder.class); + } + + private int bitField0_; + public static final int SUBNETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object subnetwork_; + /** + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object network_; + /** + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 3; + private volatile java.lang.Object ipCidrRange_; + /** + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + */ + public com.google.protobuf.ByteString + getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_IP_RANGES_FIELD_NUMBER = 4; + private java.util.List secondaryIpRanges_; + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List getSecondaryIpRangesList() { + return secondaryIpRanges_; + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List + getSecondaryIpRangesOrBuilderList() { + return secondaryIpRanges_; + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public int getSecondaryIpRangesCount() { + return secondaryIpRanges_.size(); + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { + return secondaryIpRanges_.get(index); + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( + int index) { + return secondaryIpRanges_.get(index); + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object statusMessage_; + /** + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = 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 (!getSubnetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); + } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipCidrRange_); + } + for (int i = 0; i < secondaryIpRanges_.size(); i++) { + output.writeMessage(4, secondaryIpRanges_.get(i)); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubnetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); + } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipCidrRange_); + } + for (int i = 0; i < secondaryIpRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, secondaryIpRanges_.get(i)); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + 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.container.v1beta1.UsableSubnetwork)) { + return super.equals(obj); + } + com.google.container.v1beta1.UsableSubnetwork other = (com.google.container.v1beta1.UsableSubnetwork) obj; + + boolean result = true; + result = result && getSubnetwork() + .equals(other.getSubnetwork()); + result = result && getNetwork() + .equals(other.getNetwork()); + result = result && getIpCidrRange() + .equals(other.getIpCidrRange()); + result = result && getSecondaryIpRangesList() + .equals(other.getSecondaryIpRangesList()); + result = result && getStatusMessage() + .equals(other.getStatusMessage()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpCidrRange().hashCode(); + if (getSecondaryIpRangesCount() > 0) { + hash = (37 * hash) + SECONDARY_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryIpRangesList().hashCode(); + } + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UsableSubnetwork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UsableSubnetwork parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UsableSubnetwork parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UsableSubnetwork parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.UsableSubnetwork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UsableSubnetwork resource returns the subnetwork name, its associated network
+   * and the primary CIDR range.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UsableSubnetwork} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UsableSubnetwork) + com.google.container.v1beta1.UsableSubnetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UsableSubnetwork.class, com.google.container.v1beta1.UsableSubnetwork.Builder.class); + } + + // Construct using com.google.container.v1beta1.UsableSubnetwork.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSecondaryIpRangesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + subnetwork_ = ""; + + network_ = ""; + + ipCidrRange_ = ""; + + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + secondaryIpRangesBuilder_.clear(); + } + statusMessage_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork getDefaultInstanceForType() { + return com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork build() { + com.google.container.v1beta1.UsableSubnetwork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork buildPartial() { + com.google.container.v1beta1.UsableSubnetwork result = new com.google.container.v1beta1.UsableSubnetwork(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.subnetwork_ = subnetwork_; + result.network_ = network_; + result.ipCidrRange_ = ipCidrRange_; + if (secondaryIpRangesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.secondaryIpRanges_ = secondaryIpRanges_; + } else { + result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); + } + result.statusMessage_ = statusMessage_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UsableSubnetwork) { + return mergeFrom((com.google.container.v1beta1.UsableSubnetwork)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UsableSubnetwork other) { + if (other == com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance()) return this; + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + onChanged(); + } + if (secondaryIpRangesBuilder_ == null) { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRanges_.isEmpty()) { + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.addAll(other.secondaryIpRanges_); + } + onChanged(); + } + } else { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRangesBuilder_.isEmpty()) { + secondaryIpRangesBuilder_.dispose(); + secondaryIpRangesBuilder_ = null; + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + secondaryIpRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecondaryIpRangesFieldBuilder() : null; + } else { + secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); + } + } + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.UsableSubnetwork parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.UsableSubnetwork) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + */ + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + */ + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + */ + public Builder setNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + */ + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + */ + public com.google.protobuf.ByteString + getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + */ + public Builder setIpCidrRange( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + */ + public Builder setIpCidrRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private java.util.List secondaryIpRanges_ = + java.util.Collections.emptyList(); + private void ensureSecondaryIpRangesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + secondaryIpRanges_ = new java.util.ArrayList(secondaryIpRanges_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> secondaryIpRangesBuilder_; + + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List getSecondaryIpRangesList() { + if (secondaryIpRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } else { + return secondaryIpRangesBuilder_.getMessageList(); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public int getSecondaryIpRangesCount() { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.size(); + } else { + return secondaryIpRangesBuilder_.getCount(); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); + } else { + return secondaryIpRangesBuilder_.getMessage(index); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder setSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.set(index, value); + onChanged(); + } else { + secondaryIpRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder setSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges(com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(value); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(index, value); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addAllSecondaryIpRanges( + java.lang.Iterable values) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secondaryIpRanges_); + onChanged(); + } else { + secondaryIpRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder clearSecondaryIpRanges() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + secondaryIpRangesBuilder_.clear(); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder removeSecondaryIpRanges(int index) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.remove(index); + onChanged(); + } else { + secondaryIpRangesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder( + int index) { + return getSecondaryIpRangesFieldBuilder().getBuilder(index); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( + int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); } else { + return secondaryIpRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List + getSecondaryIpRangesOrBuilderList() { + if (secondaryIpRangesBuilder_ != null) { + return secondaryIpRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder() { + return getSecondaryIpRangesFieldBuilder().addBuilder( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder( + int index) { + return getSecondaryIpRangesFieldBuilder().addBuilder( + index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List + getSecondaryIpRangesBuilderList() { + return getSecondaryIpRangesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> + getSecondaryIpRangesFieldBuilder() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder>( + secondaryIpRanges_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + secondaryIpRanges_ = null; + } + return secondaryIpRangesBuilder_; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + */ + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + */ + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + */ + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UsableSubnetwork) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UsableSubnetwork) + private static final com.google.container.v1beta1.UsableSubnetwork DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UsableSubnetwork(); + } + + public static com.google.container.v1beta1.UsableSubnetwork getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsableSubnetwork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UsableSubnetwork(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java new file mode 100644 index 000000000000..fd4574c1ca1a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java @@ -0,0 +1,135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface UsableSubnetworkOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UsableSubnetwork) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + */ + java.lang.String getSubnetwork(); + /** + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); + + /** + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + */ + java.lang.String getNetwork(); + /** + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + */ + java.lang.String getIpCidrRange(); + /** + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + */ + com.google.protobuf.ByteString + getIpCidrRangeBytes(); + + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + java.util.List + getSecondaryIpRangesList(); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + int getSecondaryIpRangesCount(); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + java.util.List + getSecondaryIpRangesOrBuilderList(); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( + int index); + + /** + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + */ + java.lang.String getStatusMessage(); + /** + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + */ + com.google.protobuf.ByteString + getStatusMessageBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java new file mode 100644 index 000000000000..e552dcf24e95 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java @@ -0,0 +1,1029 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * Secondary IP range of a usable subnetwork.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UsableSubnetworkSecondaryRange} + */ +public final class UsableSubnetworkSecondaryRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UsableSubnetworkSecondaryRange) + UsableSubnetworkSecondaryRangeOrBuilder { +private static final long serialVersionUID = 0L; + // Use UsableSubnetworkSecondaryRange.newBuilder() to construct. + private UsableSubnetworkSecondaryRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UsableSubnetworkSecondaryRange() { + rangeName_ = ""; + ipCidrRange_ = ""; + status_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UsableSubnetworkSecondaryRange( + 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(); + + rangeName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + ipCidrRange_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.class, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder.class); + } + + /** + *
+   * Status shows the current usage of a secondary IP range.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.UsableSubnetworkSecondaryRange.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * UNKNOWN is the zero value of the Status enum. It's not a valid status.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + *
+     * UNUSED denotes that this range is unclaimed by any cluster.
+     * 
+ * + * UNUSED = 1; + */ + UNUSED(1), + /** + *
+     * IN_USE_SERVICE denotes that this range is claimed by a cluster for
+     * services. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_SERVICE = 2; + */ + IN_USE_SERVICE(2), + /** + *
+     * IN_USE_SHAREABLE_POD denotes this range was created by the network admin
+     * and is currently claimed by a cluster for pods. It can only be used by
+     * other clusters as a pod range.
+     * 
+ * + * IN_USE_SHAREABLE_POD = 3; + */ + IN_USE_SHAREABLE_POD(3), + /** + *
+     * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
+     * for pods. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_MANAGED_POD = 4; + */ + IN_USE_MANAGED_POD(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * UNKNOWN is the zero value of the Status enum. It's not a valid status.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + *
+     * UNUSED denotes that this range is unclaimed by any cluster.
+     * 
+ * + * UNUSED = 1; + */ + public static final int UNUSED_VALUE = 1; + /** + *
+     * IN_USE_SERVICE denotes that this range is claimed by a cluster for
+     * services. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_SERVICE = 2; + */ + public static final int IN_USE_SERVICE_VALUE = 2; + /** + *
+     * IN_USE_SHAREABLE_POD denotes this range was created by the network admin
+     * and is currently claimed by a cluster for pods. It can only be used by
+     * other clusters as a pod range.
+     * 
+ * + * IN_USE_SHAREABLE_POD = 3; + */ + public static final int IN_USE_SHAREABLE_POD_VALUE = 3; + /** + *
+     * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
+     * for pods. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_MANAGED_POD = 4; + */ + public static final int IN_USE_MANAGED_POD_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + public static Status forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return UNUSED; + case 2: return IN_USE_SERVICE; + case 3: return IN_USE_SHAREABLE_POD; + case 4: return IN_USE_MANAGED_POD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.UsableSubnetworkSecondaryRange.Status) + } + + public static final int RANGE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object rangeName_; + /** + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + */ + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } + } + /** + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + */ + public com.google.protobuf.ByteString + getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 2; + private volatile java.lang.Object ipCidrRange_; + /** + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + */ + public com.google.protobuf.ByteString + getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 3; + private int status_; + /** + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public int getStatusValue() { + return status_; + } + /** + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRangeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipCidrRange_); + } + if (status_ != com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + output.writeEnum(3, status_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRangeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipCidrRange_); + } + if (status_ != com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, status_); + } + 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.container.v1beta1.UsableSubnetworkSecondaryRange)) { + return super.equals(obj); + } + com.google.container.v1beta1.UsableSubnetworkSecondaryRange other = (com.google.container.v1beta1.UsableSubnetworkSecondaryRange) obj; + + boolean result = true; + result = result && getRangeName() + .equals(other.getRangeName()); + result = result && getIpCidrRange() + .equals(other.getIpCidrRange()); + result = result && status_ == other.status_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RANGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getRangeName().hashCode(); + hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpCidrRange().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.UsableSubnetworkSecondaryRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Secondary IP range of a usable subnetwork.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UsableSubnetworkSecondaryRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UsableSubnetworkSecondaryRange) + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.class, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder.class); + } + + // Construct using com.google.container.v1beta1.UsableSubnetworkSecondaryRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + rangeName_ = ""; + + ipCidrRange_ = ""; + + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { + return com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange build() { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange buildPartial() { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange result = new com.google.container.v1beta1.UsableSubnetworkSecondaryRange(this); + result.rangeName_ = rangeName_; + result.ipCidrRange_ = ipCidrRange_; + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UsableSubnetworkSecondaryRange) { + return mergeFrom((com.google.container.v1beta1.UsableSubnetworkSecondaryRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UsableSubnetworkSecondaryRange other) { + if (other == com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()) return this; + if (!other.getRangeName().isEmpty()) { + rangeName_ = other.rangeName_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.UsableSubnetworkSecondaryRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object rangeName_ = ""; + /** + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + */ + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + */ + public com.google.protobuf.ByteString + getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + */ + public Builder setRangeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeName_ = value; + onChanged(); + return this; + } + /** + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + */ + public Builder clearRangeName() { + + rangeName_ = getDefaultInstance().getRangeName(); + onChanged(); + return this; + } + /** + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + */ + public Builder setRangeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + */ + public com.google.protobuf.ByteString + getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + */ + public Builder setIpCidrRange( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + */ + public Builder setIpCidrRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public Builder setStatusValue(int value) { + status_ = value; + onChanged(); + return this; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED : result; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public Builder setStatus(com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UsableSubnetworkSecondaryRange) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UsableSubnetworkSecondaryRange) + private static final com.google.container.v1beta1.UsableSubnetworkSecondaryRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UsableSubnetworkSecondaryRange(); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsableSubnetworkSecondaryRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UsableSubnetworkSecondaryRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java new file mode 100644 index 000000000000..67e12c73c6a6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface UsableSubnetworkSecondaryRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UsableSubnetworkSecondaryRange) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + */ + java.lang.String getRangeName(); + /** + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + */ + com.google.protobuf.ByteString + getRangeNameBytes(); + + /** + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + */ + java.lang.String getIpCidrRange(); + /** + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + */ + com.google.protobuf.ByteString + getIpCidrRangeBytes(); + + /** + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + int getStatusValue(); + /** + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java new file mode 100644 index 000000000000..72f1574ec123 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java @@ -0,0 +1,692 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + *
+ * WorkloadMetadataConfig defines the metadata configuration to expose to
+ * workloads on the node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadMetadataConfig} + */ +public final class WorkloadMetadataConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadMetadataConfig) + WorkloadMetadataConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WorkloadMetadataConfig.newBuilder() to construct. + private WorkloadMetadataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkloadMetadataConfig() { + nodeMetadata_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkloadMetadataConfig( + 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 8: { + int rawValue = input.readEnum(); + + nodeMetadata_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadMetadataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadMetadataConfig.class, com.google.container.v1beta1.WorkloadMetadataConfig.Builder.class); + } + + /** + *
+   * NodeMetadata is the configuration for if and how to expose the node
+   * metadata to the workload running on the node.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata} + */ + public enum NodeMetadata + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Prevent workloads not in hostNetwork from accessing certain VM metadata,
+     * specifically kube-env, which contains Kubelet credentials, and the
+     * instance identity token.
+     * Metadata concealment is a temporary security solution available while the
+     * bootstrapping process for cluster nodes is being redesigned with
+     * significant security improvements.  This feature is scheduled to be
+     * deprecated in the future and later removed.
+     * 
+ * + * SECURE = 1; + */ + SECURE(1), + /** + *
+     * Expose all VM metadata to pods.
+     * 
+ * + * EXPOSE = 2; + */ + EXPOSE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Prevent workloads not in hostNetwork from accessing certain VM metadata,
+     * specifically kube-env, which contains Kubelet credentials, and the
+     * instance identity token.
+     * Metadata concealment is a temporary security solution available while the
+     * bootstrapping process for cluster nodes is being redesigned with
+     * significant security improvements.  This feature is scheduled to be
+     * deprecated in the future and later removed.
+     * 
+ * + * SECURE = 1; + */ + public static final int SECURE_VALUE = 1; + /** + *
+     * Expose all VM metadata to pods.
+     * 
+ * + * EXPOSE = 2; + */ + public static final int EXPOSE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NodeMetadata valueOf(int value) { + return forNumber(value); + } + + public static NodeMetadata forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return SECURE; + case 2: return EXPOSE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NodeMetadata> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodeMetadata findValueByNumber(int number) { + return NodeMetadata.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.WorkloadMetadataConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final NodeMetadata[] VALUES = values(); + + public static NodeMetadata valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NodeMetadata(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata) + } + + public static final int NODE_METADATA_FIELD_NUMBER = 1; + private int nodeMetadata_; + /** + *
+   * NodeMetadata is the configuration for how to expose the node metadata to
+   * the workload running on the node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1; + */ + public int getNodeMetadataValue() { + return nodeMetadata_; + } + /** + *
+   * NodeMetadata is the configuration for how to expose the node metadata to
+   * the workload running on the node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1; + */ + public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.valueOf(nodeMetadata_); + return result == null ? com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nodeMetadata_ != com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNSPECIFIED.getNumber()) { + output.writeEnum(1, nodeMetadata_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeMetadata_ != com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, nodeMetadata_); + } + 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.container.v1beta1.WorkloadMetadataConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.WorkloadMetadataConfig other = (com.google.container.v1beta1.WorkloadMetadataConfig) obj; + + boolean result = true; + result = result && nodeMetadata_ == other.nodeMetadata_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + nodeMetadata_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.WorkloadMetadataConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * WorkloadMetadataConfig defines the metadata configuration to expose to
+   * workloads on the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadMetadataConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadMetadataConfig) + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadMetadataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadMetadataConfig.class, com.google.container.v1beta1.WorkloadMetadataConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.WorkloadMetadataConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + nodeMetadata_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig build() { + com.google.container.v1beta1.WorkloadMetadataConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig buildPartial() { + com.google.container.v1beta1.WorkloadMetadataConfig result = new com.google.container.v1beta1.WorkloadMetadataConfig(this); + result.nodeMetadata_ = nodeMetadata_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.WorkloadMetadataConfig) { + return mergeFrom((com.google.container.v1beta1.WorkloadMetadataConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WorkloadMetadataConfig other) { + if (other == com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance()) return this; + if (other.nodeMetadata_ != 0) { + setNodeMetadataValue(other.getNodeMetadataValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.WorkloadMetadataConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.WorkloadMetadataConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int nodeMetadata_ = 0; + /** + *
+     * NodeMetadata is the configuration for how to expose the node metadata to
+     * the workload running on the node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1; + */ + public int getNodeMetadataValue() { + return nodeMetadata_; + } + /** + *
+     * NodeMetadata is the configuration for how to expose the node metadata to
+     * the workload running on the node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1; + */ + public Builder setNodeMetadataValue(int value) { + nodeMetadata_ = value; + onChanged(); + return this; + } + /** + *
+     * NodeMetadata is the configuration for how to expose the node metadata to
+     * the workload running on the node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1; + */ + public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.valueOf(nodeMetadata_); + return result == null ? com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNRECOGNIZED : result; + } + /** + *
+     * NodeMetadata is the configuration for how to expose the node metadata to
+     * the workload running on the node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1; + */ + public Builder setNodeMetadata(com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeMetadata_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * NodeMetadata is the configuration for how to expose the node metadata to
+     * the workload running on the node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1; + */ + public Builder clearNodeMetadata() { + + nodeMetadata_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.WorkloadMetadataConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadMetadataConfig) + private static final com.google.container.v1beta1.WorkloadMetadataConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadMetadataConfig(); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadMetadataConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkloadMetadataConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java new file mode 100644 index 000000000000..390d43d4e213 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java @@ -0,0 +1,28 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface WorkloadMetadataConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadMetadataConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * NodeMetadata is the configuration for how to expose the node metadata to
+   * the workload running on the node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1; + */ + int getNodeMetadataValue(); + /** + *
+   * NodeMetadata is the configuration for how to expose the node metadata to
+   * the workload running on the node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1; + */ + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata(); +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/google-api-grpc/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto index 4636fdcc5d60..6cec82daae0f 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,25 +19,35 @@ package google.container.v1; import "google/api/annotations.proto"; import "google/protobuf/empty.proto"; +option csharp_namespace = "Google.Cloud.Container.V1"; option go_package = "google.golang.org/genproto/googleapis/container/v1;container"; option java_multiple_files = true; option java_outer_classname = "ClusterServiceProto"; option java_package = "com.google.container.v1"; -option csharp_namespace = "Google.Cloud.Container.V1"; option php_namespace = "Google\\Cloud\\Container\\V1"; -// Google Container Engine Cluster Manager v1 +// Google Kubernetes Engine Cluster Manager v1 service ClusterManager { // Lists all clusters owned by a project in either the specified zone or all // zones. rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters" }; + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/clusters" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/clusters" + } + }; } // Gets the details of a specific cluster. rpc GetCluster(GetClusterRequest) returns (Cluster) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/clusters/*}" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }; } // Creates a cluster, consisting of the specified number and type of Google @@ -54,54 +64,124 @@ service ClusterManager { // Finally, an entry is added to the project's global metadata indicating // which CIDR range is being used by the cluster. rpc CreateCluster(CreateClusterRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters" body: "*" }; + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/clusters" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters" + body: "*" + } + }; } // Updates the settings of a specific cluster. rpc UpdateCluster(UpdateClusterRequest) returns (Operation) { - option (google.api.http) = { put: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" body: "*" }; + option (google.api.http) = { + put: "/v1/{name=projects/*/locations/*/clusters/*}" + body: "*" + additional_bindings { + put: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + body: "*" + } + }; } - // Updates the version and/or image type of a specific node pool. + // Updates the version and/or image type for a specific node pool. rpc UpdateNodePool(UpdateNodePoolRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update" body: "*" }; + option (google.api.http) = { + put: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update" + body: "*" + } + }; } - // Sets the autoscaling settings of a specific node pool. + // Sets the autoscaling settings for a specific node pool. rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling" + body: "*" + } + }; } - // Sets the logging service of a specific cluster. + // Sets the logging service for a specific cluster. rpc SetLoggingService(SetLoggingServiceRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setLogging" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging" + body: "*" + } + }; } - // Sets the monitoring service of a specific cluster. + // Sets the monitoring service for a specific cluster. rpc SetMonitoringService(SetMonitoringServiceRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring" + body: "*" + } + }; } - // Sets the addons of a specific cluster. + // Sets the addons for a specific cluster. rpc SetAddonsConfig(SetAddonsConfigRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setAddons" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons" + body: "*" + } + }; } - // Sets the locations of a specific cluster. + // Sets the locations for a specific cluster. rpc SetLocations(SetLocationsRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setLocations" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations" + body: "*" + } + }; } - // Updates the master of a specific cluster. + // Updates the master for a specific cluster. rpc UpdateMaster(UpdateMasterRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:updateMaster" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master" + body: "*" + } + }; } // Used to set master auth materials. Currently supports :- - // Changing the admin password of a specific cluster. + // Changing the admin password for a specific cluster. // This can be either via password generation or explicitly set the password. rpc SetMasterAuth(SetMasterAuthRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth" + body: "*" + } + }; } // Deletes the cluster, including the Kubernetes endpoint and all worker @@ -114,93 +194,205 @@ service ClusterManager { // (e.g. load balancer resources) will not be deleted if they weren't present // at the initial create time. rpc DeleteCluster(DeleteClusterRequest) returns (Operation) { - option (google.api.http) = { delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" }; + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/clusters/*}" + additional_bindings { + delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }; } // Lists all operations in a project in a specific zone or all zones. rpc ListOperations(ListOperationsRequest) returns (ListOperationsResponse) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/operations" }; + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/operations" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/operations" + } + }; } // Gets the specified operation. rpc GetOperation(GetOperationRequest) returns (Operation) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/operations/*}" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" + } + }; } // Cancels the specified operation. rpc CancelOperation(CancelOperationRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/operations/*}:cancel" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel" + body: "*" + } + }; } - // Returns configuration info about the Container Engine service. + // Returns configuration info about the Kubernetes Engine service. rpc GetServerConfig(GetServerConfigRequest) returns (ServerConfig) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/serverconfig" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*}/serverConfig" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/serverconfig" + } + }; } // Lists the node pools for a cluster. rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" }; + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + } + }; } // Retrieves the node pool requested. rpc GetNodePool(GetNodePoolRequest) returns (NodePool) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }; } // Creates a node pool for a cluster. rpc CreateNodePool(CreateNodePoolRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" body: "*" }; + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + body: "*" + } + }; } // Deletes a node pool from a cluster. rpc DeleteNodePool(DeleteNodePoolRequest) returns (Operation) { - option (google.api.http) = { delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" }; + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + additional_bindings { + delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }; } // Roll back the previously Aborted or Failed NodePool upgrade. // This will be an no-op if the last upgrade successfully completed. rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback" + body: "*" + } + }; } // Sets the NodeManagement options for a node pool. rpc SetNodePoolManagement(SetNodePoolManagementRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement" + body: "*" + } + }; } // Sets labels on a cluster. rpc SetLabels(SetLabelsRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels" + body: "*" + } + }; } // Enables or disables the ABAC authorization mechanism on a cluster. rpc SetLegacyAbac(SetLegacyAbacRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac" + body: "*" + } + }; } // Start master IP rotation. rpc StartIPRotation(StartIPRotationRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation" + body: "*" + } + }; } // Completes master IP rotation. rpc CompleteIPRotation(CompleteIPRotationRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation" + body: "*" + } + }; } - // Sets the size of a specific node pool. + // Sets the size for a specific node pool. rpc SetNodePoolSize(SetNodePoolSizeRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize" + body: "*" + } + }; } // Enables/Disables Network Policy for a cluster. rpc SetNetworkPolicy(SetNetworkPolicyRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy" + body: "*" + } + }; } // Sets the maintenance policy for a cluster. rpc SetMaintenancePolicy(SetMaintenancePolicyRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy" + body: "*" + } + }; } } @@ -245,8 +437,18 @@ message NodeConfig { // Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes // in length. These are reflected as part of a URL in the metadata server. // Additionally, to avoid ambiguity, keys must not conflict with any other - // metadata keys for the project or be one of the four reserved keys: - // "instance-template", "kube-env", "startup-script", and "user-data" + // metadata keys for the project or be one of the reserved keys: + // "cluster-location" + // "cluster-name" + // "cluster-uid" + // "configure-sh" + // "enable-os-login" + // "gci-update-strategy" + // "gci-ensure-gke-docker" + // "instance-template" + // "kube-env" + // "startup-script" + // "user-data" // // Values are free-form strings, and only have meaning as interpreted by // the image running in the instance. The only restriction placed on them is @@ -293,12 +495,18 @@ message NodeConfig { // support for GPUs. repeated AcceleratorConfig accelerators = 11; + // Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') + // + // If unspecified, the default disk type is 'pd-standard' + string disk_type = 12; + // Minimum CPU platform to be used by this instance. The instance may be // scheduled on the specified or newer CPU platform. Applicable values are the // friendly names of CPU platforms, such as // minCpuPlatform: "Intel Haswell" or // minCpuPlatform: "Intel Sandy Bridge". For more - // information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // information, read [how to specify min CPU + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) string min_cpu_platform = 13; } @@ -317,8 +525,9 @@ message MasterAuth { // must be non-empty. string password = 2; - // Configuration for client certificate authentication on the cluster. If no - // configuration is specified, a client certificate is issued. + // Configuration for client certificate authentication on the cluster. For + // clusters before v1.12, if no configuration is specified, a client + // certificate is issued. ClientCertificateConfig client_certificate_config = 3; // [Output only] Base64-encoded public certificate that is the root of @@ -394,7 +603,6 @@ message NetworkPolicyConfig { bool disabled = 1; } -// Master authorized networks is a Beta feature. // Configuration options for the master authorized networks feature. Enabled // master authorized networks will disallow all external traffic to access // Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -462,13 +670,13 @@ message IPAllocationPolicy { string subnetwork_name = 3; // This field is deprecated, use cluster_ipv4_cidr_block. - string cluster_ipv4_cidr = 4; + string cluster_ipv4_cidr = 4 [deprecated = true]; // This field is deprecated, use node_ipv4_cidr_block. - string node_ipv4_cidr = 5; + string node_ipv4_cidr = 5 [deprecated = true]; // This field is deprecated, use services_ipv4_cidr_block. - string services_ipv4_cidr = 6; + string services_ipv4_cidr = 6 [deprecated = true]; // The name of the secondary range to be used for the cluster CIDR // block. The secondary range will be used for pod IP @@ -539,7 +747,7 @@ message IPAllocationPolicy { string services_ipv4_cidr_block = 11; } -// A Google Container Engine cluster. +// A Google Kubernetes Engine cluster. message Cluster { // The current status of the cluster. enum Status { @@ -564,6 +772,10 @@ message Cluster { // The ERROR state indicates the cluster may be unusable. Details // can be found in the `statusMessage` field. ERROR = 5; + + // The DEGRADED state indicates the cluster requires user action to restore + // full functionality. Details can be found in the `statusMessage` field. + DEGRADED = 6; } // The name of this cluster. The name must be unique within this project @@ -672,20 +884,23 @@ message Cluster { // Configuration for cluster IP allocation. IPAllocationPolicy ip_allocation_policy = 20; - // Master authorized networks is a Beta feature. // The configuration options for master authorized networks feature. MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; // Configure the maintenance policy for this cluster. MaintenancePolicy maintenance_policy = 23; + // Configuration for cluster networking. + NetworkConfig network_config = 27; + // [Output only] Server-defined URL for the resource. string self_link = 100; // [Output only] The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 101; + // This field is deprecated, use location instead. + string zone = 101 [deprecated = true]; // [Output only] The IP address of this cluster's master endpoint. // The endpoint can be accessed from the internet at @@ -699,15 +914,26 @@ message Cluster { // found in validMasterVersions returned by getServerConfig. The version can // be upgraded over time; such upgrades are reflected in // currentMasterVersion and currentNodeVersion. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "","-": picks the default Kubernetes version string initial_cluster_version = 103; // [Output only] The current software version of the master endpoint. string current_master_version = 104; - // [Output only] The current version of the node software components. - // If they are currently at multiple versions because they're in the process - // of being upgraded, this reflects the minimum version of all nodes. - string current_node_version = 105; + // [Output only] Deprecated, use + // [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool) + // instead. The current version of the node software components. If they are + // currently at multiple versions because they're in the process of being + // upgraded, this reflects the minimum version of all nodes. + string current_node_version = 105 [deprecated = true]; // [Output only] The time the cluster was created, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. @@ -733,7 +959,7 @@ message Cluster { string services_ipv4_cidr = 110; // Deprecated. Use node_pools.instance_group_urls. - repeated string instance_group_urls = 111; + repeated string instance_group_urls = 111 [deprecated = true]; // [Output only] The number of nodes currently in the cluster. int32 current_node_count = 112; @@ -741,6 +967,12 @@ message Cluster { // [Output only] The time the cluster will be automatically // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. string expire_time = 113; + + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/regions-zones/regions-zones#available) or + // [region](/compute/docs/regions-zones/regions-zones#available) in which + // the cluster resides. + string location = 114; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -748,8 +980,16 @@ message Cluster { // provided. message ClusterUpdate { // The Kubernetes version to change the nodes to (typically an - // upgrade). Use `-` to upgrade to the latest version supported by - // the server. + // upgrade). + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the Kubernetes master version string desired_node_version = 4; // The monitoring service the cluster should use to write metrics. @@ -787,13 +1027,19 @@ message ClusterUpdate { // This list must always include the cluster's primary zone. repeated string desired_locations = 10; - // Master authorized networks is a Beta feature. // The desired configuration options for master authorized networks feature. MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - // The Kubernetes version to change the master to. The only valid value is the - // latest supported version. Use "-" to have the server automatically select - // the latest version. + // The Kubernetes version to change the master to. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the default Kubernetes version string desired_master_version = 100; } @@ -878,7 +1124,8 @@ message Operation { // The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the operation // is taking place. - string zone = 2; + // This field is deprecated, use location instead. + string zone = 2 [deprecated = true]; // The operation type. Type operation_type = 3; @@ -898,6 +1145,12 @@ message Operation { // Server-defined URL for the target of the operation. string target_link = 7; + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/regions-zones/regions-zones#available) or + // [region](/compute/docs/regions-zones/regions-zones#available) in which + // the cluster resides. + string location = 9; + // [Output only] The time the operation started, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. string start_time = 10; @@ -909,113 +1162,162 @@ message Operation { // CreateClusterRequest creates a cluster. message CreateClusterRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; // A [cluster // resource](/container-engine/reference/rest/v1/projects.zones.clusters) Cluster cluster = 3; + + // The parent (project and location) where the cluster will be created. + // Specified in the format 'projects/*/locations/*'. + string parent = 5; } // GetClusterRequest gets the settings of a cluster. message GetClusterRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to retrieve. - string cluster_id = 3; + // Deprecated. The name of the cluster to retrieve. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster) of the cluster to retrieve. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; } // UpdateClusterRequest updates the settings of a cluster. message UpdateClusterRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // A description of the update. ClusterUpdate update = 4; + + // The name (project, location, cluster) of the cluster to update. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; } // UpdateNodePoolRequests update a node pool's image and/or version. message UpdateNodePoolRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The name of the node pool to upgrade. - string node_pool_id = 4; + // Deprecated. The name of the node pool to upgrade. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; // The Kubernetes version to change the nodes to (typically an - // upgrade). Use `-` to upgrade to the latest version supported by - // the server. + // upgrade). + // + // Users may specify either explicit versions offered by Kubernetes Engine or + // version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the Kubernetes master version string node_version = 5; // The desired image type for the node pool. string image_type = 6; + + // The name (project, location, cluster, node pool) of the node pool to + // update. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 8; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. message SetNodePoolAutoscalingRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The name of the node pool to upgrade. - string node_pool_id = 4; + // Deprecated. The name of the node pool to upgrade. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; // Autoscaling configuration for the node pool. NodePoolAutoscaling autoscaling = 5; + + // The name (project, location, cluster, node pool) of the node pool to set + // autoscaler settings. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; } // SetLoggingServiceRequest sets the logging service of a cluster. message SetLoggingServiceRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. + // This field has been deprecated and replaced by the name field. string zone = 2; - // The name of the cluster to upgrade. - string cluster_id = 3; + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // The logging service the cluster should use to write metrics. // Currently available options: @@ -1023,21 +1325,28 @@ message SetLoggingServiceRequest { // * "logging.googleapis.com" - the Google Cloud Logging service // * "none" - no metrics will be exported from the cluster string logging_service = 4; + + // The name (project, location, cluster) of the cluster to set logging. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; } // SetMonitoringServiceRequest sets the monitoring service of a cluster. message SetMonitoringServiceRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // The monitoring service the cluster should use to write metrics. // Currently available options: @@ -1045,40 +1354,54 @@ message SetMonitoringServiceRequest { // * "monitoring.googleapis.com" - the Google Cloud Monitoring service // * "none" - no metrics will be exported from the cluster string monitoring_service = 4; + + // The name (project, location, cluster) of the cluster to set monitoring. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; } // SetAddonsConfigRequest sets the addons associated with the cluster. message SetAddonsConfigRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // The desired configurations for the various addons available to run in the // cluster. AddonsConfig addons_config = 4; + + // The name (project, location, cluster) of the cluster to set addons. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; } // SetLocationsRequest sets the locations of the cluster. message SetLocationsRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // The desired list of Google Compute Engine // [locations](/compute/docs/zones#available) in which the cluster's nodes @@ -1088,26 +1411,44 @@ message SetLocationsRequest { // // This list must always include the cluster's primary zone. repeated string locations = 4; + + // The name (project, location, cluster) of the cluster to set locations. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; } // UpdateMasterRequest updates the master of the cluster. message UpdateMasterRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The Kubernetes version to change the master to. The only valid value is the - // latest supported version. Use "-" to have the server automatically select - // the latest version. + // The Kubernetes version to change the master to. + // + // Users may specify either explicit versions offered by Kubernetes Engine or + // version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the default Kubernetes version string master_version = 4; + + // The name (project, location, cluster) of the cluster to update. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; } // SetMasterAuthRequest updates the admin password of a cluster. @@ -1130,50 +1471,71 @@ message SetMasterAuthRequest { SET_USERNAME = 3; } - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // The exact form of action to be taken on the master auth. Action action = 4; // A description of the update. MasterAuth update = 5; + + // The name (project, location, cluster) of the cluster to set auth. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; } // DeleteClusterRequest deletes a cluster. message DeleteClusterRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to delete. - string cluster_id = 3; + // Deprecated. The name of the cluster to delete. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster) of the cluster to delete. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 4; } // ListClustersRequest lists clusters. message ListClustersRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides, or "-" for all zones. - string zone = 2; + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // The parent (project and location) where the clusters will be listed. + // Specified in the format 'projects/*/locations/*'. + // Location "-" matches all zones and all regions. + string parent = 4; } // ListClustersResponse is the result of ListClustersRequest. @@ -1189,42 +1551,63 @@ message ListClustersResponse { // GetOperationRequest gets a single operation. message GetOperationRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The server-assigned `name` of the operation. + // This field has been deprecated and replaced by the name field. + string operation_id = 3 [deprecated = true]; - // The server-assigned `name` of the operation. - string operation_id = 3; + // The name (project, location, operation id) of the operation to get. + // Specified in the format 'projects/*/locations/*/operations/*'. + string name = 5; } // ListOperationsRequest lists operations. message ListOperationsRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; - - // The name of the Google Compute Engine [zone](/compute/docs/zones#available) - // to return operations for, or `-` for all zones. - string zone = 2; + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) to return operations for, or `-` for + // all zones. This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // The parent (project and location) where the operations will be listed. + // Specified in the format 'projects/*/locations/*'. + // Location "-" matches all zones and all regions. + string parent = 4; } // CancelOperationRequest cancels a single operation. message CancelOperationRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the operation resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The server-assigned `name` of the operation. + // This field has been deprecated and replaced by the name field. + string operation_id = 3 [deprecated = true]; - // The server-assigned `name` of the operation. - string operation_id = 3; + // The name (project, location, operation id) of the operation to cancel. + // Specified in the format 'projects/*/locations/*/operations/*'. + string name = 4; } // ListOperationsResponse is the result of ListOperationsRequest. @@ -1237,18 +1620,24 @@ message ListOperationsResponse { repeated string missing_zones = 2; } -// Gets the current Container Engine service configuration. +// Gets the current Kubernetes Engine service configuration. message GetServerConfigRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine [zone](/compute/docs/zones#available) - // to return operations for. - string zone = 2; + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) to return operations for. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // The name (project and location) of the server config to get + // Specified in the format 'projects/*/locations/*'. + string name = 4; } -// Container Engine service configuration. +// Kubernetes Engine service configuration. message ServerConfig { // Version of Kubernetes the service deploys by default. string default_cluster_version = 1; @@ -1268,71 +1657,104 @@ message ServerConfig { // CreateNodePoolRequest creates a node pool for a cluster. message CreateNodePoolRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the parent field. + string cluster_id = 3 [deprecated = true]; // The node pool to create. NodePool node_pool = 4; + + // The parent (project, location, cluster id) where the node pool will be + // created. Specified in the format + // 'projects/*/locations/*/clusters/*'. + string parent = 6; } // DeleteNodePoolRequest deletes a node pool for a cluster. message DeleteNodePoolRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The name of the node pool to delete. - string node_pool_id = 4; + // Deprecated. The name of the node pool to delete. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The name (project, location, cluster, node pool id) of the node pool to + // delete. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; } // ListNodePoolsRequest lists the node pool(s) for a cluster. message ListNodePoolsRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the parent field. + string cluster_id = 3 [deprecated = true]; + + // The parent (project, location, cluster id) where the node pools will be + // listed. Specified in the format 'projects/*/locations/*/clusters/*'. + string parent = 5; } // GetNodePoolRequest retrieves a node pool for a cluster. message GetNodePoolRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The name of the node pool. - string node_pool_id = 4; + // Deprecated. The name of the node pool. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The name (project, location, cluster, node pool id) of the node pool to + // get. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; } // NodePool contains the name and configuration for a cluster's node pool. @@ -1473,65 +1895,92 @@ message DailyMaintenanceWindow { // SetNodePoolManagementRequest sets the node management properties of a node // pool. message SetNodePoolManagementRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to update. - string cluster_id = 3; + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The name of the node pool to update. - string node_pool_id = 4; + // Deprecated. The name of the node pool to update. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; // NodeManagement configuration for the node pool. NodeManagement management = 5; + + // The name (project, location, cluster, node pool id) of the node pool to set + // management properties. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 7; } // SetNodePoolSizeRequest sets the size a node // pool. message SetNodePoolSizeRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to update. - string cluster_id = 3; + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The name of the node pool to update. - string node_pool_id = 4; + // Deprecated. The name of the node pool to update. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; // The desired node count for the pool. int32 node_count = 5; + + // The name (project, location, cluster, node pool id) of the node pool to set + // size. + // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 7; } // RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed // NodePool upgrade. This will be an no-op if the last upgrade successfully // completed. message RollbackNodePoolUpgradeRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to rollback. - string cluster_id = 3; + // Deprecated. The name of the cluster to rollback. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The name of the node pool to rollback. - string node_pool_id = 4; + // Deprecated. The name of the node pool to rollback. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The name (project, location, cluster, node pool id) of the node poll to + // rollback upgrade. + // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; } // ListNodePoolsResponse is the result of ListNodePoolsRequest. @@ -1559,78 +2008,109 @@ message NodePoolAutoscaling { // Engine cluster, which will in turn set them for Google Compute Engine // resources used by that cluster message SetLabelsRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // The labels to set for that cluster. map resource_labels = 4; // The fingerprint of the previous set of labels for this resource, // used to detect conflicts. The fingerprint is initially generated by - // Container Engine and changes after every request to modify or update + // Kubernetes Engine and changes after every request to modify or update // labels. You must always provide an up-to-date fingerprint hash when // updating or changing labels. Make a get() request to the // resource to get the latest fingerprint. string label_fingerprint = 5; + + // The name (project, location, cluster id) of the cluster to set labels. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; } // SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for // a cluster. message SetLegacyAbacRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to update. - string cluster_id = 3; + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // Whether ABAC authorization will be enabled in the cluster. bool enabled = 4; + + // The name (project, location, cluster id) of the cluster to set legacy abac. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; } // StartIPRotationRequest creates a new IP for the cluster and then performs // a node upgrade on each node pool to point to the new IP. message StartIPRotationRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster id) of the cluster to start IP + // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; + + // Whether to rotate credentials during IP rotation. + bool rotate_credentials = 7; } // CompleteIPRotationRequest moves the cluster master back into single-IP mode. message CompleteIPRotationRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster id) of the cluster to complete IP + // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; } // AcceleratorConfig represents a Hardware Accelerator request. @@ -1645,20 +2125,27 @@ message AcceleratorConfig { // SetNetworkPolicyRequest enables/disables network policy for a cluster. message SetNetworkPolicyRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // Configuration options for the NetworkPolicy feature. NetworkPolicy network_policy = 4; + + // The name (project, location, cluster id) of the cluster to set networking + // policy. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; } // SetMaintenancePolicyRequest sets the maintenance policy for a cluster. @@ -1678,4 +2165,23 @@ message SetMaintenancePolicyRequest { // The maintenance policy to be set for the cluster. An empty field // clears the existing maintenance policy. MaintenancePolicy maintenance_policy = 4; + + // The name (project, location, cluster id) of the cluster to set maintenance + // policy. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; +} + +// NetworkConfig reports the relative names of network & subnetwork. +message NetworkConfig { + // Output only. The relative name of the Google Compute Engine + // [network][google.container.v1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which + // the cluster is connected. + // Example: projects/my-project/global/networks/my-network + string network = 1; + + // Output only. The relative name of the Google Compute Engine + // [subnetwork](/compute/docs/vpc) to which the cluster is connected. + // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + string subnetwork = 2; } diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/proto/google/container/v1alpha1/cluster_service.proto b/google-api-grpc/proto-google-cloud-container-v1/src/main/proto/google/container/v1alpha1/cluster_service.proto new file mode 100644 index 000000000000..e79d247dc64e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/proto/google/container/v1alpha1/cluster_service.proto @@ -0,0 +1,2545 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.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.container.v1alpha1; + +import "google/api/annotations.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/protobuf/empty.proto"; + +option csharp_namespace = "Google.Cloud.Container.V1Alpha1"; +option go_package = "google.golang.org/genproto/googleapis/container/v1alpha1;container"; +option java_multiple_files = true; +option java_outer_classname = "ClusterServiceProto"; +option java_package = "com.google.container.v1alpha1"; +option php_namespace = "Google\\Cloud\\Container\\V1alpha1"; + + +// Google Kubernetes Engine Cluster Manager v1alpha1 +service ClusterManager { + // Lists all clusters owned by a project in either the specified zone or all + // zones. + rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*}/clusters" + additional_bindings { + get: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters" + } + }; + } + + // Gets the details for a specific cluster. + rpc GetCluster(GetClusterRequest) returns (Cluster) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/clusters/*}" + additional_bindings { + get: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }; + } + + // Creates a cluster, consisting of the specified number and type of Google + // Compute Engine instances. + // + // By default, the cluster is created in the project's + // [default network](/compute/docs/networks-and-firewalls#networks). + // + // One firewall is added for the cluster. After cluster creation, + // the cluster creates routes for each node to allow the containers + // on that node to communicate with all other instances in the + // cluster. + // + // Finally, an entry is added to the project's global metadata indicating + // which CIDR range is being used by the cluster. + rpc CreateCluster(CreateClusterRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{parent=projects/*/locations/*}/clusters" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters" + body: "*" + } + }; + } + + // Updates the settings for a specific cluster. + rpc UpdateCluster(UpdateClusterRequest) returns (Operation) { + option (google.api.http) = { + put: "/v1alpha1/{name=projects/*/locations/*/clusters/*}" + body: "*" + additional_bindings { + put: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + body: "*" + } + }; + } + + // Updates the version and/or iamge type of a specific node pool. + rpc UpdateNodePool(UpdateNodePoolRequest) returns (Operation) { + option (google.api.http) = { + put: "/v1alpha1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update" + body: "*" + } + }; + } + + // Sets the autoscaling settings of a specific node pool. + rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling" + body: "*" + } + }; + } + + // Sets the logging service for a specific cluster. + rpc SetLoggingService(SetLoggingServiceRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:setLogging" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging" + body: "*" + } + }; + } + + // Sets the monitoring service for a specific cluster. + rpc SetMonitoringService(SetMonitoringServiceRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:setMonitoring" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring" + body: "*" + } + }; + } + + // Sets the addons for a specific cluster. + rpc SetAddonsConfig(SetAddonsConfigRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:setAddons" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons" + body: "*" + } + }; + } + + // Sets the locations for a specific cluster. + rpc SetLocations(SetLocationsRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:setLocations" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations" + body: "*" + } + }; + } + + // Updates the master for a specific cluster. + rpc UpdateMaster(UpdateMasterRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:updateMaster" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master" + body: "*" + } + }; + } + + // Used to set master auth materials. Currently supports :- + // Changing the admin password for a specific cluster. + // This can be either via password generation or explicitly set. + // Modify basic_auth.csv and reset the K8S API server. + rpc SetMasterAuth(SetMasterAuthRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:setMasterAuth" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth" + body: "*" + } + }; + } + + // Deletes the cluster, including the Kubernetes endpoint and all worker + // nodes. + // + // Firewalls and routes that were configured during cluster creation + // are also deleted. + // + // Other Google Compute Engine resources that might be in use by the cluster + // (e.g. load balancer resources) will not be deleted if they weren't present + // at the initial create time. + rpc DeleteCluster(DeleteClusterRequest) returns (Operation) { + option (google.api.http) = { + delete: "/v1alpha1/{name=projects/*/locations/*/clusters/*}" + additional_bindings { + delete: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }; + } + + // Lists all operations in a project in a specific zone or all zones. + rpc ListOperations(ListOperationsRequest) returns (ListOperationsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*}/operations" + additional_bindings { + get: "/v1alpha1/projects/{project_id}/zones/{zone}/operations" + } + }; + } + + // Gets the specified operation. + rpc GetOperation(GetOperationRequest) returns (Operation) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/operations/*}" + additional_bindings { + get: "/v1alpha1/projects/{project_id}/zones/{zone}/operations/{operation_id}" + } + }; + } + + // Cancels the specified operation. + rpc CancelOperation(CancelOperationRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/operations/*}:cancel" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel" + body: "*" + } + }; + } + + // Returns configuration info about the Kubernetes Engine service. + rpc GetServerConfig(GetServerConfigRequest) returns (ServerConfig) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*}/serverConfig" + additional_bindings { + get: "/v1alpha1/projects/{project_id}/zones/{zone}/serverconfig" + } + }; + } + + // Lists the node pools for a cluster. + rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/nodePools" + additional_bindings { + get: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + } + }; + } + + // Retrieves the node pool requested. + rpc GetNodePool(GetNodePoolRequest) returns (NodePool) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + additional_bindings { + get: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }; + } + + // Creates a node pool for a cluster. + rpc CreateNodePool(CreateNodePoolRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/nodePools" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + body: "*" + } + }; + } + + // Deletes a node pool from a cluster. + rpc DeleteNodePool(DeleteNodePoolRequest) returns (Operation) { + option (google.api.http) = { + delete: "/v1alpha1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + additional_bindings { + delete: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }; + } + + // Roll back the previously Aborted or Failed NodePool upgrade. + // This will be an no-op if the last upgrade successfully completed. + rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback" + body: "*" + } + }; + } + + // Sets the NodeManagement options for a node pool. + rpc SetNodePoolManagement(SetNodePoolManagementRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement" + body: "*" + } + }; + } + + // Sets labels on a cluster. + rpc SetLabels(SetLabelsRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:setResourceLabels" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels" + body: "*" + } + }; + } + + // Enables or disables the ABAC authorization mechanism on a cluster. + rpc SetLegacyAbac(SetLegacyAbacRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac" + body: "*" + } + }; + } + + // Start master IP rotation. + rpc StartIPRotation(StartIPRotationRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:startIpRotation" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation" + body: "*" + } + }; + } + + // Completes master IP rotation. + rpc CompleteIPRotation(CompleteIPRotationRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:completeIpRotation" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation" + body: "*" + } + }; + } + + // Sets the size for a specific node pool. + rpc SetNodePoolSize(SetNodePoolSizeRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize" + body: "*" + } + }; + } + + // Enables/Disables Network Policy for a cluster. + rpc SetNetworkPolicy(SetNetworkPolicyRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy" + body: "*" + } + }; + } + + // Sets the maintenance policy for a cluster. + rpc SetMaintenancePolicy(SetMaintenancePolicyRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy" + body: "*" + additional_bindings { + post: "/v1alpha1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy" + body: "*" + } + }; + } + + // Sets the access control policy for a resource. Replaces any existing + // policy. + // + // Authorization requires the Google IAM permission + // 'container.clusters.setIamPolicy' on the specified resource. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1alpha1/{resource=projects/**}:setIamPolicy" + body: "*" + }; + } + + // Gets the access control policy for a resource. Returns NOT_FOUND error if + // the resource does not exist. Returns an empty policy if the resource exists + // but does not have a policy set. + // + // Authorization requires the Google IAM permission + // `container.clusters.getIamPolicy` on the specified resource. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1alpha1/{resource=projects/**}:getIamPolicy" + body: "*" + }; + } + + // Returns permissions that a caller has on the specified resource. + // If the resource does not exist, this will return an empty set of + // permissions, not a NOT_FOUND error. + // + // There is no permission required to make this API call. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v1alpha1/{resource=projects/**}:testIamPermissions" + body: "*" + }; + } + + // Lists subnetworks that are usable for creating clusters in a project. + rpc ListUsableSubnetworks(ListUsableSubnetworksRequest) returns (ListUsableSubnetworksResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*}/aggregated/usableSubnetworks" + }; + } +} + +// Parameters that describe the nodes in a cluster. +message NodeConfig { + // The name of a Google Compute Engine [machine + // type](/compute/docs/machine-types) (e.g. + // `n1-standard-1`). + // + // If unspecified, the default machine type is + // `n1-standard-1`. + string machine_type = 1; + + // Size of the disk attached to each node, specified in GB. + // The smallest allowed disk size is 10GB. + // + // If unspecified, the default disk size is 100GB. + int32 disk_size_gb = 2; + + // The set of Google API scopes to be made available on all of the + // node VMs under the "default" service account. + // + // The following scopes are recommended, but not required, and by default are + // not included: + // + // * `https://www.googleapis.com/auth/compute` is required for mounting + // persistent storage on your nodes. + // * `https://www.googleapis.com/auth/devstorage.read_only` is required for + // communicating with **gcr.io** + // (the [Google Container Registry](/container-registry/)). + // + // If unspecified, no scopes are added, unless Cloud Logging or Cloud + // Monitoring are enabled, in which case their required scopes will be added. + repeated string oauth_scopes = 3; + + // The Google Cloud Platform Service Account to be used by the node VMs. If + // no Service Account is specified, the "default" service account is used. + string service_account = 9; + + // The metadata key/value pairs assigned to instances in the cluster. + // + // Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes + // in length. These are reflected as part of a URL in the metadata server. + // Additionally, to avoid ambiguity, keys must not conflict with any other + // metadata keys for the project or be one of the reserved keys: + // "cluster-location" + // "cluster-name" + // "cluster-uid" + // "configure-sh" + // "enable-os-login" + // "gci-update-strategy" + // "gci-ensure-gke-docker" + // "instance-template" + // "kube-env" + // "startup-script" + // "user-data" + // + // Values are free-form strings, and only have meaning as interpreted by + // the image running in the instance. The only restriction placed on them is + // that each value's size must be less than or equal to 32 KB. + // + // The total size of all keys and values must be less than 512 KB. + map metadata = 4; + + // The image type to use for this node. Note that for a given image type, + // the latest version of it will be used. + string image_type = 5; + + // The map of Kubernetes labels (key/value pairs) to be applied to each node. + // These will added in addition to any default label(s) that + // Kubernetes may apply to the node. + // In case of conflict in label keys, the applied set may differ depending on + // the Kubernetes version -- it's best to assume the behavior is undefined + // and conflicts should be avoided. + // For more information, including usage and the valid values, see: + // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + map labels = 6; + + // The number of local SSD disks to be attached to the node. + // + // The limit for this value is dependant upon the maximum number of + // disks available on a machine per zone. See: + // https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits + // for more information. + int32 local_ssd_count = 7; + + // The list of instance tags applied to all nodes. Tags are used to identify + // valid sources or targets for network firewalls and are specified by + // the client during cluster or node pool creation. Each tag within the list + // must comply with RFC1035. + repeated string tags = 8; + + // Whether the nodes are created as preemptible VM instances. See: + // https://cloud.google.com/compute/docs/instances/preemptible for more + // inforamtion about preemptible VM instances. + bool preemptible = 10; + + // A list of hardware accelerators to be attached to each node. + // See https://cloud.google.com/compute/docs/gpus for more information about + // support for GPUs. + repeated AcceleratorConfig accelerators = 11; + + // Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') + // + // If unspecified, the default disk type is 'pd-standard' + string disk_type = 12; + + // Minimum CPU platform to be used by this instance. The instance may be + // scheduled on the specified or newer CPU platform. Applicable values are the + // friendly names of CPU platforms, such as + // minCpuPlatform: "Intel Haswell" or + // minCpuPlatform: "Intel Sandy Bridge". For more + // information, read [how to specify min CPU + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + string min_cpu_platform = 13; + + // List of kubernetes taints to be applied to each node. + // + // For more information, including usage and the valid values, see: + // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + repeated NodeTaint taints = 15; +} + +// Kubernetes taint is comprised of three fields: key, value, and effect. Effect +// can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. +// +// For more information, including usage and the valid values, see: +// https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +message NodeTaint { + // Possible values for Effect in taint. + enum Effect { + // Not set + EFFECT_UNSPECIFIED = 0; + + // NoSchedule + NO_SCHEDULE = 1; + + // PreferNoSchedule + PREFER_NO_SCHEDULE = 2; + + // NoExecute + NO_EXECUTE = 3; + } + + // Key for taint. + string key = 1; + + // Value for taint. + string value = 2; + + // Effect for taint. + Effect effect = 3; +} + +// The authentication information for accessing the master endpoint. +// Authentication can be done using HTTP basic auth or using client +// certificates. +message MasterAuth { + // The username to use for HTTP basic authentication to the master endpoint. + // For clusters v1.6.0 and later, you can disable basic authentication by + // providing an empty username. + string username = 1; + + // The password to use for HTTP basic authentication to the master endpoint. + // Because the master endpoint is open to the Internet, you should create a + // strong password. If a password is provided for cluster creation, username + // must be non-empty. + string password = 2; + + // Configuration for client certificate authentication on the cluster. For + // clusters before v1.12, if no configuration is specified, a client + // certificate is issued. + ClientCertificateConfig client_certificate_config = 3; + + // [Output only] Base64-encoded public certificate that is the root of + // trust for the cluster. + string cluster_ca_certificate = 100; + + // [Output only] Base64-encoded public certificate used by clients to + // authenticate to the cluster endpoint. + string client_certificate = 101; + + // [Output only] Base64-encoded private key used by clients to authenticate + // to the cluster endpoint. + string client_key = 102; +} + +// Configuration for client certificates on the cluster. +message ClientCertificateConfig { + // Issue a client certificate. + bool issue_client_certificate = 1; +} + +// Configuration for the addons that can be automatically spun up in the +// cluster, enabling additional functionality. +message AddonsConfig { + // Configuration for the HTTP (L7) load balancing controller addon, which + // makes it easy to set up HTTP load balancers for services in a cluster. + HttpLoadBalancing http_load_balancing = 1; + + // Configuration for the horizontal pod autoscaling feature, which + // increases or decreases the number of replica pods a replication controller + // has based on the resource usage of the existing pods. + HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + + // Configuration for the Kubernetes Dashboard. + KubernetesDashboard kubernetes_dashboard = 3; + + // Configuration for NetworkPolicy. This only tracks whether the addon + // is enabled or not on the Master, it does not track whether network policy + // is enabled for the nodes. + NetworkPolicyConfig network_policy_config = 4; +} + +// Configuration options for the HTTP (L7) load balancing controller addon, +// which makes it easy to set up HTTP load balancers for services in a cluster. +message HttpLoadBalancing { + // Whether the HTTP Load Balancing controller is enabled in the cluster. + // When enabled, it runs a small pod in the cluster that manages the load + // balancers. + bool disabled = 1; +} + +// Configuration options for the horizontal pod autoscaling feature, which +// increases or decreases the number of replica pods a replication controller +// has based on the resource usage of the existing pods. +message HorizontalPodAutoscaling { + // Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + // When enabled, it ensures that a Heapster pod is running in the cluster, + // which is also used by the Cloud Monitoring service. + bool disabled = 1; +} + +// Configuration for the Kubernetes Dashboard. +message KubernetesDashboard { + // Whether the Kubernetes Dashboard is enabled for this cluster. + bool disabled = 1; +} + +// Configuration for NetworkPolicy. This only tracks whether the addon +// is enabled or not on the Master, it does not track whether network policy +// is enabled for the nodes. +message NetworkPolicyConfig { + // Whether NetworkPolicy is enabled for this cluster. + bool disabled = 1; +} + +// Configuration options for private clusters. +message PrivateClusterConfig { + // Whether nodes have only private IP addresses, and communicate with the + // master via private networking. + bool enable_private_nodes = 1; + + // Whether the master's internal IP address is used as the cluster endpoint. + bool enable_private_endpoint = 2; + + // The IP prefix in CIDR notation to use for the hosted master network. This + // prefix will be used for assigning private IP addresses to the master or + // set of masters, as well as the ILB VIP. + string master_ipv4_cidr_block = 3; + + // Output only. The internal IP address of this cluster's endpoint. + string private_endpoint = 4; + + // Output only. The external IP address of this cluster's endpoint. + string public_endpoint = 5; +} + +// Configuration options for the master authorized networks feature. Enabled +// master authorized networks will disallow all external traffic to access +// Kubernetes master through HTTPS except traffic from the given CIDR blocks, +// Google Compute Engine Public IPs and Google Prod IPs. +message MasterAuthorizedNetworksConfig { + // CidrBlock contains an optional name and one CIDR block. + message CidrBlock { + // display_name is an optional field for users to identify CIDR blocks. + string display_name = 1; + + // cidr_block must be specified in CIDR notation. + string cidr_block = 2; + } + + // Whether or not master authorized networks is enabled. + bool enabled = 1; + + // cidr_blocks define up to 10 external networks that could access + // Kubernetes master through HTTPS. + repeated CidrBlock cidr_blocks = 2; +} + +// Configuration options for the NetworkPolicy feature. +// https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ +message NetworkPolicy { + // Allowed Network Policy providers. + enum Provider { + // Not set + PROVIDER_UNSPECIFIED = 0; + + // Tigera (Calico Felix). + CALICO = 1; + } + + // The selected network policy provider. + Provider provider = 1; + + // Whether network policy is enabled on the cluster. + bool enabled = 2; +} + +// Configuration for controlling how IPs are allocated in the cluster. +message IPAllocationPolicy { + // Whether alias IPs will be used for pod IPs in the cluster. + bool use_ip_aliases = 1; + + // Whether a new subnetwork will be created automatically for the cluster. + // + // This field is only applicable when `use_ip_aliases` is true. + bool create_subnetwork = 2; + + // A custom subnetwork name to be used if `create_subnetwork` is true. If + // this field is empty, then an automatic name will be chosen for the new + // subnetwork. + string subnetwork_name = 3; + + // This field is deprecated, use cluster_ipv4_cidr_block. + string cluster_ipv4_cidr = 4 [deprecated = true]; + + // This field is deprecated, use node_ipv4_cidr_block. + string node_ipv4_cidr = 5 [deprecated = true]; + + // This field is deprecated, use services_ipv4_cidr_block. + string services_ipv4_cidr = 6 [deprecated = true]; + + // The name of the secondary range to be used for the cluster CIDR + // block. The secondary range will be used for pod IP + // addresses. This must be an existing secondary range associated + // with the cluster subnetwork. + // + // This field is only applicable if use_ip_aliases is true and + // create_subnetwork is false. + string cluster_secondary_range_name = 7; + + // The name of the secondary range to be used as for the services + // CIDR block. The secondary range will be used for service + // ClusterIPs. This must be an existing secondary range associated + // with the cluster subnetwork. + // + // This field is only applicable with use_ip_aliases is true and + // create_subnetwork is false. + string services_secondary_range_name = 8; + + // The IP address range for the cluster pod IPs. If this field is set, then + // `cluster.cluster_ipv4_cidr` must be left blank. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string cluster_ipv4_cidr_block = 9; + + // The IP address range of the instance IPs in this cluster. + // + // This is applicable only if `create_subnetwork` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string node_ipv4_cidr_block = 10; + + // The IP address range of the services IPs in this cluster. If blank, a range + // will be automatically chosen with the default size. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string services_ipv4_cidr_block = 11; + + // If true, allow allocation of cluster CIDR ranges that overlap with certain + // kinds of network routes. By default we do not allow cluster CIDR ranges to + // intersect with any user declared routes. With allow_route_overlap == true, + // we allow overlapping with CIDR ranges that are larger than the cluster CIDR + // range. + // + // If this field is set to true, then cluster and services CIDRs must be + // fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means: + // 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and + // `services_ipv4_cidr_block` must be fully-specified. + // 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be + // fully-specified. + bool allow_route_overlap = 12; +} + +// Configuration for Binary Authorization. +message BinaryAuthorization { + // Enable Binary Authorization for this cluster. If enabled, all container + // images will be validated by Google Binauthz. + bool enabled = 1; +} + +// Configuration for the PodSecurityPolicy feature. +message PodSecurityPolicyConfig { + // Enable the PodSecurityPolicy controller for this cluster. If enabled, pods + // must be valid under a PodSecurityPolicy to be created. + bool enabled = 1; +} + +// Configuration for the use of GCP IAM Service Accounts in applications in +// this cluster. +message ManagedPodIdentityConfig { + // Enable the use of GCP IAM Service Accounts in applications in this cluster. + bool enabled = 1; +} + +// StatusCondition describes why a cluster or a node pool has a certain status +// (e.g., ERROR or DEGRADED). +message StatusCondition { + // Code for each condition + enum Code { + // UNKNOWN indicates a generic condition. + UNKNOWN = 0; + + // GCE_STOCKOUT indicates a GCE stockout. + GCE_STOCKOUT = 1; + + // GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot + // service account. + // More codes TBA + GKE_SERVICE_ACCOUNT_DELETED = 2; + } + + // Machine-friendly representation of the condition + Code code = 1; + + // Human-friendly representation of the condition + string message = 2; +} + +// A Google Kubernetes Engine cluster. +message Cluster { + // The current status of the cluster. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The PROVISIONING state indicates the cluster is being created. + PROVISIONING = 1; + + // The RUNNING state indicates the cluster has been created and is fully + // usable. + RUNNING = 2; + + // The RECONCILING state indicates that some work is actively being done on + // the cluster, such as upgrading the master or node software. Details can + // be found in the `statusMessage` field. + RECONCILING = 3; + + // The STOPPING state indicates the cluster is being deleted. + STOPPING = 4; + + // The ERROR state indicates the cluster may be unusable. Details + // can be found in the `statusMessage` field. + ERROR = 5; + + // The DEGRADED state indicates the cluster requires user action to restore + // full functionality. Details can be found in the `statusMessage` field. + DEGRADED = 6; + } + + // Defines possible options for node_scheduling_strategy field. + enum NodeSchedulingStrategy { + // Use default scheduling strategy. + STRATEGY_UNSPECIFIED = 0; + + // Least utilized nodes will be prioritized by k8s scheduler. + PRIORITIZE_LEAST_UTILIZED = 1; + + // Nodes with medium utilization will be prioritized by k8s scheduler. + // This option improves interoperability of scheduler with cluster + // autoscaler. + PRIORITIZE_MEDIUM_UTILIZED = 2; + } + + // The name of this cluster. The name must be unique within this project + // and zone, and can be up to 40 characters with the following restrictions: + // + // * Lowercase letters, numbers, and hyphens only. + // * Must start with a letter. + // * Must end with a number or a letter. + string name = 1; + + // An optional description of this cluster. + string description = 2; + + // The number of nodes to create in this cluster. You must ensure that your + // Compute Engine resource quota + // is sufficient for this number of instances. You must also have available + // firewall and routes quota. + // For requests, this field should only be used in lieu of a + // "node_pool" object, since this configuration (along with the + // "node_config") will be used to create a "NodePool" object with an + // auto-generated name. Do not use this and a node_pool at the same time. + int32 initial_node_count = 3; + + // Parameters used in creating the cluster's nodes. + // See `nodeConfig` for the description of its properties. + // For requests, this field should only be used in lieu of a + // "node_pool" object, since this configuration (along with the + // "initial_node_count") will be used to create a "NodePool" object with an + // auto-generated name. Do not use this and a node_pool at the same time. + // For responses, this field will be populated with the node configuration of + // the first node pool. + // + // If unspecified, the defaults are used. + NodeConfig node_config = 4; + + // The authentication information for accessing the master endpoint. + MasterAuth master_auth = 5; + + // The logging service the cluster should use to write logs. + // Currently available options: + // + // * `logging.googleapis.com` - the Google Cloud Logging service. + // * `none` - no logs will be exported from the cluster. + // * if left as an empty string,`logging.googleapis.com` will be used. + string logging_service = 6; + + // The monitoring service the cluster should use to write metrics. + // Currently available options: + // + // * `monitoring.googleapis.com` - the Google Cloud Monitoring service. + // * `none` - no metrics will be exported from the cluster. + // * if left as an empty string, `monitoring.googleapis.com` will be used. + string monitoring_service = 7; + + // The name of the Google Compute Engine + // [network](/compute/docs/networks-and-firewalls#networks) to which the + // cluster is connected. If left unspecified, the `default` network + // will be used. + string network = 8; + + // The IP address range of the container pods in this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`). Leave blank to have + // one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + string cluster_ipv4_cidr = 9; + + // Configurations for the various addons available to run in the cluster. + AddonsConfig addons_config = 10; + + // The name of the Google Compute Engine + // [subnetwork](/compute/docs/subnetworks) to which the + // cluster is connected. On output this shows the subnetwork ID instead of + // the name. + string subnetwork = 11; + + // The node pools associated with this cluster. + // This field should not be set if "node_config" or "initial_node_count" are + // specified. + repeated NodePool node_pools = 12; + + // The list of Google Compute Engine + // [locations](/compute/docs/zones#available) in which the cluster's nodes + // should be located. + repeated string locations = 13; + + // Kubernetes alpha features are enabled on this cluster. This includes alpha + // API groups (e.g. v1alpha1) and features that may not be production ready in + // the kubernetes version of the master and nodes. + // The cluster has no SLA for uptime and master/node upgrades are disabled. + // Alpha enabled clusters are automatically deleted thirty days after + // creation. + bool enable_kubernetes_alpha = 14; + + // Configuration options for the NetworkPolicy feature. + NetworkPolicy network_policy = 19; + + // Configuration for cluster IP allocation. + IPAllocationPolicy ip_allocation_policy = 20; + + // The configuration options for master authorized networks feature. + MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + + // Configure the maintenance policy for this cluster. + MaintenancePolicy maintenance_policy = 23; + + // Configuration for Binary Authorization. + BinaryAuthorization binary_authorization = 24; + + // Configuration for the PodSecurityPolicy feature. + PodSecurityPolicyConfig pod_security_policy_config = 25; + + // Cluster-level autoscaling configuration. + ClusterAutoscaling autoscaling = 26; + + // Configuration for the use of GCP IAM Service Accounts in applications in + // this cluster. + ManagedPodIdentityConfig managed_pod_identity_config = 32; + + // Defines behaviour of k8s scheduler. + NodeSchedulingStrategy node_scheduling_strategy = 35; + + // Configuration for private cluster. + PrivateClusterConfig private_cluster_config = 37; + + // [Output only] Server-defined URL for the resource. + string self_link = 100; + + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field is deprecated, use location instead. + string zone = 101 [deprecated = true]; + + // [Output only] The IP address of this cluster's master endpoint. + // The endpoint can be accessed from the internet at + // `https://username:password@endpoint/`. + // + // See the `masterAuth` property of this resource for username and + // password information. + string endpoint = 102; + + // The initial Kubernetes version for this cluster. Valid versions are those + // found in validMasterVersions returned by getServerConfig. The version can + // be upgraded over time; such upgrades are reflected in + // currentMasterVersion and currentNodeVersion. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "","-": picks the default Kubernetes version + string initial_cluster_version = 103; + + // [Output only] The current software version of the master endpoint. + string current_master_version = 104; + + // [Output only] Deprecated, use + // [NodePool.version](/kubernetes-engine/docs/reference/rest/v1alpha1/projects.zones.clusters.nodePool) + // instead. The current version of the node software components. + // If they are currently at multiple versions because they're in the process + // of being upgraded, this reflects the minimum version of all nodes. + string current_node_version = 105 [deprecated = true]; + + // [Output only] The time the cluster was created, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string create_time = 106; + + // [Output only] The current status of this cluster. + Status status = 107; + + // [Output only] Additional information about the current status of this + // cluster, if available. + // Deprecated, use the field conditions instead. + string status_message = 108 [deprecated = true]; + + // [Output only] The size of the address space on each node for hosting + // containers. This is provisioned from within the `container_ipv4_cidr` + // range. + int32 node_ipv4_cidr_size = 109; + + // [Output only] The IP address range of the Kubernetes services in + // this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `1.2.3.4/29`). Service addresses are + // typically put in the last `/16` from the container CIDR. + string services_ipv4_cidr = 110; + + // Deprecated. Use node_pools.instance_group_urls. + repeated string instance_group_urls = 111 [deprecated = true]; + + // [Output only] The number of nodes currently in the cluster. + int32 current_node_count = 112; + + // [Output only] The time the cluster will be automatically + // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string expire_time = 113; + + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/regions-zones/regions-zones#available) or + // [region](/compute/docs/regions-zones/regions-zones#available) in which + // the cluster resides. + string location = 114; + + // Which conditions caused the current cluster state. + repeated StatusCondition conditions = 118; +} + +// ClusterUpdate describes an update to the cluster. Exactly one update can +// be applied to a cluster with each request, so at most one field can be +// provided. +message ClusterUpdate { + // The Kubernetes version to change the nodes to (typically an + // upgrade). + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the Kubernetes master version + string desired_node_version = 4; + + // The monitoring service the cluster should use to write metrics. + // Currently available options: + // + // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring + // service with Kubernetes-native resource model in Stackdriver + // * "monitoring.googleapis.com" - the Google Cloud Monitoring service + // * "none" - no metrics will be exported from the cluster + string desired_monitoring_service = 5; + + // Configurations for the various addons available to run in the cluster. + AddonsConfig desired_addons_config = 6; + + // The node pool to be upgraded. This field is mandatory if + // "desired_node_version", "desired_image_family" or + // "desired_node_pool_autoscaling" is specified and there is more than one + // node pool on the cluster. + string desired_node_pool_id = 7; + + // The desired image type for the node pool. + // NOTE: Set the "desired_node_pool" field as well. + string desired_image_type = 8; + + // Autoscaler configuration for the node pool specified in + // desired_node_pool_id. If there is only one pool in the + // cluster and desired_node_pool_id is not provided then + // the change applies to that single node pool. + NodePoolAutoscaling desired_node_pool_autoscaling = 9; + + // The desired list of Google Compute Engine + // [locations](/compute/docs/zones#available) in which the cluster's nodes + // should be located. Changing the locations a cluster is in will result + // in nodes being either created or removed from the cluster, depending on + // whether locations are being added or removed. + // + // This list must always include the cluster's primary zone. + repeated string desired_locations = 10; + + // The desired configuration options for master authorized networks feature. + MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + + // The desired configuration options for the PodSecurityPolicy feature. + PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + + // The desired cluster-level autoscaling configuration. + ClusterAutoscaling desired_cluster_autoscaling = 15; + + // The desired configuration options for the Binary Authorization feature. + BinaryAuthorization desired_binary_authorization = 16; + + // The logging service the cluster should use to write metrics. + // Currently available options: + // + // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging + // service with Kubernetes-native resource model in Stackdriver + // * "logging.googleapis.com" - the Google Cloud Logging service + // * "none" - no logs will be exported from the cluster + string desired_logging_service = 19; + + // The Kubernetes version to change the master to. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the default Kubernetes version + string desired_master_version = 100; +} + +// This operation resource represents operations that may have happened or are +// happening on the cluster. All fields are output only. +message Operation { + // Current status of the operation. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The operation has been created. + PENDING = 1; + + // The operation is currently running. + RUNNING = 2; + + // The operation is done, either cancelled or completed. + DONE = 3; + + // The operation is aborting. + ABORTING = 4; + } + + // Operation type. + enum Type { + // Not set. + TYPE_UNSPECIFIED = 0; + + // Cluster create. + CREATE_CLUSTER = 1; + + // Cluster delete. + DELETE_CLUSTER = 2; + + // A master upgrade. + UPGRADE_MASTER = 3; + + // A node upgrade. + UPGRADE_NODES = 4; + + // Cluster repair. + REPAIR_CLUSTER = 5; + + // Cluster update. + UPDATE_CLUSTER = 6; + + // Node pool create. + CREATE_NODE_POOL = 7; + + // Node pool delete. + DELETE_NODE_POOL = 8; + + // Set node pool management. + SET_NODE_POOL_MANAGEMENT = 9; + + // Automatic node pool repair. + AUTO_REPAIR_NODES = 10; + + // Automatic node upgrade. + AUTO_UPGRADE_NODES = 11; + + // Set labels. + SET_LABELS = 12; + + // Set/generate master auth materials + SET_MASTER_AUTH = 13; + + // Set node pool size. + SET_NODE_POOL_SIZE = 14; + + // Updates network policy for a cluster. + SET_NETWORK_POLICY = 15; + + // Set the maintenance policy. + SET_MAINTENANCE_POLICY = 16; + + // Update cluster IP allocation policy. + UPDATE_IP_ALLOCATION_POLICY = 17; + } + + // The server-assigned ID for the operation. + string name = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the operation + // is taking place. + // This field is deprecated, use location instead. + string zone = 2 [deprecated = true]; + + // The operation type. + Type operation_type = 3; + + // The current status of the operation. + Status status = 4; + + // Detailed operation progress, if available. + string detail = 8; + + // If an error has occurred, a textual description of the error. + // Deprecated, use the field conditions instead. + string status_message = 5 [deprecated = true]; + + // Server-defined URL for the resource. + string self_link = 6; + + // Server-defined URL for the target of the operation. + string target_link = 7; + + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/regions-zones/regions-zones#available) or + // [region](/compute/docs/regions-zones/regions-zones#available) in which + // the cluster resides. + string location = 9; + + // [Output only] The time the operation started, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string start_time = 10; + + // [Output only] The time the operation completed, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string end_time = 11; + + // [Output only] Progress information for an operation. + OperationProgress progress = 12; + + // Which conditions caused the current cluster state. + repeated StatusCondition cluster_conditions = 13; + + // Which conditions caused the current node pool state. + repeated StatusCondition nodepool_conditions = 14; +} + +// Information about operation (or operation stage) progress. +message OperationProgress { + // Progress metric is (string, int|float|string) pair. + message Metric { + // Metric name, required. + // e.g., "nodes total", "percent done" + string name = 1; + + // Strictly one of the values is required. + oneof value { + // For metrics with integer value. + int64 int_value = 2; + + // For metrics with floating point value. + double double_value = 3; + + // For metrics with custom values (ratios, visual progress, etc.). + string string_value = 4; + } + } + + // A non-parameterized string describing an operation stage. + // Unset for single-stage operations. + string name = 1; + + // Status of an operation stage. + // Unset for single-stage operations. + Operation.Status status = 2; + + // Progress metric bundle, for example: + // metrics: [{name: "nodes done", int_value: 15}, + // {name: "nodes total", int_value: 32}] + // or + // metrics: [{name: "progress", double_value: 0.56}, + // {name: "progress scale", double_value: 1.0}] + repeated Metric metrics = 3; + + // Substages of an operation or a stage. + repeated OperationProgress stages = 4; +} + +// CreateClusterRequest creates a cluster. +message CreateClusterRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // A [cluster + // resource](/container-engine/reference/rest/v1alpha1/projects.zones.clusters) + Cluster cluster = 3; + + // The parent (project and location) where the cluster will be created. + // Specified in the format 'projects/*/locations/*'. + string parent = 5; +} + +// GetClusterRequest gets the settings of a cluster. +message GetClusterRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to retrieve. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster) of the cluster to retrieve. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; +} + +// UpdateClusterRequest updates the settings of a cluster. +message UpdateClusterRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // A description of the update. + ClusterUpdate update = 4; + + // The name (project, location, cluster) of the cluster to update. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; +} + +// SetNodePoolVersionRequest updates the version of a node pool. +message UpdateNodePoolRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to upgrade. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The Kubernetes version to change the nodes to (typically an + // upgrade). + // + // Users may specify either explicit versions offered by Kubernetes Engine or + // version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the Kubernetes master version + string node_version = 5; + + // The desired image type for the node pool. + string image_type = 6; + + // The name (project, location, cluster, node pool) of the node pool to + // update. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 8; +} + +// SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. +message SetNodePoolAutoscalingRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to upgrade. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // Autoscaling configuration for the node pool. + NodePoolAutoscaling autoscaling = 5; + + // The name (project, location, cluster, node pool) of the node pool to set + // autoscaler settings. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; +} + +// SetLoggingServiceRequest sets the logging service of a cluster. +message SetLoggingServiceRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The logging service the cluster should use to write metrics. + // Currently available options: + // + // * "logging.googleapis.com" - the Google Cloud Logging service + // * "none" - no metrics will be exported from the cluster + string logging_service = 4; + + // The name (project, location, cluster) of the cluster to set logging. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; +} + +// SetMonitoringServiceRequest sets the monitoring service of a cluster. +message SetMonitoringServiceRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The monitoring service the cluster should use to write metrics. + // Currently available options: + // + // * "monitoring.googleapis.com" - the Google Cloud Monitoring service + // * "none" - no metrics will be exported from the cluster + string monitoring_service = 4; + + // The name (project, location, cluster) of the cluster to set monitoring. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; +} + +// SetAddonsRequest sets the addons associated with the cluster. +message SetAddonsConfigRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The desired configurations for the various addons available to run in the + // cluster. + AddonsConfig addons_config = 4; + + // The name (project, location, cluster) of the cluster to set addons. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; +} + +// SetLocationsRequest sets the locations of the cluster. +message SetLocationsRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The desired list of Google Compute Engine + // [locations](/compute/docs/zones#available) in which the cluster's nodes + // should be located. Changing the locations a cluster is in will result + // in nodes being either created or removed from the cluster, depending on + // whether locations are being added or removed. + // + // This list must always include the cluster's primary zone. + repeated string locations = 4; + + // The name (project, location, cluster) of the cluster to set locations. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; +} + +// UpdateMasterRequest updates the master of the cluster. +message UpdateMasterRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The Kubernetes version to change the master to. + // + // Users may specify either explicit versions offered by Kubernetes Engine or + // version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the default Kubernetes version + string master_version = 4; + + // The name (project, location, cluster) of the cluster to update. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; +} + +// SetMasterAuthRequest updates the admin password of a cluster. +message SetMasterAuthRequest { + // Operation type: what type update to perform. + enum Action { + // Operation is unknown and will error out. + UNKNOWN = 0; + + // Set the password to a user generated value. + SET_PASSWORD = 1; + + // Generate a new password and set it to that. + GENERATE_PASSWORD = 2; + + // Set the username. If an empty username is provided, basic authentication + // is disabled for the cluster. If a non-empty username is provided, basic + // authentication is enabled, with either a provided password or a generated + // one. + SET_USERNAME = 3; + } + + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The exact form of action to be taken on the master auth. + Action action = 4; + + // A description of the update. + MasterAuth update = 5; + + // The name (project, location, cluster) of the cluster to set auth. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; +} + +// DeleteClusterRequest deletes a cluster. +message DeleteClusterRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to delete. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster) of the cluster to delete. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 4; +} + +// ListClustersRequest lists clusters. +message ListClustersRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides, or "-" for all zones. + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // The parent (project and location) where the clusters will be listed. + // Specified in the format 'projects/*/locations/*'. + // Location "-" matches all zones and all regions. + string parent = 4; +} + +// ListClustersResponse is the result of ListClustersRequest. +message ListClustersResponse { + // A list of clusters in the project in the specified zone, or + // across all ones. + repeated Cluster clusters = 1; + + // If any zones are listed here, the list of clusters returned + // may be missing those zones. + repeated string missing_zones = 2; +} + +// GetOperationRequest gets a single operation. +message GetOperationRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The server-assigned `name` of the operation. + // This field has been deprecated and replaced by the name field. + string operation_id = 3 [deprecated = true]; + + // The name (project, location, operation id) of the operation to get. + // Specified in the format 'projects/*/locations/*/operations/*'. + string name = 5; +} + +// ListOperationsRequest lists operations. +message ListOperationsRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) to return operations for, or `-` for + // all zones. This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // The parent (project and location) where the operations will be listed. + // Specified in the format 'projects/*/locations/*'. + // Location "-" matches all zones and all regions. + string parent = 4; +} + +// CancelOperationRequest cancels a single operation. +message CancelOperationRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the operation resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The server-assigned `name` of the operation. + // This field has been deprecated and replaced by the name field. + string operation_id = 3 [deprecated = true]; + + // The name (project, location, operation id) of the operation to cancel. + // Specified in the format 'projects/*/locations/*/operations/*'. + string name = 4; +} + +// ListOperationsResponse is the result of ListOperationsRequest. +message ListOperationsResponse { + // A list of operations in the project in the specified zone. + repeated Operation operations = 1; + + // If any zones are listed here, the list of operations returned + // may be missing the operations from those zones. + repeated string missing_zones = 2; +} + +// Gets the current Kubernetes Engine service configuration. +message GetServerConfigRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) to return operations for. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // The name (project and location) of the server config to get + // Specified in the format 'projects/*/locations/*'. + string name = 4; +} + +// Kubernetes Engine service configuration. +message ServerConfig { + // Version of Kubernetes the service deploys by default. + string default_cluster_version = 1; + + // List of valid node upgrade target versions. + repeated string valid_node_versions = 3; + + // Default image type. + string default_image_type = 4; + + // List of valid image types. + repeated string valid_image_types = 5; + + // List of valid master versions. + repeated string valid_master_versions = 6; +} + +// CreateNodePoolRequest creates a node pool for a cluster. +message CreateNodePoolRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the parent field. + string cluster_id = 3 [deprecated = true]; + + // The node pool to create. + NodePool node_pool = 4; + + // The parent (project, location, cluster id) where the node pool will be + // created. Specified in the format + // 'projects/*/locations/*/clusters/*'. + string parent = 6; +} + +// DeleteNodePoolRequest deletes a node pool for a cluster. +message DeleteNodePoolRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecate. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to delete. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The name (project, location, cluster, node pool id) of the node pool to + // delete. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; +} + +// ListNodePoolsRequest lists the node pool(s) for a cluster. +message ListNodePoolsRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the parent field. + string cluster_id = 3 [deprecated = true]; + + // The parent (project, location, cluster id) where the node pools will be + // listed. Specified in the format 'projects/*/locations/*/clusters/*'. + string parent = 5; +} + +// GetNodePoolRequest retrieves a node pool for a cluster. +message GetNodePoolRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The name (project, location, cluster, node pool id) of the node pool to + // get. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; +} + +// NodePool contains the name and configuration for a cluster's node pool. +// Node pools are a set of nodes (i.e. VM's), with a common configuration and +// specification, under the control of the cluster master. They may have a set +// of Kubernetes labels applied to them, which may be used to reference them +// during pod scheduling. They may also be resized up or down, to accommodate +// the workload. +message NodePool { + // The current status of the node pool instance. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The PROVISIONING state indicates the node pool is being created. + PROVISIONING = 1; + + // The RUNNING state indicates the node pool has been created + // and is fully usable. + RUNNING = 2; + + // The RUNNING_WITH_ERROR state indicates the node pool has been created + // and is partially usable. Some error state has occurred and some + // functionality may be impaired. Customer may need to reissue a request + // or trigger a new update. + RUNNING_WITH_ERROR = 3; + + // The RECONCILING state indicates that some work is actively being done on + // the node pool, such as upgrading node software. Details can + // be found in the `statusMessage` field. + RECONCILING = 4; + + // The STOPPING state indicates the node pool is being deleted. + STOPPING = 5; + + // The ERROR state indicates the node pool may be unusable. Details + // can be found in the `statusMessage` field. + ERROR = 6; + } + + // The name of the node pool. + string name = 1; + + // The node configuration of the pool. + NodeConfig config = 2; + + // The initial node count for the pool. You must ensure that your + // Compute Engine resource quota + // is sufficient for this number of instances. You must also have available + // firewall and routes quota. + int32 initial_node_count = 3; + + // Autoscaler configuration for this NodePool. Autoscaler is enabled + // only if a valid configuration is present. + NodePoolAutoscaling autoscaling = 4; + + // NodeManagement configuration for this NodePool. + NodeManagement management = 5; + + // [Output only] Server-defined URL for the resource. + string self_link = 100; + + // The version of the Kubernetes of this node. + string version = 101; + + // [Output only] The resource URLs of the [managed instance + // groups](/compute/docs/instance-groups/creating-groups-of-managed-instances) + // associated with this node pool. + repeated string instance_group_urls = 102; + + // [Output only] The status of the nodes in this pool instance. + Status status = 103; + + // [Output only] Additional information about the current status of this + // node pool instance, if available. + // Deprecated, use the field conditions instead. + string status_message = 104 [deprecated = true]; + + // Which conditions caused the current node pool state. + repeated StatusCondition conditions = 105; +} + +// NodeManagement defines the set of node management services turned on for the +// node pool. +message NodeManagement { + // Whether the nodes will be automatically upgraded. + bool auto_upgrade = 1; + + // Whether the nodes will be automatically repaired. + bool auto_repair = 2; + + // Specifies the Auto Upgrade knobs for the node pool. + AutoUpgradeOptions upgrade_options = 10; +} + +// AutoUpgradeOptions defines the set of options for the user to control how +// the Auto Upgrades will proceed. +message AutoUpgradeOptions { + // [Output only] This field is set when upgrades are about to commence + // with the approximate start time for the upgrades, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string auto_upgrade_start_time = 1; + + // [Output only] This field is set when upgrades are about to commence + // with the description of the upgrade. + string description = 2; +} + +// MaintenancePolicy defines the maintenance policy to be used for the cluster. +message MaintenancePolicy { + // Specifies the maintenance window in which maintenance may be performed. + MaintenanceWindow window = 1; +} + +// MaintenanceWindow defines the maintenance window to be used for the cluster. +message MaintenanceWindow { + // Unimplemented, reserved for future use. + // HourlyMaintenanceWindow hourly_maintenance_window = 1; + oneof policy { + // DailyMaintenanceWindow specifies a daily maintenance operation window. + DailyMaintenanceWindow daily_maintenance_window = 2; + } +} + +// Time window specified for daily maintenance operations. +message DailyMaintenanceWindow { + // Time within the maintenance window to start the maintenance operations. + // It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT. + string start_time = 2; + + // [Output only] Duration of the time window, automatically chosen to be + // smallest possible in the given scenario. + string duration = 3; +} + +// SetNodePoolManagementRequest sets the node management properties of a node +// pool. +message SetNodePoolManagementRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to update. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // NodeManagement configuration for the node pool. + NodeManagement management = 5; + + // The name (project, location, cluster, node pool id) of the node pool to set + // management properties. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 7; +} + +// SetNodePoolSizeRequest sets the size a node +// pool. +message SetNodePoolSizeRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to update. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The desired node count for the pool. + int32 node_count = 5; + + // The name (project, location, cluster, node pool id) of the node pool to set + // size. + // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 7; +} + +// RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed +// NodePool upgrade. This will be an no-op if the last upgrade successfully +// completed. +message RollbackNodePoolUpgradeRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to rollback. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to rollback. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The name (project, location, cluster, node pool id) of the node poll to + // rollback upgrade. + // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; +} + +// ListNodePoolsResponse is the result of ListNodePoolsRequest. +message ListNodePoolsResponse { + // A list of node pools for a cluster. + repeated NodePool node_pools = 1; +} + +// ClusterAutoscaling contains global, per-cluster information +// required by Cluster Autoscaler to automatically adjust +// the size of the cluster and create/delete +// node pools based on the current needs. +message ClusterAutoscaling { + // Enables automatic node pool creation and deletion. + bool enable_node_autoprovisioning = 1; + + // Contains global constraints regarding minimum and maximum + // amount of resources in the cluster. + repeated ResourceLimit resource_limits = 2; +} + +// Contains information about amount of some resource in the cluster. +// For memory, value should be in GB. +message ResourceLimit { + // Resource name "cpu", "memory" or gpu-specific string. + string resource_type = 1; + + // Minimum amount of the resource in the cluster. + int64 minimum = 2; + + // Maximum amount of the resource in the cluster. + int64 maximum = 3; +} + +// NodePoolAutoscaling contains information required by cluster autoscaler to +// adjust the size of the node pool to the current cluster usage. +message NodePoolAutoscaling { + // Is autoscaling enabled for this node pool. + bool enabled = 1; + + // Minimum number of nodes in the NodePool. Must be >= 1 and <= + // max_node_count. + int32 min_node_count = 2; + + // Maximum number of nodes in the NodePool. Must be >= min_node_count. There + // has to enough quota to scale up the cluster. + int32 max_node_count = 3; + + // Can this node pool be deleted automatically. + bool autoprovisioned = 4; +} + +// SetLabelsRequest sets the Google Cloud Platform labels on a Google Container +// Engine cluster, which will in turn set them for Google Compute Engine +// resources used by that cluster +message SetLabelsRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The labels to set for that cluster. + map resource_labels = 4; + + // The fingerprint of the previous set of labels for this resource, + // used to detect conflicts. The fingerprint is initially generated by + // Kubernetes Engine and changes after every request to modify or update + // labels. You must always provide an up-to-date fingerprint hash when + // updating or changing labels. Make a get() request to the + // resource to get the latest fingerprint. + string label_fingerprint = 5; + + // The name (project, location, cluster id) of the cluster to set labels. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; +} + +// SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for +// a cluster. +message SetLegacyAbacRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Whether ABAC authorization will be enabled in the cluster. + bool enabled = 4; + + // The name (project, location, cluster id) of the cluster to set legacy abac. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; +} + +// StartIPRotationRequest creates a new IP for the cluster and then performs +// a node upgrade on each node pool to point to the new IP. +message StartIPRotationRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster id) of the cluster to start IP + // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; + + // Whether to rotate credentials during IP rotation. + bool rotate_credentials = 7; +} + +// CompleteIPRotationRequest moves the cluster master back into single-IP mode. +message CompleteIPRotationRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster id) of the cluster to complete IP + // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; +} + +// AcceleratorConfig represents a Hardware Accelerator request. +message AcceleratorConfig { + // The number of the accelerator cards exposed to an instance. + int64 accelerator_count = 1; + + // The accelerator type resource name. List of supported accelerators + // [here](/compute/docs/gpus/#Introduction) + string accelerator_type = 2; +} + +// SetNetworkPolicyRequest enables/disables network policy for a cluster. +message SetNetworkPolicyRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Configuration options for the NetworkPolicy feature. + NetworkPolicy network_policy = 4; + + // The name (project, location, cluster id) of the cluster to set networking + // policy. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; +} + +// SetMaintenancePolicyRequest sets the maintenance policy for a cluster. +message SetMaintenancePolicyRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to update. + string cluster_id = 3; + + // The maintenance policy to be set for the cluster. An empty field + // clears the existing maintenance policy. + MaintenancePolicy maintenance_policy = 4; + + // The name (project, location, cluster id) of the cluster to set maintenance + // policy. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; +} + +// ListUsableSubnetworksRequest requests the list of usable subnetworks. +message ListUsableSubnetworksRequest { + // The parent project where subnetworks are usable. + // Specified in the format 'projects/*'. + string parent = 1; + + // Filtering currently only supports equality on the networkProjectId and must + // be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + // is the project which owns the listed subnetworks. This defaults to the + // parent project ID. + string filter = 2; + + // The max number of results per page that should be returned. If the number + // of available results is larger than `page_size`, a `next_page_token` is + // returned which can be used to get the next page of results in subsequent + // requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + int32 page_size = 3; + + // Specifies a page token to use. Set this to the next_page_token returned by + // previous list requests to get the next page of results. + string page_token = 4; +} + +// ListUsableSubnetworksResponse is the response of +// ListUsableSubnetworksRequest. +message ListUsableSubnetworksResponse { + // A list of usable subnetworks in the specified network project. + repeated UsableSubnetwork subnetworks = 1; + + // This token allows you to get the next page of results for list requests. + // If the number of results is larger than `page_size`, use the + // `next_page_token` as a value for the query parameter `page_token` in the + // next request. The value will become empty when there are no more pages. + string next_page_token = 2; +} + +// Secondary IP range of a usable subnetwork. +message UsableSubnetworkSecondaryRange { + // Status shows the current usage of a secondary IP range. + enum Status { + // UNKNOWN is the zero value of the Status enum. It's not a valid status. + UNKNOWN = 0; + + // UNUSED denotes that this range is unclaimed by any cluster. + UNUSED = 1; + + // IN_USE_SERVICE denotes that this range is claimed by a cluster for + // services. It cannot be used for other clusters. + IN_USE_SERVICE = 2; + + // IN_USE_SHAREABLE_POD denotes this range was created by the network admin + // and is currently claimed by a cluster for pods. It can only be used by + // other clusters as a pod range. + IN_USE_SHAREABLE_POD = 3; + + // IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed + // for pods. It cannot be used for other clusters. + IN_USE_MANAGED_POD = 4; + } + + // The name associated with this subnetwork secondary range, used when adding + // an alias IP range to a VM instance. + string range_name = 1; + + // The range of IP addresses belonging to this subnetwork secondary range. + string ip_cidr_range = 2; + + // This field is to determine the status of the secondary range programmably. + Status status = 3; +} + +// UsableSubnetwork resource returns the subnetwork name, its associated network +// and the primary CIDR range. +message UsableSubnetwork { + // Subnetwork Name. + string subnetwork = 1; + + // Network Name. + string network = 2; + + // The range of internal addresses that are owned by this subnetwork. + string ip_cidr_range = 3; + + // Secondary IP ranges. + repeated UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + + // A human readable status message representing the reasons for cases where + // the caller cannot use the secondary ranges under the subnet. For example if + // the secondary_ip_ranges is empty due to a permission issue, an insufficient + // permission message will be given by status_message. + string status_message = 5; +} diff --git a/google-api-grpc/proto-google-cloud-container-v1/src/main/proto/google/container/v1beta1/cluster_service.proto b/google-api-grpc/proto-google-cloud-container-v1/src/main/proto/google/container/v1beta1/cluster_service.proto new file mode 100644 index 000000000000..db60ec0d18d4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-container-v1/src/main/proto/google/container/v1beta1/cluster_service.proto @@ -0,0 +1,2655 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.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.container.v1beta1; + +import "google/api/annotations.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/protobuf/empty.proto"; + +option csharp_namespace = "Google.Cloud.Container.V1Beta1"; +option go_package = "google.golang.org/genproto/googleapis/container/v1beta1;container"; +option java_multiple_files = true; +option java_outer_classname = "ClusterServiceProto"; +option java_package = "com.google.container.v1beta1"; +option php_namespace = "Google\\Cloud\\Container\\V1beta1"; + + +// Google Kubernetes Engine Cluster Manager v1beta1 +service ClusterManager { + // Lists all clusters owned by a project in either the specified zone or all + // zones. + rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/clusters" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/clusters" + } + }; + } + + // Gets the details for a specific cluster. + rpc GetCluster(GetClusterRequest) returns (Cluster) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/clusters/*}" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }; + } + + // Creates a cluster, consisting of the specified number and type of Google + // Compute Engine instances. + // + // By default, the cluster is created in the project's + // [default network](/compute/docs/networks-and-firewalls#networks). + // + // One firewall is added for the cluster. After cluster creation, + // the cluster creates routes for each node to allow the containers + // on that node to communicate with all other instances in the + // cluster. + // + // Finally, an entry is added to the project's global metadata indicating + // which CIDR range is being used by the cluster. + rpc CreateCluster(CreateClusterRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/clusters" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters" + body: "*" + } + }; + } + + // Updates the settings for a specific cluster. + rpc UpdateCluster(UpdateClusterRequest) returns (Operation) { + option (google.api.http) = { + put: "/v1beta1/{name=projects/*/locations/*/clusters/*}" + body: "*" + additional_bindings { + put: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + body: "*" + } + }; + } + + // Updates the version and/or image type of a specific node pool. + rpc UpdateNodePool(UpdateNodePoolRequest) returns (Operation) { + option (google.api.http) = { + put: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update" + body: "*" + } + }; + } + + // Sets the autoscaling settings of a specific node pool. + rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling" + body: "*" + } + }; + } + + // Sets the logging service for a specific cluster. + rpc SetLoggingService(SetLoggingServiceRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setLogging" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging" + body: "*" + } + }; + } + + // Sets the monitoring service for a specific cluster. + rpc SetMonitoringService(SetMonitoringServiceRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setMonitoring" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring" + body: "*" + } + }; + } + + // Sets the addons for a specific cluster. + rpc SetAddonsConfig(SetAddonsConfigRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setAddons" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons" + body: "*" + } + }; + } + + // Sets the locations for a specific cluster. + rpc SetLocations(SetLocationsRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setLocations" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations" + body: "*" + } + }; + } + + // Updates the master for a specific cluster. + rpc UpdateMaster(UpdateMasterRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:updateMaster" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master" + body: "*" + } + }; + } + + // Used to set master auth materials. Currently supports :- + // Changing the admin password for a specific cluster. + // This can be either via password generation or explicitly set. + // Modify basic_auth.csv and reset the K8S API server. + rpc SetMasterAuth(SetMasterAuthRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setMasterAuth" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth" + body: "*" + } + }; + } + + // Deletes the cluster, including the Kubernetes endpoint and all worker + // nodes. + // + // Firewalls and routes that were configured during cluster creation + // are also deleted. + // + // Other Google Compute Engine resources that might be in use by the cluster + // (e.g. load balancer resources) will not be deleted if they weren't present + // at the initial create time. + rpc DeleteCluster(DeleteClusterRequest) returns (Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/clusters/*}" + additional_bindings { + delete: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }; + } + + // Lists all operations in a project in a specific zone or all zones. + rpc ListOperations(ListOperationsRequest) returns (ListOperationsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/operations" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/operations" + } + }; + } + + // Gets the specified operation. + rpc GetOperation(GetOperationRequest) returns (Operation) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/operations/*}" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/operations/{operation_id}" + } + }; + } + + // Cancels the specified operation. + rpc CancelOperation(CancelOperationRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/operations/*}:cancel" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel" + body: "*" + } + }; + } + + // Returns configuration info about the Kubernetes Engine service. + rpc GetServerConfig(GetServerConfigRequest) returns (ServerConfig) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*}/serverConfig" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/serverconfig" + } + }; + } + + // Lists the node pools for a cluster. + rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/clusters/*}/nodePools" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + } + }; + } + + // Retrieves the node pool requested. + rpc GetNodePool(GetNodePoolRequest) returns (NodePool) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }; + } + + // Creates a node pool for a cluster. + rpc CreateNodePool(CreateNodePoolRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/clusters/*}/nodePools" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + body: "*" + } + }; + } + + // Deletes a node pool from a cluster. + rpc DeleteNodePool(DeleteNodePoolRequest) returns (Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + additional_bindings { + delete: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }; + } + + // Roll back the previously Aborted or Failed NodePool upgrade. + // This will be an no-op if the last upgrade successfully completed. + rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback" + body: "*" + } + }; + } + + // Sets the NodeManagement options for a node pool. + rpc SetNodePoolManagement(SetNodePoolManagementRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement" + body: "*" + } + }; + } + + // Sets labels on a cluster. + rpc SetLabels(SetLabelsRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setResourceLabels" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels" + body: "*" + } + }; + } + + // Enables or disables the ABAC authorization mechanism on a cluster. + rpc SetLegacyAbac(SetLegacyAbacRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac" + body: "*" + } + }; + } + + // Start master IP rotation. + rpc StartIPRotation(StartIPRotationRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:startIpRotation" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation" + body: "*" + } + }; + } + + // Completes master IP rotation. + rpc CompleteIPRotation(CompleteIPRotationRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:completeIpRotation" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation" + body: "*" + } + }; + } + + // Sets the size for a specific node pool. + rpc SetNodePoolSize(SetNodePoolSizeRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize" + body: "*" + } + }; + } + + // Enables/Disables Network Policy for a cluster. + rpc SetNetworkPolicy(SetNetworkPolicyRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy" + body: "*" + } + }; + } + + // Sets the maintenance policy for a cluster. + rpc SetMaintenancePolicy(SetMaintenancePolicyRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy" + body: "*" + } + }; + } + + // Lists subnetworks that are usable for creating clusters in a project. + rpc ListUsableSubnetworks(ListUsableSubnetworksRequest) returns (ListUsableSubnetworksResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*}/aggregated/usableSubnetworks" + }; + } + + // Used to fetch locations that offer GKE. + rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*}/locations" + }; + } +} + +// Parameters that describe the nodes in a cluster. +message NodeConfig { + // The name of a Google Compute Engine [machine + // type](/compute/docs/machine-types) (e.g. + // `n1-standard-1`). + // + // If unspecified, the default machine type is + // `n1-standard-1`. + string machine_type = 1; + + // Size of the disk attached to each node, specified in GB. + // The smallest allowed disk size is 10GB. + // + // If unspecified, the default disk size is 100GB. + int32 disk_size_gb = 2; + + // The set of Google API scopes to be made available on all of the + // node VMs under the "default" service account. + // + // The following scopes are recommended, but not required, and by default are + // not included: + // + // * `https://www.googleapis.com/auth/compute` is required for mounting + // persistent storage on your nodes. + // * `https://www.googleapis.com/auth/devstorage.read_only` is required for + // communicating with **gcr.io** + // (the [Google Container Registry](/container-registry/)). + // + // If unspecified, no scopes are added, unless Cloud Logging or Cloud + // Monitoring are enabled, in which case their required scopes will be added. + repeated string oauth_scopes = 3; + + // The Google Cloud Platform Service Account to be used by the node VMs. If + // no Service Account is specified, the "default" service account is used. + string service_account = 9; + + // The metadata key/value pairs assigned to instances in the cluster. + // + // Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes + // in length. These are reflected as part of a URL in the metadata server. + // Additionally, to avoid ambiguity, keys must not conflict with any other + // metadata keys for the project or be one of the reserved keys: + // "cluster-location" + // "cluster-name" + // "cluster-uid" + // "configure-sh" + // "enable-oslogin" + // "gci-ensure-gke-docker" + // "gci-update-strategy" + // "instance-template" + // "kube-env" + // "startup-script" + // "user-data" + // + // Values are free-form strings, and only have meaning as interpreted by + // the image running in the instance. The only restriction placed on them is + // that each value's size must be less than or equal to 32 KB. + // + // The total size of all keys and values must be less than 512 KB. + map metadata = 4; + + // The image type to use for this node. Note that for a given image type, + // the latest version of it will be used. + string image_type = 5; + + // The map of Kubernetes labels (key/value pairs) to be applied to each node. + // These will added in addition to any default label(s) that + // Kubernetes may apply to the node. + // In case of conflict in label keys, the applied set may differ depending on + // the Kubernetes version -- it's best to assume the behavior is undefined + // and conflicts should be avoided. + // For more information, including usage and the valid values, see: + // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + map labels = 6; + + // The number of local SSD disks to be attached to the node. + // + // The limit for this value is dependant upon the maximum number of + // disks available on a machine per zone. See: + // https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits + // for more information. + int32 local_ssd_count = 7; + + // The list of instance tags applied to all nodes. Tags are used to identify + // valid sources or targets for network firewalls and are specified by + // the client during cluster or node pool creation. Each tag within the list + // must comply with RFC1035. + repeated string tags = 8; + + // Whether the nodes are created as preemptible VM instances. See: + // https://cloud.google.com/compute/docs/instances/preemptible for more + // inforamtion about preemptible VM instances. + bool preemptible = 10; + + // A list of hardware accelerators to be attached to each node. + // See https://cloud.google.com/compute/docs/gpus for more information about + // support for GPUs. + repeated AcceleratorConfig accelerators = 11; + + // Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') + // + // If unspecified, the default disk type is 'pd-standard' + string disk_type = 12; + + // Minimum CPU platform to be used by this instance. The instance may be + // scheduled on the specified or newer CPU platform. Applicable values are the + // friendly names of CPU platforms, such as + // minCpuPlatform: "Intel Haswell" or + // minCpuPlatform: "Intel Sandy Bridge". For more + // information, read [how to specify min CPU + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + string min_cpu_platform = 13; + + // The workload metadata configuration for this node. + WorkloadMetadataConfig workload_metadata_config = 14; + + // List of kubernetes taints to be applied to each node. + // + // For more information, including usage and the valid values, see: + // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + repeated NodeTaint taints = 15; +} + +// Kubernetes taint is comprised of three fields: key, value, and effect. Effect +// can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. +// +// For more information, including usage and the valid values, see: +// https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +message NodeTaint { + // Possible values for Effect in taint. + enum Effect { + // Not set + EFFECT_UNSPECIFIED = 0; + + // NoSchedule + NO_SCHEDULE = 1; + + // PreferNoSchedule + PREFER_NO_SCHEDULE = 2; + + // NoExecute + NO_EXECUTE = 3; + } + + // Key for taint. + string key = 1; + + // Value for taint. + string value = 2; + + // Effect for taint. + Effect effect = 3; +} + +// The authentication information for accessing the master endpoint. +// Authentication can be done using HTTP basic auth or using client +// certificates. +message MasterAuth { + // The username to use for HTTP basic authentication to the master endpoint. + // For clusters v1.6.0 and later, you can disable basic authentication by + // providing an empty username. + string username = 1; + + // The password to use for HTTP basic authentication to the master endpoint. + // Because the master endpoint is open to the Internet, you should create a + // strong password. If a password is provided for cluster creation, username + // must be non-empty. + string password = 2; + + // Configuration for client certificate authentication on the cluster. For + // clusters before v1.12, if no configuration is specified, a client + // certificate is issued. + ClientCertificateConfig client_certificate_config = 3; + + // [Output only] Base64-encoded public certificate that is the root of + // trust for the cluster. + string cluster_ca_certificate = 100; + + // [Output only] Base64-encoded public certificate used by clients to + // authenticate to the cluster endpoint. + string client_certificate = 101; + + // [Output only] Base64-encoded private key used by clients to authenticate + // to the cluster endpoint. + string client_key = 102; +} + +// Configuration for client certificates on the cluster. +message ClientCertificateConfig { + // Issue a client certificate. + bool issue_client_certificate = 1; +} + +// Configuration for the addons that can be automatically spun up in the +// cluster, enabling additional functionality. +message AddonsConfig { + // Configuration for the HTTP (L7) load balancing controller addon, which + // makes it easy to set up HTTP load balancers for services in a cluster. + HttpLoadBalancing http_load_balancing = 1; + + // Configuration for the horizontal pod autoscaling feature, which + // increases or decreases the number of replica pods a replication controller + // has based on the resource usage of the existing pods. + HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + + // Configuration for the Kubernetes Dashboard. + KubernetesDashboard kubernetes_dashboard = 3; + + // Configuration for NetworkPolicy. This only tracks whether the addon + // is enabled or not on the Master, it does not track whether network policy + // is enabled for the nodes. + NetworkPolicyConfig network_policy_config = 4; +} + +// Configuration options for the HTTP (L7) load balancing controller addon, +// which makes it easy to set up HTTP load balancers for services in a cluster. +message HttpLoadBalancing { + // Whether the HTTP Load Balancing controller is enabled in the cluster. + // When enabled, it runs a small pod in the cluster that manages the load + // balancers. + bool disabled = 1; +} + +// Configuration options for the horizontal pod autoscaling feature, which +// increases or decreases the number of replica pods a replication controller +// has based on the resource usage of the existing pods. +message HorizontalPodAutoscaling { + // Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + // When enabled, it ensures that a Heapster pod is running in the cluster, + // which is also used by the Cloud Monitoring service. + bool disabled = 1; +} + +// Configuration for the Kubernetes Dashboard. +message KubernetesDashboard { + // Whether the Kubernetes Dashboard is enabled for this cluster. + bool disabled = 1; +} + +// Configuration for NetworkPolicy. This only tracks whether the addon +// is enabled or not on the Master, it does not track whether network policy +// is enabled for the nodes. +message NetworkPolicyConfig { + // Whether NetworkPolicy is enabled for this cluster. + bool disabled = 1; +} + +// Configuration options for private clusters. +message PrivateClusterConfig { + // Whether nodes have only private IP addresses, and communicate with the + // master via private networking. + bool enable_private_nodes = 1; + + // Whether the master's internal IP address is used as the cluster endpoint. + bool enable_private_endpoint = 2; + + // The IP prefix in CIDR notation to use for the hosted master network. This + // prefix will be used for assigning private IP addresses to the master or + // set of masters, as well as the ILB VIP. + string master_ipv4_cidr_block = 3; + + // Output only. The internal IP address of this cluster's master endpoint. + string private_endpoint = 4; + + // Output only. The external IP address of this cluster's master endpoint. + string public_endpoint = 5; +} + +// Configuration options for the master authorized networks feature. Enabled +// master authorized networks will disallow all external traffic to access +// Kubernetes master through HTTPS except traffic from the given CIDR blocks, +// Google Compute Engine Public IPs and Google Prod IPs. +message MasterAuthorizedNetworksConfig { + // CidrBlock contains an optional name and one CIDR block. + message CidrBlock { + // display_name is an optional field for users to identify CIDR blocks. + string display_name = 1; + + // cidr_block must be specified in CIDR notation. + string cidr_block = 2; + } + + // Whether or not master authorized networks is enabled. + bool enabled = 1; + + // cidr_blocks define up to 10 external networks that could access + // Kubernetes master through HTTPS. + repeated CidrBlock cidr_blocks = 2; +} + +// Configuration for the legacy Attribute Based Access Control authorization +// mode. +message LegacyAbac { + // Whether the ABAC authorizer is enabled for this cluster. When enabled, + // identities in the system, including service accounts, nodes, and + // controllers, will have statically granted permissions beyond those + // provided by the RBAC configuration or IAM. + bool enabled = 1; +} + +// Configuration options for the NetworkPolicy feature. +// https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ +message NetworkPolicy { + // Allowed Network Policy providers. + enum Provider { + // Not set + PROVIDER_UNSPECIFIED = 0; + + // Tigera (Calico Felix). + CALICO = 1; + } + + // The selected network policy provider. + Provider provider = 1; + + // Whether network policy is enabled on the cluster. + bool enabled = 2; +} + +// Configuration for controlling how IPs are allocated in the cluster. +message IPAllocationPolicy { + // Whether alias IPs will be used for pod IPs in the cluster. + bool use_ip_aliases = 1; + + // Whether a new subnetwork will be created automatically for the cluster. + // + // This field is only applicable when `use_ip_aliases` is true. + bool create_subnetwork = 2; + + // A custom subnetwork name to be used if `create_subnetwork` is true. If + // this field is empty, then an automatic name will be chosen for the new + // subnetwork. + string subnetwork_name = 3; + + // This field is deprecated, use cluster_ipv4_cidr_block. + string cluster_ipv4_cidr = 4 [deprecated = true]; + + // This field is deprecated, use node_ipv4_cidr_block. + string node_ipv4_cidr = 5 [deprecated = true]; + + // This field is deprecated, use services_ipv4_cidr_block. + string services_ipv4_cidr = 6 [deprecated = true]; + + // The name of the secondary range to be used for the cluster CIDR + // block. The secondary range will be used for pod IP + // addresses. This must be an existing secondary range associated + // with the cluster subnetwork. + // + // This field is only applicable with use_ip_aliases and + // create_subnetwork is false. + string cluster_secondary_range_name = 7; + + // The name of the secondary range to be used as for the services + // CIDR block. The secondary range will be used for service + // ClusterIPs. This must be an existing secondary range associated + // with the cluster subnetwork. + // + // This field is only applicable with use_ip_aliases and + // create_subnetwork is false. + string services_secondary_range_name = 8; + + // The IP address range for the cluster pod IPs. If this field is set, then + // `cluster.cluster_ipv4_cidr` must be left blank. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string cluster_ipv4_cidr_block = 9; + + // The IP address range of the instance IPs in this cluster. + // + // This is applicable only if `create_subnetwork` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string node_ipv4_cidr_block = 10; + + // The IP address range of the services IPs in this cluster. If blank, a range + // will be automatically chosen with the default size. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string services_ipv4_cidr_block = 11; + + // If true, allow allocation of cluster CIDR ranges that overlap with certain + // kinds of network routes. By default we do not allow cluster CIDR ranges to + // intersect with any user declared routes. With allow_route_overlap == true, + // we allow overlapping with CIDR ranges that are larger than the cluster CIDR + // range. + // + // If this field is set to true, then cluster and services CIDRs must be + // fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means: + // 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and + // `services_ipv4_cidr_block` must be fully-specified. + // 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be + // fully-specified. + bool allow_route_overlap = 12; + + // The IP address range of the Cloud TPUs in this cluster. If unspecified, a + // range will be automatically chosen with the default size. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // If unspecified, the range will use the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string tpu_ipv4_cidr_block = 13; +} + +// Configuration for Binary Authorization. +message BinaryAuthorization { + // Enable Binary Authorization for this cluster. If enabled, all container + // images will be validated by Google Binauthz. + bool enabled = 1; +} + +// Configuration for the PodSecurityPolicy feature. +message PodSecurityPolicyConfig { + // Enable the PodSecurityPolicy controller for this cluster. If enabled, pods + // must be valid under a PodSecurityPolicy to be created. + bool enabled = 1; +} + +// A Google Kubernetes Engine cluster. +message Cluster { + // The current status of the cluster. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The PROVISIONING state indicates the cluster is being created. + PROVISIONING = 1; + + // The RUNNING state indicates the cluster has been created and is fully + // usable. + RUNNING = 2; + + // The RECONCILING state indicates that some work is actively being done on + // the cluster, such as upgrading the master or node software. Details can + // be found in the `statusMessage` field. + RECONCILING = 3; + + // The STOPPING state indicates the cluster is being deleted. + STOPPING = 4; + + // The ERROR state indicates the cluster may be unusable. Details + // can be found in the `statusMessage` field. + ERROR = 5; + + // The DEGRADED state indicates the cluster requires user action to restore + // full functionality. Details can be found in the `statusMessage` field. + DEGRADED = 6; + } + + // The name of this cluster. The name must be unique within this project + // and zone, and can be up to 40 characters with the following restrictions: + // + // * Lowercase letters, numbers, and hyphens only. + // * Must start with a letter. + // * Must end with a number or a letter. + string name = 1; + + // An optional description of this cluster. + string description = 2; + + // The number of nodes to create in this cluster. You must ensure that your + // Compute Engine resource quota + // is sufficient for this number of instances. You must also have available + // firewall and routes quota. + // For requests, this field should only be used in lieu of a + // "node_pool" object, since this configuration (along with the + // "node_config") will be used to create a "NodePool" object with an + // auto-generated name. Do not use this and a node_pool at the same time. + int32 initial_node_count = 3; + + // Parameters used in creating the cluster's nodes. + // See `nodeConfig` for the description of its properties. + // For requests, this field should only be used in lieu of a + // "node_pool" object, since this configuration (along with the + // "initial_node_count") will be used to create a "NodePool" object with an + // auto-generated name. Do not use this and a node_pool at the same time. + // For responses, this field will be populated with the node configuration of + // the first node pool. + // + // If unspecified, the defaults are used. + NodeConfig node_config = 4; + + // The authentication information for accessing the master endpoint. + MasterAuth master_auth = 5; + + // The logging service the cluster should use to write logs. + // Currently available options: + // + // * `logging.googleapis.com` - the Google Cloud Logging service. + // * `none` - no logs will be exported from the cluster. + // * if left as an empty string,`logging.googleapis.com` will be used. + string logging_service = 6; + + // The monitoring service the cluster should use to write metrics. + // Currently available options: + // + // * `monitoring.googleapis.com` - the Google Cloud Monitoring service. + // * `none` - no metrics will be exported from the cluster. + // * if left as an empty string, `monitoring.googleapis.com` will be used. + string monitoring_service = 7; + + // The name of the Google Compute Engine + // [network](/compute/docs/networks-and-firewalls#networks) to which the + // cluster is connected. If left unspecified, the `default` network + // will be used. On output this shows the network ID instead of + // the name. + string network = 8; + + // The IP address range of the container pods in this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`). Leave blank to have + // one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + string cluster_ipv4_cidr = 9; + + // Configurations for the various addons available to run in the cluster. + AddonsConfig addons_config = 10; + + // The name of the Google Compute Engine + // [subnetwork](/compute/docs/subnetworks) to which the + // cluster is connected. On output this shows the subnetwork ID instead of + // the name. + string subnetwork = 11; + + // The node pools associated with this cluster. + // This field should not be set if "node_config" or "initial_node_count" are + // specified. + repeated NodePool node_pools = 12; + + // The list of Google Compute Engine + // [locations](/compute/docs/zones#available) in which the cluster's nodes + // should be located. + repeated string locations = 13; + + // Kubernetes alpha features are enabled on this cluster. This includes alpha + // API groups (e.g. v1beta1) and features that may not be production ready in + // the kubernetes version of the master and nodes. + // The cluster has no SLA for uptime and master/node upgrades are disabled. + // Alpha enabled clusters are automatically deleted thirty days after + // creation. + bool enable_kubernetes_alpha = 14; + + // The resource labels for the cluster to use to annotate any related + // Google Compute Engine resources. + map resource_labels = 15; + + // The fingerprint of the set of labels for this cluster. + string label_fingerprint = 16; + + // Configuration for the legacy ABAC authorization mode. + LegacyAbac legacy_abac = 18; + + // Configuration options for the NetworkPolicy feature. + NetworkPolicy network_policy = 19; + + // Configuration for cluster IP allocation. + IPAllocationPolicy ip_allocation_policy = 20; + + // The configuration options for master authorized networks feature. + MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + + // Configure the maintenance policy for this cluster. + MaintenancePolicy maintenance_policy = 23; + + // Configuration for Binary Authorization. + BinaryAuthorization binary_authorization = 24; + + // Configuration for the PodSecurityPolicy feature. + PodSecurityPolicyConfig pod_security_policy_config = 25; + + // Cluster-level autoscaling configuration. + ClusterAutoscaling autoscaling = 26; + + // Configuration for cluster networking. + NetworkConfig network_config = 27; + + // If this is a private cluster setup. Private clusters are clusters that, by + // default have no external IP addresses on the nodes and where nodes and the + // master communicate over private IP addresses. + // This field is deprecated, use private_cluster_config.enabled instead. + bool private_cluster = 28 [deprecated = true]; + + // The IP prefix in CIDR notation to use for the hosted master network. + // This prefix will be used for assigning private IP addresses to the + // master or set of masters, as well as the ILB VIP. + // This field is deprecated, use + // private_cluster_config.master_ipv4_cidr_block instead. + string master_ipv4_cidr_block = 29 [deprecated = true]; + + // The default constraint on the maximum number of pods that can be run + // simultaneously on a node in the node pool of this cluster. Only honored + // if cluster created with IP Alias support. + MaxPodsConstraint default_max_pods_constraint = 30; + + // Configuration for private cluster. + PrivateClusterConfig private_cluster_config = 37; + + // [Output only] Server-defined URL for the resource. + string self_link = 100; + + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field is deprecated, use location instead. + string zone = 101 [deprecated = true]; + + // [Output only] The IP address of this cluster's master endpoint. + // The endpoint can be accessed from the internet at + // `https://username:password@endpoint/`. + // + // See the `masterAuth` property of this resource for username and + // password information. + string endpoint = 102; + + // The initial Kubernetes version for this cluster. Valid versions are those + // found in validMasterVersions returned by getServerConfig. The version can + // be upgraded over time; such upgrades are reflected in + // currentMasterVersion and currentNodeVersion. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "","-": picks the default Kubernetes version + string initial_cluster_version = 103; + + // [Output only] The current software version of the master endpoint. + string current_master_version = 104; + + // [Output only] Deprecated, use + // [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool) + // instead. The current version of the node software components. + // If they are currently at multiple versions because they're in the process + // of being upgraded, this reflects the minimum version of all nodes. + string current_node_version = 105 [deprecated = true]; + + // [Output only] The time the cluster was created, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string create_time = 106; + + // [Output only] The current status of this cluster. + Status status = 107; + + // [Output only] Additional information about the current status of this + // cluster, if available. + string status_message = 108; + + // [Output only] The size of the address space on each node for hosting + // containers. This is provisioned from within the `container_ipv4_cidr` + // range. + int32 node_ipv4_cidr_size = 109; + + // [Output only] The IP address range of the Kubernetes services in + // this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `1.2.3.4/29`). Service addresses are + // typically put in the last `/16` from the container CIDR. + string services_ipv4_cidr = 110; + + // Deprecated. Use node_pools.instance_group_urls. + repeated string instance_group_urls = 111 [deprecated = true]; + + // [Output only] The number of nodes currently in the cluster. + int32 current_node_count = 112; + + // [Output only] The time the cluster will be automatically + // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string expire_time = 113; + + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/regions-zones/regions-zones#available) or + // [region](/compute/docs/regions-zones/regions-zones#available) in which + // the cluster resides. + string location = 114; + + // Enable the ability to use Cloud TPUs in this cluster. + bool enable_tpu = 115; + + // [Output only] The IP address range of the Cloud TPUs in this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `1.2.3.4/29`). + string tpu_ipv4_cidr_block = 116; + + // Which conditions caused the current cluster state. + repeated StatusCondition conditions = 118; +} + +// ClusterUpdate describes an update to the cluster. Exactly one update can +// be applied to a cluster with each request, so at most one field can be +// provided. +message ClusterUpdate { + // The Kubernetes version to change the nodes to (typically an + // upgrade). + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the Kubernetes master version + string desired_node_version = 4; + + // The monitoring service the cluster should use to write metrics. + // Currently available options: + // + // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring + // service with Kubernetes-native resource model in Stackdriver + // * "monitoring.googleapis.com" - the Google Cloud Monitoring service + // * "none" - no metrics will be exported from the cluster + string desired_monitoring_service = 5; + + // Configurations for the various addons available to run in the cluster. + AddonsConfig desired_addons_config = 6; + + // The node pool to be upgraded. This field is mandatory if + // "desired_node_version", "desired_image_family" or + // "desired_node_pool_autoscaling" is specified and there is more than one + // node pool on the cluster. + string desired_node_pool_id = 7; + + // The desired image type for the node pool. + // NOTE: Set the "desired_node_pool" field as well. + string desired_image_type = 8; + + // Autoscaler configuration for the node pool specified in + // desired_node_pool_id. If there is only one pool in the + // cluster and desired_node_pool_id is not provided then + // the change applies to that single node pool. + NodePoolAutoscaling desired_node_pool_autoscaling = 9; + + // The desired list of Google Compute Engine + // [locations](/compute/docs/zones#available) in which the cluster's nodes + // should be located. Changing the locations a cluster is in will result + // in nodes being either created or removed from the cluster, depending on + // whether locations are being added or removed. + // + // This list must always include the cluster's primary zone. + repeated string desired_locations = 10; + + // The desired configuration options for master authorized networks feature. + MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + + // The desired configuration options for the PodSecurityPolicy feature. + PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + + // Cluster-level autoscaling configuration. + ClusterAutoscaling desired_cluster_autoscaling = 15; + + // The desired configuration options for the Binary Authorization feature. + BinaryAuthorization desired_binary_authorization = 16; + + // The logging service the cluster should use to write metrics. + // Currently available options: + // + // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging + // service with Kubernetes-native resource model in Stackdriver + // * "logging.googleapis.com" - the Google Cloud Logging service + // * "none" - no logs will be exported from the cluster + string desired_logging_service = 19; + + // The Kubernetes version to change the master to. The only valid value is the + // latest supported version. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the default Kubernetes version + string desired_master_version = 100; +} + +// This operation resource represents operations that may have happened or are +// happening on the cluster. All fields are output only. +message Operation { + // Current status of the operation. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The operation has been created. + PENDING = 1; + + // The operation is currently running. + RUNNING = 2; + + // The operation is done, either cancelled or completed. + DONE = 3; + + // The operation is aborting. + ABORTING = 4; + } + + // Operation type. + enum Type { + // Not set. + TYPE_UNSPECIFIED = 0; + + // Cluster create. + CREATE_CLUSTER = 1; + + // Cluster delete. + DELETE_CLUSTER = 2; + + // A master upgrade. + UPGRADE_MASTER = 3; + + // A node upgrade. + UPGRADE_NODES = 4; + + // Cluster repair. + REPAIR_CLUSTER = 5; + + // Cluster update. + UPDATE_CLUSTER = 6; + + // Node pool create. + CREATE_NODE_POOL = 7; + + // Node pool delete. + DELETE_NODE_POOL = 8; + + // Set node pool management. + SET_NODE_POOL_MANAGEMENT = 9; + + // Automatic node pool repair. + AUTO_REPAIR_NODES = 10; + + // Automatic node upgrade. + AUTO_UPGRADE_NODES = 11; + + // Set labels. + SET_LABELS = 12; + + // Set/generate master auth materials + SET_MASTER_AUTH = 13; + + // Set node pool size. + SET_NODE_POOL_SIZE = 14; + + // Updates network policy for a cluster. + SET_NETWORK_POLICY = 15; + + // Set the maintenance policy. + SET_MAINTENANCE_POLICY = 16; + } + + // The server-assigned ID for the operation. + string name = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the operation + // is taking place. + // This field is deprecated, use location instead. + string zone = 2 [deprecated = true]; + + // The operation type. + Type operation_type = 3; + + // The current status of the operation. + Status status = 4; + + // Detailed operation progress, if available. + string detail = 8; + + // If an error has occurred, a textual description of the error. + string status_message = 5; + + // Server-defined URL for the resource. + string self_link = 6; + + // Server-defined URL for the target of the operation. + string target_link = 7; + + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/regions-zones/regions-zones#available) or + // [region](/compute/docs/regions-zones/regions-zones#available) in which + // the cluster resides. + string location = 9; + + // [Output only] The time the operation started, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string start_time = 10; + + // [Output only] The time the operation completed, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string end_time = 11; + + // [Output only] Progress information for an operation. + OperationProgress progress = 12; + + // Which conditions caused the current cluster state. + repeated StatusCondition cluster_conditions = 13; + + // Which conditions caused the current node pool state. + repeated StatusCondition nodepool_conditions = 14; +} + +// Information about operation (or operation stage) progress. +message OperationProgress { + // Progress metric is (string, int|float|string) pair. + message Metric { + // Metric name, required. + // e.g., "nodes total", "percent done" + string name = 1; + + // Strictly one of the values is required. + oneof value { + // For metrics with integer value. + int64 int_value = 2; + + // For metrics with floating point value. + double double_value = 3; + + // For metrics with custom values (ratios, visual progress, etc.). + string string_value = 4; + } + } + + // A non-parameterized string describing an operation stage. + // Unset for single-stage operations. + string name = 1; + + // Status of an operation stage. + // Unset for single-stage operations. + Operation.Status status = 2; + + // Progress metric bundle, for example: + // metrics: [{name: "nodes done", int_value: 15}, + // {name: "nodes total", int_value: 32}] + // or + // metrics: [{name: "progress", double_value: 0.56}, + // {name: "progress scale", double_value: 1.0}] + repeated Metric metrics = 3; + + // Substages of an operation or a stage. + repeated OperationProgress stages = 4; +} + +// CreateClusterRequest creates a cluster. +message CreateClusterRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // A [cluster + // resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters) + Cluster cluster = 3; + + // The parent (project and location) where the cluster will be created. + // Specified in the format 'projects/*/locations/*'. + string parent = 5; +} + +// GetClusterRequest gets the settings of a cluster. +message GetClusterRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to retrieve. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster) of the cluster to retrieve. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; +} + +// UpdateClusterRequest updates the settings of a cluster. +message UpdateClusterRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // A description of the update. + ClusterUpdate update = 4; + + // The name (project, location, cluster) of the cluster to update. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; +} + +// SetNodePoolVersionRequest updates the version of a node pool. +message UpdateNodePoolRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to upgrade. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The Kubernetes version to change the nodes to (typically an + // upgrade). + // + // Users may specify either explicit versions offered by Kubernetes Engine or + // version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the Kubernetes master version + string node_version = 5; + + // The desired image type for the node pool. + string image_type = 6; + + // The name (project, location, cluster, node pool) of the node pool to + // update. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 8; +} + +// SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. +message SetNodePoolAutoscalingRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to upgrade. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // Autoscaling configuration for the node pool. + NodePoolAutoscaling autoscaling = 5; + + // The name (project, location, cluster, node pool) of the node pool to set + // autoscaler settings. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; +} + +// SetLoggingServiceRequest sets the logging service of a cluster. +message SetLoggingServiceRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The logging service the cluster should use to write metrics. + // Currently available options: + // + // * "logging.googleapis.com" - the Google Cloud Logging service + // * "none" - no metrics will be exported from the cluster + string logging_service = 4; + + // The name (project, location, cluster) of the cluster to set logging. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; +} + +// SetMonitoringServiceRequest sets the monitoring service of a cluster. +message SetMonitoringServiceRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The monitoring service the cluster should use to write metrics. + // Currently available options: + // + // * "monitoring.googleapis.com" - the Google Cloud Monitoring service + // * "none" - no metrics will be exported from the cluster + string monitoring_service = 4; + + // The name (project, location, cluster) of the cluster to set monitoring. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; +} + +// SetAddonsRequest sets the addons associated with the cluster. +message SetAddonsConfigRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The desired configurations for the various addons available to run in the + // cluster. + AddonsConfig addons_config = 4; + + // The name (project, location, cluster) of the cluster to set addons. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; +} + +// SetLocationsRequest sets the locations of the cluster. +message SetLocationsRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The desired list of Google Compute Engine + // [locations](/compute/docs/zones#available) in which the cluster's nodes + // should be located. Changing the locations a cluster is in will result + // in nodes being either created or removed from the cluster, depending on + // whether locations are being added or removed. + // + // This list must always include the cluster's primary zone. + repeated string locations = 4; + + // The name (project, location, cluster) of the cluster to set locations. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; +} + +// UpdateMasterRequest updates the master of the cluster. +message UpdateMasterRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The Kubernetes version to change the master to. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the default Kubernetes version + string master_version = 4; + + // The name (project, location, cluster) of the cluster to update. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; +} + +// SetMasterAuthRequest updates the admin password of a cluster. +message SetMasterAuthRequest { + // Operation type: what type update to perform. + enum Action { + // Operation is unknown and will error out. + UNKNOWN = 0; + + // Set the password to a user generated value. + SET_PASSWORD = 1; + + // Generate a new password and set it to that. + GENERATE_PASSWORD = 2; + + // Set the username. If an empty username is provided, basic authentication + // is disabled for the cluster. If a non-empty username is provided, basic + // authentication is enabled, with either a provided password or a generated + // one. + SET_USERNAME = 3; + } + + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to upgrade. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The exact form of action to be taken on the master auth. + Action action = 4; + + // A description of the update. + MasterAuth update = 5; + + // The name (project, location, cluster) of the cluster to set auth. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; +} + +// DeleteClusterRequest deletes a cluster. +message DeleteClusterRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to delete. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster) of the cluster to delete. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 4; +} + +// ListClustersRequest lists clusters. +message ListClustersRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides, or "-" for all zones. + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // The parent (project and location) where the clusters will be listed. + // Specified in the format 'projects/*/locations/*'. + // Location "-" matches all zones and all regions. + string parent = 4; +} + +// ListClustersResponse is the result of ListClustersRequest. +message ListClustersResponse { + // A list of clusters in the project in the specified zone, or + // across all ones. + repeated Cluster clusters = 1; + + // If any zones are listed here, the list of clusters returned + // may be missing those zones. + repeated string missing_zones = 2; +} + +// GetOperationRequest gets a single operation. +message GetOperationRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The server-assigned `name` of the operation. + // This field has been deprecated and replaced by the name field. + string operation_id = 3 [deprecated = true]; + + // The name (project, location, operation id) of the operation to get. + // Specified in the format 'projects/*/locations/*/operations/*'. + string name = 5; +} + +// ListOperationsRequest lists operations. +message ListOperationsRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) to return operations for, or `-` for + // all zones. This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // The parent (project and location) where the operations will be listed. + // Specified in the format 'projects/*/locations/*'. + // Location "-" matches all zones and all regions. + string parent = 4; +} + +// CancelOperationRequest cancels a single operation. +message CancelOperationRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the operation resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The server-assigned `name` of the operation. + // This field has been deprecated and replaced by the name field. + string operation_id = 3 [deprecated = true]; + + // The name (project, location, operation id) of the operation to cancel. + // Specified in the format 'projects/*/locations/*/operations/*'. + string name = 4; +} + +// ListOperationsResponse is the result of ListOperationsRequest. +message ListOperationsResponse { + // A list of operations in the project in the specified zone. + repeated Operation operations = 1; + + // If any zones are listed here, the list of operations returned + // may be missing the operations from those zones. + repeated string missing_zones = 2; +} + +// Gets the current Kubernetes Engine service configuration. +message GetServerConfigRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) to return operations for. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // The name (project and location) of the server config to get + // Specified in the format 'projects/*/locations/*'. + string name = 4; +} + +// Kubernetes Engine service configuration. +message ServerConfig { + // Version of Kubernetes the service deploys by default. + string default_cluster_version = 1; + + // List of valid node upgrade target versions. + repeated string valid_node_versions = 3; + + // Default image type. + string default_image_type = 4; + + // List of valid image types. + repeated string valid_image_types = 5; + + // List of valid master versions. + repeated string valid_master_versions = 6; +} + +// CreateNodePoolRequest creates a node pool for a cluster. +message CreateNodePoolRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the parent field. + string cluster_id = 3 [deprecated = true]; + + // The node pool to create. + NodePool node_pool = 4; + + // The parent (project, location, cluster id) where the node pool will be + // created. Specified in the format + // 'projects/*/locations/*/clusters/*'. + string parent = 6; +} + +// DeleteNodePoolRequest deletes a node pool for a cluster. +message DeleteNodePoolRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to delete. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The name (project, location, cluster, node pool id) of the node pool to + // delete. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; +} + +// ListNodePoolsRequest lists the node pool(s) for a cluster. +message ListNodePoolsRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the parent field. + string cluster_id = 3 [deprecated = true]; + + // The parent (project, location, cluster id) where the node pools will be + // listed. Specified in the format 'projects/*/locations/*/clusters/*'. + string parent = 5; +} + +// GetNodePoolRequest retrieves a node pool for a cluster. +message GetNodePoolRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The name (project, location, cluster, node pool id) of the node pool to + // get. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; +} + +// NodePool contains the name and configuration for a cluster's node pool. +// Node pools are a set of nodes (i.e. VM's), with a common configuration and +// specification, under the control of the cluster master. They may have a set +// of Kubernetes labels applied to them, which may be used to reference them +// during pod scheduling. They may also be resized up or down, to accommodate +// the workload. +message NodePool { + // The current status of the node pool instance. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The PROVISIONING state indicates the node pool is being created. + PROVISIONING = 1; + + // The RUNNING state indicates the node pool has been created + // and is fully usable. + RUNNING = 2; + + // The RUNNING_WITH_ERROR state indicates the node pool has been created + // and is partially usable. Some error state has occurred and some + // functionality may be impaired. Customer may need to reissue a request + // or trigger a new update. + RUNNING_WITH_ERROR = 3; + + // The RECONCILING state indicates that some work is actively being done on + // the node pool, such as upgrading node software. Details can + // be found in the `statusMessage` field. + RECONCILING = 4; + + // The STOPPING state indicates the node pool is being deleted. + STOPPING = 5; + + // The ERROR state indicates the node pool may be unusable. Details + // can be found in the `statusMessage` field. + ERROR = 6; + } + + // The name of the node pool. + string name = 1; + + // The node configuration of the pool. + NodeConfig config = 2; + + // The initial node count for the pool. You must ensure that your + // Compute Engine resource quota + // is sufficient for this number of instances. You must also have available + // firewall and routes quota. + int32 initial_node_count = 3; + + // [Output only] Server-defined URL for the resource. + string self_link = 100; + + // The version of the Kubernetes of this node. + string version = 101; + + // [Output only] The resource URLs of the [managed instance + // groups](/compute/docs/instance-groups/creating-groups-of-managed-instances) + // associated with this node pool. + repeated string instance_group_urls = 102; + + // [Output only] The status of the nodes in this pool instance. + Status status = 103; + + // [Output only] Additional information about the current status of this + // node pool instance, if available. + string status_message = 104; + + // Autoscaler configuration for this NodePool. Autoscaler is enabled + // only if a valid configuration is present. + NodePoolAutoscaling autoscaling = 4; + + // NodeManagement configuration for this NodePool. + NodeManagement management = 5; + + // The constraint on the maximum number of pods that can be run + // simultaneously on a node in the node pool. + MaxPodsConstraint max_pods_constraint = 6; + + // Which conditions caused the current node pool state. + repeated StatusCondition conditions = 105; +} + +// NodeManagement defines the set of node management services turned on for the +// node pool. +message NodeManagement { + // Whether the nodes will be automatically upgraded. + bool auto_upgrade = 1; + + // Whether the nodes will be automatically repaired. + bool auto_repair = 2; + + // Specifies the Auto Upgrade knobs for the node pool. + AutoUpgradeOptions upgrade_options = 10; +} + +// AutoUpgradeOptions defines the set of options for the user to control how +// the Auto Upgrades will proceed. +message AutoUpgradeOptions { + // [Output only] This field is set when upgrades are about to commence + // with the approximate start time for the upgrades, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string auto_upgrade_start_time = 1; + + // [Output only] This field is set when upgrades are about to commence + // with the description of the upgrade. + string description = 2; +} + +// MaintenancePolicy defines the maintenance policy to be used for the cluster. +message MaintenancePolicy { + // Specifies the maintenance window in which maintenance may be performed. + MaintenanceWindow window = 1; +} + +// MaintenanceWindow defines the maintenance window to be used for the cluster. +message MaintenanceWindow { + // Unimplemented, reserved for future use. + // HourlyMaintenanceWindow hourly_maintenance_window = 1; + oneof policy { + // DailyMaintenanceWindow specifies a daily maintenance operation window. + DailyMaintenanceWindow daily_maintenance_window = 2; + } +} + +// Time window specified for daily maintenance operations. +message DailyMaintenanceWindow { + // Time within the maintenance window to start the maintenance operations. + // It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT. + string start_time = 2; + + // [Output only] Duration of the time window, automatically chosen to be + // smallest possible in the given scenario. + string duration = 3; +} + +// SetNodePoolManagementRequest sets the node management properties of a node +// pool. +message SetNodePoolManagementRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to update. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // NodeManagement configuration for the node pool. + NodeManagement management = 5; + + // The name (project, location, cluster, node pool id) of the node pool to set + // management properties. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 7; +} + +// SetNodePoolSizeRequest sets the size a node +// pool. +message SetNodePoolSizeRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to update. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The desired node count for the pool. + int32 node_count = 5; + + // The name (project, location, cluster, node pool id) of the node pool to set + // size. + // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 7; +} + +// RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed +// NodePool upgrade. This will be an no-op if the last upgrade successfully +// completed. +message RollbackNodePoolUpgradeRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to rollback. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to rollback. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The name (project, location, cluster, node pool id) of the node poll to + // rollback upgrade. + // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; +} + +// ListNodePoolsResponse is the result of ListNodePoolsRequest. +message ListNodePoolsResponse { + // A list of node pools for a cluster. + repeated NodePool node_pools = 1; +} + +// ClusterAutoscaling contains global, per-cluster information +// required by Cluster Autoscaler to automatically adjust +// the size of the cluster and create/delete +// node pools based on the current needs. +message ClusterAutoscaling { + // Enables automatic node pool creation and deletion. + bool enable_node_autoprovisioning = 1; + + // Contains global constraints regarding minimum and maximum + // amount of resources in the cluster. + repeated ResourceLimit resource_limits = 2; +} + +// Contains information about amount of some resource in the cluster. +// For memory, value should be in GB. +message ResourceLimit { + // Resource name "cpu", "memory" or gpu-specific string. + string resource_type = 1; + + // Minimum amount of the resource in the cluster. + int64 minimum = 2; + + // Maximum amount of the resource in the cluster. + int64 maximum = 3; +} + +// NodePoolAutoscaling contains information required by cluster autoscaler to +// adjust the size of the node pool to the current cluster usage. +message NodePoolAutoscaling { + // Is autoscaling enabled for this node pool. + bool enabled = 1; + + // Minimum number of nodes in the NodePool. Must be >= 1 and <= + // max_node_count. + int32 min_node_count = 2; + + // Maximum number of nodes in the NodePool. Must be >= min_node_count. There + // has to enough quota to scale up the cluster. + int32 max_node_count = 3; + + // Can this node pool be deleted automatically. + bool autoprovisioned = 4; +} + +// SetLabelsRequest sets the Google Cloud Platform labels on a Google Container +// Engine cluster, which will in turn set them for Google Compute Engine +// resources used by that cluster +message SetLabelsRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The labels to set for that cluster. + map resource_labels = 4; + + // The fingerprint of the previous set of labels for this resource, + // used to detect conflicts. The fingerprint is initially generated by + // Kubernetes Engine and changes after every request to modify or update + // labels. You must always provide an up-to-date fingerprint hash when + // updating or changing labels. Make a get() request to the + // resource to get the latest fingerprint. + string label_fingerprint = 5; + + // The name (project, location, cluster id) of the cluster to set labels. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; +} + +// SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for +// a cluster. +message SetLegacyAbacRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Whether ABAC authorization will be enabled in the cluster. + bool enabled = 4; + + // The name (project, location, cluster id) of the cluster to set legacy abac. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; +} + +// StartIPRotationRequest creates a new IP for the cluster and then performs +// a node upgrade on each node pool to point to the new IP. +message StartIPRotationRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster id) of the cluster to start IP + // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; + + // Whether to rotate credentials during IP rotation. + bool rotate_credentials = 7; +} + +// CompleteIPRotationRequest moves the cluster master back into single-IP mode. +message CompleteIPRotationRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster id) of the cluster to complete IP + // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; +} + +// AcceleratorConfig represents a Hardware Accelerator request. +message AcceleratorConfig { + // The number of the accelerator cards exposed to an instance. + int64 accelerator_count = 1; + + // The accelerator type resource name. List of supported accelerators + // [here](/compute/docs/gpus/#Introduction) + string accelerator_type = 2; +} + +// WorkloadMetadataConfig defines the metadata configuration to expose to +// workloads on the node pool. +message WorkloadMetadataConfig { + // NodeMetadata is the configuration for if and how to expose the node + // metadata to the workload running on the node. + enum NodeMetadata { + // Not set. + UNSPECIFIED = 0; + + // Prevent workloads not in hostNetwork from accessing certain VM metadata, + // specifically kube-env, which contains Kubelet credentials, and the + // instance identity token. + // + // Metadata concealment is a temporary security solution available while the + // bootstrapping process for cluster nodes is being redesigned with + // significant security improvements. This feature is scheduled to be + // deprecated in the future and later removed. + SECURE = 1; + + // Expose all VM metadata to pods. + EXPOSE = 2; + } + + // NodeMetadata is the configuration for how to expose the node metadata to + // the workload running on the node. + NodeMetadata node_metadata = 1; +} + +// SetNetworkPolicyRequest enables/disables network policy for a cluster. +message SetNetworkPolicyRequest { + // Deprecated. The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Configuration options for the NetworkPolicy feature. + NetworkPolicy network_policy = 4; + + // The name (project, location, cluster id) of the cluster to set networking + // policy. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; +} + +// SetMaintenancePolicyRequest sets the maintenance policy for a cluster. +message SetMaintenancePolicyRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to update. + string cluster_id = 3; + + // The maintenance policy to be set for the cluster. An empty field + // clears the existing maintenance policy. + MaintenancePolicy maintenance_policy = 4; + + // The name (project, location, cluster id) of the cluster to set maintenance + // policy. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; +} + +// ListLocationsRequest is used to request the locations that offer GKE. +message ListLocationsRequest { + // Contains the name of the resource requested. + // Specified in the format 'projects/*'. + string parent = 1; +} + +// ListLocationsResponse returns the list of all GKE locations and their +// recommendation state. +message ListLocationsResponse { + // A full list of GKE locations. + repeated Location locations = 1; + + // Only return ListLocationsResponse that occur after the page_token. This + // value should be populated from the ListLocationsResponse.next_page_token if + // that response token was set (which happens when listing more Locations than + // fit in a single ListLocationsResponse). + string next_page_token = 2; +} + +// Location returns the location name, and if the location is recommended +// for GKE cluster scheduling. +message Location { + // LocationType is the type of GKE location, regional or zonal. + enum LocationType { + // LOCATION_TYPE_UNSPECIFIED means the location type was not determined. + LOCATION_TYPE_UNSPECIFIED = 0; + + // A GKE Location where Zonal clusters can be created. + ZONE = 1; + + // A GKE Location where Regional clusters can be created. + REGION = 2; + } + + // Contains the type of location this Location is for. + // Regional or Zonal. + LocationType type = 1; + + // Contains the name of the resource requested. + // Specified in the format 'projects/*/locations/*'. + string name = 2; + + // Whether the location is recomended for GKE cluster scheduling. + bool recommended = 3; +} + +// StatusCondition describes why a cluster or a node pool has a certain status +// (e.g., ERROR or DEGRADED). +message StatusCondition { + // Code for each condition + enum Code { + // UNKNOWN indicates a generic condition. + UNKNOWN = 0; + + // GCE_STOCKOUT indicates a GCE stockout. + GCE_STOCKOUT = 1; + + // GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot + // service account. + // More codes TBA + GKE_SERVICE_ACCOUNT_DELETED = 2; + } + + // Machine-friendly representation of the condition + Code code = 1; + + // Human-friendly representation of the condition + string message = 2; +} + +// NetworkConfig reports the relative names of network & subnetwork. +message NetworkConfig { + // Output only. The relative name of the Google Compute Engine + // [network][google.container.v1beta1.NetworkConfig.network](/compute/docs/networks-and-firewalls#networks) to which + // the cluster is connected. + // Example: projects/my-project/global/networks/my-network + string network = 1; + + // Output only. The relative name of the Google Compute Engine + // [subnetwork](/compute/docs/vpc) to which the cluster is connected. + // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + string subnetwork = 2; +} + +// ListUsableSubnetworksRequest requests the list of usable subnetworks. +// available to a user for creating clusters. +message ListUsableSubnetworksRequest { + // The parent project where subnetworks are usable. + // Specified in the format 'projects/*'. + string parent = 1; + + // Filtering currently only supports equality on the networkProjectId and must + // be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + // is the project which owns the listed subnetworks. This defaults to the + // parent project ID. + string filter = 2; + + // The max number of results per page that should be returned. If the number + // of available results is larger than `page_size`, a `next_page_token` is + // returned which can be used to get the next page of results in subsequent + // requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + int32 page_size = 3; + + // Specifies a page token to use. Set this to the nextPageToken returned by + // previous list requests to get the next page of results. + string page_token = 4; +} + +// ListUsableSubnetworksResponse is the response of +// ListUsableSubnetworksRequest. +message ListUsableSubnetworksResponse { + // A list of usable subnetworks in the specified network project. + repeated UsableSubnetwork subnetworks = 1; + + // This token allows you to get the next page of results for list requests. + // If the number of results is larger than `page_size`, use the + // `next_page_token` as a value for the query parameter `page_token` in the + // next request. The value will become empty when there are no more pages. + string next_page_token = 2; +} + +// Secondary IP range of a usable subnetwork. +message UsableSubnetworkSecondaryRange { + // Status shows the current usage of a secondary IP range. + enum Status { + // UNKNOWN is the zero value of the Status enum. It's not a valid status. + UNKNOWN = 0; + + // UNUSED denotes that this range is unclaimed by any cluster. + UNUSED = 1; + + // IN_USE_SERVICE denotes that this range is claimed by a cluster for + // services. It cannot be used for other clusters. + IN_USE_SERVICE = 2; + + // IN_USE_SHAREABLE_POD denotes this range was created by the network admin + // and is currently claimed by a cluster for pods. It can only be used by + // other clusters as a pod range. + IN_USE_SHAREABLE_POD = 3; + + // IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed + // for pods. It cannot be used for other clusters. + IN_USE_MANAGED_POD = 4; + } + + // The name associated with this subnetwork secondary range, used when adding + // an alias IP range to a VM instance. + string range_name = 1; + + // The range of IP addresses belonging to this subnetwork secondary range. + string ip_cidr_range = 2; + + // This field is to determine the status of the secondary range programmably. + Status status = 3; +} + +// UsableSubnetwork resource returns the subnetwork name, its associated network +// and the primary CIDR range. +message UsableSubnetwork { + // Subnetwork Name. + // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + string subnetwork = 1; + + // Network Name. + // Example: projects/my-project/global/networks/my-network + string network = 2; + + // The range of internal addresses that are owned by this subnetwork. + string ip_cidr_range = 3; + + // Secondary IP ranges. + repeated UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + + // A human readable status message representing the reasons for cases where + // the caller cannot use the secondary ranges under the subnet. For example if + // the secondary_ip_ranges is empty due to a permission issue, an insufficient + // permission message will be given by status_message. + string status_message = 5; +} + +// Constraints applied to pods. +message MaxPodsConstraint { + // Constraint enforced on the max num of pods per node. + int64 max_pods_per_node = 1; +} diff --git a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java index 18eb318c459e..8a008d757ffe 100644 --- a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java +++ b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java @@ -15,52 +15,61 @@ */ package com.google.cloud.container.v1; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.container.v1.stub.ClusterManagerStub; import com.google.cloud.container.v1.stub.ClusterManagerStubSettings; -import com.google.container.v1.AddonsConfig; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.ClusterUpdate; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.MaintenancePolicy; -import com.google.container.v1.NetworkPolicy; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; +import com.google.container.v1beta1.UsableSubnetwork; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -69,7 +78,7 @@ // AUTO-GENERATED DOCUMENTATION AND SERVICE /** - * Service Description: Google Container Engine Cluster Manager v1 + * Service Description: Google Kubernetes Engine Cluster Manager v1beta1 * *

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: @@ -77,9 +86,8 @@ *

  * 
  * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
- *   String projectId = "";
- *   String zone = "";
- *   ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone);
+ *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
+ *   ListClustersResponse response = clusterManagerClient.listClusters(formattedParent);
  * }
  * 
  * 
@@ -140,6 +148,148 @@ public class ClusterManagerClient implements BackgroundResource { private final ClusterManagerSettings settings; private final ClusterManagerStub stub; + private static final PathTemplate PROJECT_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + + private static final PathTemplate LOCATION_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + + private static final PathTemplate CLUSTER_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/clusters/{cluster}"); + + private static final PathTemplate NODE_POOL_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}"); + + private static final PathTemplate OPERATION_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/operations/{operation}"); + + /** Formats a string containing the fully-qualified path to represent a project resource. */ + public static final String formatProjectName(String project) { + return PROJECT_PATH_TEMPLATE.instantiate("project", project); + } + + /** Formats a string containing the fully-qualified path to represent a location resource. */ + public static final String formatLocationName(String project, String location) { + return LOCATION_PATH_TEMPLATE.instantiate( + "project", project, + "location", location); + } + + /** Formats a string containing the fully-qualified path to represent a cluster resource. */ + public static final String formatClusterName(String project, String location, String cluster) { + return CLUSTER_PATH_TEMPLATE.instantiate( + "project", project, + "location", location, + "cluster", cluster); + } + + /** Formats a string containing the fully-qualified path to represent a node_pool resource. */ + public static final String formatNodePoolName( + String project, String location, String cluster, String nodePool) { + return NODE_POOL_PATH_TEMPLATE.instantiate( + "project", project, + "location", location, + "cluster", cluster, + "node_pool", nodePool); + } + + /** Formats a string containing the fully-qualified path to represent a operation resource. */ + public static final String formatOperationName( + String project, String location, String operation) { + return OPERATION_PATH_TEMPLATE.instantiate( + "project", project, + "location", location, + "operation", operation); + } + + /** Parses the project from the given fully-qualified path which represents a project resource. */ + public static final String parseProjectFromProjectName(String projectName) { + return PROJECT_PATH_TEMPLATE.parse(projectName).get("project"); + } + + /** + * Parses the project from the given fully-qualified path which represents a location resource. + */ + public static final String parseProjectFromLocationName(String locationName) { + return LOCATION_PATH_TEMPLATE.parse(locationName).get("project"); + } + + /** + * Parses the location from the given fully-qualified path which represents a location resource. + */ + public static final String parseLocationFromLocationName(String locationName) { + return LOCATION_PATH_TEMPLATE.parse(locationName).get("location"); + } + + /** Parses the project from the given fully-qualified path which represents a cluster resource. */ + public static final String parseProjectFromClusterName(String clusterName) { + return CLUSTER_PATH_TEMPLATE.parse(clusterName).get("project"); + } + + /** + * Parses the location from the given fully-qualified path which represents a cluster resource. + */ + public static final String parseLocationFromClusterName(String clusterName) { + return CLUSTER_PATH_TEMPLATE.parse(clusterName).get("location"); + } + + /** Parses the cluster from the given fully-qualified path which represents a cluster resource. */ + public static final String parseClusterFromClusterName(String clusterName) { + return CLUSTER_PATH_TEMPLATE.parse(clusterName).get("cluster"); + } + + /** + * Parses the project from the given fully-qualified path which represents a node_pool resource. + */ + public static final String parseProjectFromNodePoolName(String nodePoolName) { + return NODE_POOL_PATH_TEMPLATE.parse(nodePoolName).get("project"); + } + + /** + * Parses the location from the given fully-qualified path which represents a node_pool resource. + */ + public static final String parseLocationFromNodePoolName(String nodePoolName) { + return NODE_POOL_PATH_TEMPLATE.parse(nodePoolName).get("location"); + } + + /** + * Parses the cluster from the given fully-qualified path which represents a node_pool resource. + */ + public static final String parseClusterFromNodePoolName(String nodePoolName) { + return NODE_POOL_PATH_TEMPLATE.parse(nodePoolName).get("cluster"); + } + + /** + * Parses the node_pool from the given fully-qualified path which represents a node_pool resource. + */ + public static final String parseNodePoolFromNodePoolName(String nodePoolName) { + return NODE_POOL_PATH_TEMPLATE.parse(nodePoolName).get("node_pool"); + } + + /** + * Parses the project from the given fully-qualified path which represents a operation resource. + */ + public static final String parseProjectFromOperationName(String operationName) { + return OPERATION_PATH_TEMPLATE.parse(operationName).get("project"); + } + + /** + * Parses the location from the given fully-qualified path which represents a operation resource. + */ + public static final String parseLocationFromOperationName(String operationName) { + return OPERATION_PATH_TEMPLATE.parse(operationName).get("location"); + } + + /** + * Parses the operation from the given fully-qualified path which represents a operation resource. + */ + public static final String parseOperationFromOperationName(String operationName) { + return OPERATION_PATH_TEMPLATE.parse(operationName).get("operation"); + } + /** Constructs an instance of ClusterManagerClient with default settings. */ public static final ClusterManagerClient create() throws IOException { return create(ClusterManagerSettings.newBuilder().build()); @@ -196,22 +346,19 @@ public ClusterManagerStub getStub() { * *

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone);
+   *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
+   *   ListClustersResponse response = clusterManagerClient.listClusters(formattedParent);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides, or "-" for all zones. + * @param parent The parent (project and location) where the clusters will be listed. Specified in + * the format 'projects/*/locations/*'. Location "-" matches all zones and all + * regions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersResponse listClusters(String projectId, String zone) { - - ListClustersRequest request = - ListClustersRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); + public final ListClustersResponse listClusters(String parent) { + LOCATION_PATH_TEMPLATE.validate(parent, "listClusters"); + ListClustersRequest request = ListClustersRequest.newBuilder().setParent(parent).build(); return listClusters(request); } @@ -223,11 +370,9 @@ public final ListClustersResponse listClusters(String projectId, String zone) { * *

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
+   *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
    *   ListClustersRequest request = ListClustersRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
+   *     .setParent(formattedParent)
    *     .build();
    *   ListClustersResponse response = clusterManagerClient.listClusters(request);
    * }
@@ -248,11 +393,9 @@ public final ListClustersResponse listClusters(ListClustersRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
+   *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
    *   ListClustersRequest request = ListClustersRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
+   *     .setParent(formattedParent)
    *     .build();
    *   ApiFuture<ListClustersResponse> future = clusterManagerClient.listClustersCallable().futureCall(request);
    *   // Do something
@@ -266,52 +409,38 @@ public final UnaryCallable listCluste
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Gets the details of a specific cluster.
+   * Gets the details for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   Cluster response = clusterManagerClient.getCluster(projectId, zone, clusterId);
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   Cluster response = clusterManagerClient.getCluster(formattedName);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to retrieve. + * @param name The name (project, location, cluster) of the cluster to retrieve. Specified in the + * format 'projects/*/locations/*/clusters/*'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(String projectId, String zone, String clusterId) { - - GetClusterRequest request = - GetClusterRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .build(); + public final Cluster getCluster(String name) { + CLUSTER_PATH_TEMPLATE.validate(name, "getCluster"); + GetClusterRequest request = GetClusterRequest.newBuilder().setName(name).build(); return getCluster(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets the details of a specific cluster. + * Gets the details for a specific cluster. * *

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   GetClusterRequest request = GetClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
+   *     .setName(formattedName)
    *     .build();
    *   Cluster response = clusterManagerClient.getCluster(request);
    * }
@@ -326,19 +455,15 @@ public final Cluster getCluster(GetClusterRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Gets the details of a specific cluster.
+   * Gets the details for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   GetClusterRequest request = GetClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Cluster> future = clusterManagerClient.getClusterCallable().futureCall(request);
    *   // Do something
@@ -369,29 +494,22 @@ public final UnaryCallable getClusterCallable() {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
    *   Cluster cluster = Cluster.newBuilder().build();
-   *   Operation response = clusterManagerClient.createCluster(projectId, zone, cluster);
+   *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
+   *   Operation response = clusterManagerClient.createCluster(cluster, formattedParent);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. * @param cluster A [cluster - * resource](/container-engine/reference/rest/v1/projects.zones.clusters) + * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters) + * @param parent The parent (project and location) where the cluster will be created. Specified in + * the format 'projects/*/locations/*'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Operation createCluster(String projectId, String zone, Cluster cluster) { - + public final Operation createCluster(Cluster cluster, String parent) { + LOCATION_PATH_TEMPLATE.validate(parent, "createCluster"); CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setCluster(cluster) - .build(); + CreateClusterRequest.newBuilder().setCluster(cluster).setParent(parent).build(); return createCluster(request); } @@ -414,13 +532,11 @@ public final Operation createCluster(String projectId, String zone, Cluster clus * *

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
    *   Cluster cluster = Cluster.newBuilder().build();
+   *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
    *   CreateClusterRequest request = CreateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
    *     .setCluster(cluster)
+   *     .setParent(formattedParent)
    *     .build();
    *   Operation response = clusterManagerClient.createCluster(request);
    * }
@@ -452,13 +568,11 @@ public final Operation createCluster(CreateClusterRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
    *   Cluster cluster = Cluster.newBuilder().build();
+   *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
    *   CreateClusterRequest request = CreateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
    *     .setCluster(cluster)
+   *     .setParent(formattedParent)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.createClusterCallable().futureCall(request);
    *   // Do something
@@ -472,58 +586,17 @@ public final UnaryCallable createClusterCallabl
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Updates the settings of a specific cluster.
+   * Updates the settings for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   ClusterUpdate update = ClusterUpdate.newBuilder().build();
-   *   Operation response = clusterManagerClient.updateCluster(projectId, zone, clusterId, update);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to upgrade. - * @param update A description of the update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation updateCluster( - String projectId, String zone, String clusterId, ClusterUpdate update) { - - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setUpdate(update) - .build(); - return updateCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Updates the settings of a specific cluster. - * - *

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   ClusterUpdate update = ClusterUpdate.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   UpdateClusterRequest request = UpdateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setUpdate(update)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.updateCluster(request);
    * }
@@ -538,21 +611,17 @@ public final Operation updateCluster(UpdateClusterRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Updates the settings of a specific cluster.
+   * Updates the settings for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   ClusterUpdate update = ClusterUpdate.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   UpdateClusterRequest request = UpdateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setUpdate(update)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.updateClusterCallable().futureCall(request);
    *   // Do something
@@ -572,19 +641,13 @@ public final UnaryCallable updateClusterCallabl
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
    *   String nodeVersion = "";
    *   String imageType = "";
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   UpdateNodePoolRequest request = UpdateNodePoolRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
    *     .setNodeVersion(nodeVersion)
    *     .setImageType(imageType)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.updateNodePool(request);
    * }
@@ -605,19 +668,13 @@ public final Operation updateNodePool(UpdateNodePoolRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
    *   String nodeVersion = "";
    *   String imageType = "";
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   UpdateNodePoolRequest request = UpdateNodePoolRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
    *     .setNodeVersion(nodeVersion)
    *     .setImageType(imageType)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.updateNodePoolCallable().futureCall(request);
    *   // Do something
@@ -637,17 +694,11 @@ public final UnaryCallable updateNodePoolCalla
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
    *   NodePoolAutoscaling autoscaling = NodePoolAutoscaling.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   SetNodePoolAutoscalingRequest request = SetNodePoolAutoscalingRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
    *     .setAutoscaling(autoscaling)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.setNodePoolAutoscaling(request);
    * }
@@ -668,17 +719,11 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
    *   NodePoolAutoscaling autoscaling = NodePoolAutoscaling.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   SetNodePoolAutoscalingRequest request = SetNodePoolAutoscalingRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
    *     .setAutoscaling(autoscaling)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.setNodePoolAutoscalingCallable().futureCall(request);
    *   // Do something
@@ -693,61 +738,17 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Sets the logging service of a specific cluster.
-   *
-   * 

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String loggingService = "";
-   *   Operation response = clusterManagerClient.setLoggingService(projectId, zone, clusterId, loggingService);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to upgrade. - * @param loggingService The logging service the cluster should use to write metrics. Currently - * available options: - *

* "logging.googleapis.com" - the Google Cloud Logging service * "none" - no - * metrics will be exported from the cluster - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLoggingService( - String projectId, String zone, String clusterId, String loggingService) { - - SetLoggingServiceRequest request = - SetLoggingServiceRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setLoggingService(loggingService) - .build(); - return setLoggingService(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets the logging service of a specific cluster. + * Sets the logging service for a specific cluster. * *

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   String loggingService = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetLoggingServiceRequest request = SetLoggingServiceRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setLoggingService(loggingService)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.setLoggingService(request);
    * }
@@ -762,21 +763,17 @@ public final Operation setLoggingService(SetLoggingServiceRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Sets the logging service of a specific cluster.
+   * Sets the logging service for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   String loggingService = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetLoggingServiceRequest request = SetLoggingServiceRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setLoggingService(loggingService)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.setLoggingServiceCallable().futureCall(request);
    *   // Do something
@@ -790,61 +787,17 @@ public final UnaryCallable setLoggingServic
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Sets the monitoring service of a specific cluster.
+   * Sets the monitoring service for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String monitoringService = "";
-   *   Operation response = clusterManagerClient.setMonitoringService(projectId, zone, clusterId, monitoringService);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to upgrade. - * @param monitoringService The monitoring service the cluster should use to write metrics. - * Currently available options: - *

* "monitoring.googleapis.com" - the Google Cloud Monitoring service * "none" - - * no metrics will be exported from the cluster - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setMonitoringService( - String projectId, String zone, String clusterId, String monitoringService) { - - SetMonitoringServiceRequest request = - SetMonitoringServiceRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setMonitoringService(monitoringService) - .build(); - return setMonitoringService(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets the monitoring service of a specific cluster. - * - *

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   String monitoringService = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetMonitoringServiceRequest request = SetMonitoringServiceRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setMonitoringService(monitoringService)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.setMonitoringService(request);
    * }
@@ -859,21 +812,17 @@ public final Operation setMonitoringService(SetMonitoringServiceRequest request)
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Sets the monitoring service of a specific cluster.
+   * Sets the monitoring service for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   String monitoringService = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetMonitoringServiceRequest request = SetMonitoringServiceRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setMonitoringService(monitoringService)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.setMonitoringServiceCallable().futureCall(request);
    *   // Do something
@@ -888,59 +837,17 @@ public final Operation setMonitoringService(SetMonitoringServiceRequest request)
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Sets the addons of a specific cluster.
+   * Sets the addons for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   AddonsConfig addonsConfig = AddonsConfig.newBuilder().build();
-   *   Operation response = clusterManagerClient.setAddonsConfig(projectId, zone, clusterId, addonsConfig);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to upgrade. - * @param addonsConfig The desired configurations for the various addons available to run in the - * cluster. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setAddonsConfig( - String projectId, String zone, String clusterId, AddonsConfig addonsConfig) { - - SetAddonsConfigRequest request = - SetAddonsConfigRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setAddonsConfig(addonsConfig) - .build(); - return setAddonsConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets the addons of a specific cluster. - * - *

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   AddonsConfig addonsConfig = AddonsConfig.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetAddonsConfigRequest request = SetAddonsConfigRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setAddonsConfig(addonsConfig)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.setAddonsConfig(request);
    * }
@@ -955,21 +862,17 @@ public final Operation setAddonsConfig(SetAddonsConfigRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Sets the addons of a specific cluster.
+   * Sets the addons for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   AddonsConfig addonsConfig = AddonsConfig.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetAddonsConfigRequest request = SetAddonsConfigRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setAddonsConfig(addonsConfig)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.setAddonsConfigCallable().futureCall(request);
    *   // Do something
@@ -983,62 +886,17 @@ public final UnaryCallable setAddonsConfigCal
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Sets the locations of a specific cluster.
-   *
-   * 

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   List<String> locations = new ArrayList<>();
-   *   Operation response = clusterManagerClient.setLocations(projectId, zone, clusterId, locations);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to upgrade. - * @param locations The desired list of Google Compute Engine - * [locations](/compute/docs/zones#available) in which the cluster's nodes should be located. - * Changing the locations a cluster is in will result in nodes being either created or removed - * from the cluster, depending on whether locations are being added or removed. - *

This list must always include the cluster's primary zone. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLocations( - String projectId, String zone, String clusterId, List locations) { - - SetLocationsRequest request = - SetLocationsRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .addAllLocations(locations) - .build(); - return setLocations(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets the locations of a specific cluster. + * Sets the locations for a specific cluster. * *

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   List<String> locations = new ArrayList<>();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetLocationsRequest request = SetLocationsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .addAllLocations(locations)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.setLocations(request);
    * }
@@ -1053,21 +911,17 @@ public final Operation setLocations(SetLocationsRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Sets the locations of a specific cluster.
+   * Sets the locations for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   List<String> locations = new ArrayList<>();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetLocationsRequest request = SetLocationsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .addAllLocations(locations)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.setLocationsCallable().futureCall(request);
    *   // Do something
@@ -1081,60 +935,17 @@ public final UnaryCallable setLocationsCallable(
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Updates the master of a specific cluster.
-   *
-   * 

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String masterVersion = "";
-   *   Operation response = clusterManagerClient.updateMaster(projectId, zone, clusterId, masterVersion);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to upgrade. - * @param masterVersion The Kubernetes version to change the master to. The only valid value is - * the latest supported version. Use "-" to have the server automatically select the latest - * version. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation updateMaster( - String projectId, String zone, String clusterId, String masterVersion) { - - UpdateMasterRequest request = - UpdateMasterRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setMasterVersion(masterVersion) - .build(); - return updateMaster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Updates the master of a specific cluster. + * Updates the master for a specific cluster. * *

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   String masterVersion = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   UpdateMasterRequest request = UpdateMasterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setMasterVersion(masterVersion)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.updateMaster(request);
    * }
@@ -1149,21 +960,17 @@ public final Operation updateMaster(UpdateMasterRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Updates the master of a specific cluster.
+   * Updates the master for a specific cluster.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   String masterVersion = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   UpdateMasterRequest request = UpdateMasterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setMasterVersion(masterVersion)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.updateMasterCallable().futureCall(request);
    *   // Do something
@@ -1177,24 +984,21 @@ public final UnaryCallable updateMasterCallable(
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Used to set master auth materials. Currently supports :- Changing the admin password of a
-   * specific cluster. This can be either via password generation or explicitly set the password.
+   * Used to set master auth materials. Currently supports :- Changing the admin password for a
+   * specific cluster. This can be either via password generation or explicitly set. Modify
+   * basic_auth.csv and reset the K8S API server.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   SetMasterAuthRequest.Action action = SetMasterAuthRequest.Action.UNKNOWN;
    *   MasterAuth update = MasterAuth.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetMasterAuthRequest request = SetMasterAuthRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setAction(action)
    *     .setUpdate(update)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.setMasterAuth(request);
    * }
@@ -1209,24 +1013,21 @@ public final Operation setMasterAuth(SetMasterAuthRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Used to set master auth materials. Currently supports :- Changing the admin password of a
-   * specific cluster. This can be either via password generation or explicitly set the password.
+   * Used to set master auth materials. Currently supports :- Changing the admin password for a
+   * specific cluster. This can be either via password generation or explicitly set. Modify
+   * basic_auth.csv and reset the K8S API server.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   SetMasterAuthRequest.Action action = SetMasterAuthRequest.Action.UNKNOWN;
    *   MasterAuth update = MasterAuth.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetMasterAuthRequest request = SetMasterAuthRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setAction(action)
    *     .setUpdate(update)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.setMasterAuthCallable().futureCall(request);
    *   // Do something
@@ -1251,28 +1052,18 @@ public final UnaryCallable setMasterAuthCallabl
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   Operation response = clusterManagerClient.deleteCluster(projectId, zone, clusterId);
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   Operation response = clusterManagerClient.deleteCluster(formattedName);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to delete. + * @param name The name (project, location, cluster) of the cluster to delete. Specified in the + * format 'projects/*/locations/*/clusters/*'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Operation deleteCluster(String projectId, String zone, String clusterId) { - - DeleteClusterRequest request = - DeleteClusterRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .build(); + public final Operation deleteCluster(String name) { + CLUSTER_PATH_TEMPLATE.validate(name, "deleteCluster"); + DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name).build(); return deleteCluster(request); } @@ -1289,13 +1080,9 @@ public final Operation deleteCluster(String projectId, String zone, String clust * *

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   DeleteClusterRequest request = DeleteClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.deleteCluster(request);
    * }
@@ -1321,13 +1108,9 @@ public final Operation deleteCluster(DeleteClusterRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   DeleteClusterRequest request = DeleteClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.deleteClusterCallable().futureCall(request);
    *   // Do something
@@ -1347,22 +1130,19 @@ public final UnaryCallable deleteClusterCallabl
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   ListOperationsResponse response = clusterManagerClient.listOperations(projectId, zone);
+   *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
+   *   ListOperationsResponse response = clusterManagerClient.listOperations(formattedParent);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) to - * return operations for, or `-` for all zones. + * @param parent The parent (project and location) where the operations will be listed. Specified + * in the format 'projects/*/locations/*'. Location "-" matches all zones and all + * regions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOperationsResponse listOperations(String projectId, String zone) { - - ListOperationsRequest request = - ListOperationsRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); + public final ListOperationsResponse listOperations(String parent) { + LOCATION_PATH_TEMPLATE.validate(parent, "listOperations"); + ListOperationsRequest request = ListOperationsRequest.newBuilder().setParent(parent).build(); return listOperations(request); } @@ -1374,11 +1154,9 @@ public final ListOperationsResponse listOperations(String projectId, String zone * *

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
+   *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
    *   ListOperationsRequest request = ListOperationsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
+   *     .setParent(formattedParent)
    *     .build();
    *   ListOperationsResponse response = clusterManagerClient.listOperations(request);
    * }
@@ -1399,11 +1177,9 @@ public final ListOperationsResponse listOperations(ListOperationsRequest request
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
+   *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
    *   ListOperationsRequest request = ListOperationsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
+   *     .setParent(formattedParent)
    *     .build();
    *   ApiFuture<ListOperationsResponse> future = clusterManagerClient.listOperationsCallable().futureCall(request);
    *   // Do something
@@ -1424,28 +1200,18 @@ public final ListOperationsResponse listOperations(ListOperationsRequest request
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String operationId = "";
-   *   Operation response = clusterManagerClient.getOperation(projectId, zone, operationId);
+   *   String formattedName = ClusterManagerClient.formatOperationName("[PROJECT]", "[LOCATION]", "[OPERATION]");
+   *   Operation response = clusterManagerClient.getOperation(formattedName);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param operationId The server-assigned `name` of the operation. + * @param name The name (project, location, operation id) of the operation to get. Specified in + * the format 'projects/*/locations/*/operations/*'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Operation getOperation(String projectId, String zone, String operationId) { - - GetOperationRequest request = - GetOperationRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setOperationId(operationId) - .build(); + public final Operation getOperation(String name) { + OPERATION_PATH_TEMPLATE.validate(name, "getOperation"); + GetOperationRequest request = GetOperationRequest.newBuilder().setName(name).build(); return getOperation(request); } @@ -1457,13 +1223,9 @@ public final Operation getOperation(String projectId, String zone, String operat * *

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String operationId = "";
+   *   String formattedName = ClusterManagerClient.formatOperationName("[PROJECT]", "[LOCATION]", "[OPERATION]");
    *   GetOperationRequest request = GetOperationRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setOperationId(operationId)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.getOperation(request);
    * }
@@ -1484,13 +1246,9 @@ public final Operation getOperation(GetOperationRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String operationId = "";
+   *   String formattedName = ClusterManagerClient.formatOperationName("[PROJECT]", "[LOCATION]", "[OPERATION]");
    *   GetOperationRequest request = GetOperationRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setOperationId(operationId)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.getOperationCallable().futureCall(request);
    *   // Do something
@@ -1510,28 +1268,18 @@ public final UnaryCallable getOperationCallable(
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String operationId = "";
-   *   clusterManagerClient.cancelOperation(projectId, zone, operationId);
+   *   String formattedName = ClusterManagerClient.formatOperationName("[PROJECT]", "[LOCATION]", "[OPERATION]");
+   *   clusterManagerClient.cancelOperation(formattedName);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the operation resides. - * @param operationId The server-assigned `name` of the operation. + * @param name The name (project, location, operation id) of the operation to cancel. Specified in + * the format 'projects/*/locations/*/operations/*'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelOperation(String projectId, String zone, String operationId) { - - CancelOperationRequest request = - CancelOperationRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setOperationId(operationId) - .build(); + public final void cancelOperation(String name) { + OPERATION_PATH_TEMPLATE.validate(name, "cancelOperation"); + CancelOperationRequest request = CancelOperationRequest.newBuilder().setName(name).build(); cancelOperation(request); } @@ -1543,13 +1291,9 @@ public final void cancelOperation(String projectId, String zone, String operatio * *

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String operationId = "";
+   *   String formattedName = ClusterManagerClient.formatOperationName("[PROJECT]", "[LOCATION]", "[OPERATION]");
    *   CancelOperationRequest request = CancelOperationRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setOperationId(operationId)
+   *     .setName(formattedName)
    *     .build();
    *   clusterManagerClient.cancelOperation(request);
    * }
@@ -1570,13 +1314,9 @@ public final void cancelOperation(CancelOperationRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String operationId = "";
+   *   String formattedName = ClusterManagerClient.formatOperationName("[PROJECT]", "[LOCATION]", "[OPERATION]");
    *   CancelOperationRequest request = CancelOperationRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setOperationId(operationId)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Void> future = clusterManagerClient.cancelOperationCallable().futureCall(request);
    *   // Do something
@@ -1590,44 +1330,38 @@ public final UnaryCallable cancelOperationCallabl
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Returns configuration info about the Container Engine service.
+   * Returns configuration info about the Kubernetes Engine service.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   ServerConfig response = clusterManagerClient.getServerConfig(projectId, zone);
+   *   String formattedName = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
+   *   ServerConfig response = clusterManagerClient.getServerConfig(formattedName);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) to - * return operations for. + * @param name The name (project and location) of the server config to get Specified in the format + * 'projects/*/locations/*'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServerConfig getServerConfig(String projectId, String zone) { - - GetServerConfigRequest request = - GetServerConfigRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); + public final ServerConfig getServerConfig(String name) { + LOCATION_PATH_TEMPLATE.validate(name, "getServerConfig"); + GetServerConfigRequest request = GetServerConfigRequest.newBuilder().setName(name).build(); return getServerConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns configuration info about the Container Engine service. + * Returns configuration info about the Kubernetes Engine service. * *

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
+   *   String formattedName = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
    *   GetServerConfigRequest request = GetServerConfigRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
+   *     .setName(formattedName)
    *     .build();
    *   ServerConfig response = clusterManagerClient.getServerConfig(request);
    * }
@@ -1642,17 +1376,15 @@ public final ServerConfig getServerConfig(GetServerConfigRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Returns configuration info about the Container Engine service.
+   * Returns configuration info about the Kubernetes Engine service.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
+   *   String formattedName = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
    *   GetServerConfigRequest request = GetServerConfigRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<ServerConfig> future = clusterManagerClient.getServerConfigCallable().futureCall(request);
    *   // Do something
@@ -1672,29 +1404,18 @@ public final UnaryCallable getServerConfig
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   ListNodePoolsResponse response = clusterManagerClient.listNodePools(projectId, zone, clusterId);
+   *   String formattedParent = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   ListNodePoolsResponse response = clusterManagerClient.listNodePools(formattedParent);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster. + * @param parent The parent (project, location, cluster id) where the node pools will be listed. + * Specified in the format 'projects/*/locations/*/clusters/*'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNodePoolsResponse listNodePools( - String projectId, String zone, String clusterId) { - - ListNodePoolsRequest request = - ListNodePoolsRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .build(); + public final ListNodePoolsResponse listNodePools(String parent) { + CLUSTER_PATH_TEMPLATE.validate(parent, "listNodePools"); + ListNodePoolsRequest request = ListNodePoolsRequest.newBuilder().setParent(parent).build(); return listNodePools(request); } @@ -1706,13 +1427,9 @@ public final ListNodePoolsResponse listNodePools( * *

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
+   *   String formattedParent = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   ListNodePoolsRequest request = ListNodePoolsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
+   *     .setParent(formattedParent)
    *     .build();
    *   ListNodePoolsResponse response = clusterManagerClient.listNodePools(request);
    * }
@@ -1733,13 +1450,9 @@ public final ListNodePoolsResponse listNodePools(ListNodePoolsRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
+   *   String formattedParent = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   ListNodePoolsRequest request = ListNodePoolsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
+   *     .setParent(formattedParent)
    *     .build();
    *   ApiFuture<ListNodePoolsResponse> future = clusterManagerClient.listNodePoolsCallable().futureCall(request);
    *   // Do something
@@ -1759,52 +1472,9 @@ public final UnaryCallable listNode
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
-   *   NodePool response = clusterManagerClient.getNodePool(projectId, zone, clusterId, nodePoolId);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster. - * @param nodePoolId The name of the node pool. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final NodePool getNodePool( - String projectId, String zone, String clusterId, String nodePoolId) { - - GetNodePoolRequest request = - GetNodePoolRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setNodePoolId(nodePoolId) - .build(); - return getNodePool(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves the node pool requested. - * - *

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   GetNodePoolRequest request = GetNodePoolRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
+   *     .setName(formattedName)
    *     .build();
    *   NodePool response = clusterManagerClient.getNodePool(request);
    * }
@@ -1825,15 +1495,9 @@ public final NodePool getNodePool(GetNodePoolRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   GetNodePoolRequest request = GetNodePoolRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<NodePool> future = clusterManagerClient.getNodePoolCallable().futureCall(request);
    *   // Do something
@@ -1853,52 +1517,11 @@ public final UnaryCallable getNodePoolCallable() {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   NodePool nodePool = NodePool.newBuilder().build();
-   *   Operation response = clusterManagerClient.createNodePool(projectId, zone, clusterId, nodePool);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster. - * @param nodePool The node pool to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation createNodePool( - String projectId, String zone, String clusterId, NodePool nodePool) { - - CreateNodePoolRequest request = - CreateNodePoolRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setNodePool(nodePool) - .build(); - return createNodePool(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a node pool for a cluster. - * - *

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   NodePool nodePool = NodePool.newBuilder().build();
+   *   String formattedParent = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   CreateNodePoolRequest request = CreateNodePoolRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setNodePool(nodePool)
+   *     .setParent(formattedParent)
    *     .build();
    *   Operation response = clusterManagerClient.createNodePool(request);
    * }
@@ -1919,15 +1542,11 @@ public final Operation createNodePool(CreateNodePoolRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   NodePool nodePool = NodePool.newBuilder().build();
+   *   String formattedParent = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   CreateNodePoolRequest request = CreateNodePoolRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setNodePool(nodePool)
+   *     .setParent(formattedParent)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.createNodePoolCallable().futureCall(request);
    *   // Do something
@@ -1947,52 +1566,9 @@ public final UnaryCallable createNodePoolCalla
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
-   *   Operation response = clusterManagerClient.deleteNodePool(projectId, zone, clusterId, nodePoolId);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster. - * @param nodePoolId The name of the node pool to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation deleteNodePool( - String projectId, String zone, String clusterId, String nodePoolId) { - - DeleteNodePoolRequest request = - DeleteNodePoolRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setNodePoolId(nodePoolId) - .build(); - return deleteNodePool(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a node pool from a cluster. - * - *

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   DeleteNodePoolRequest request = DeleteNodePoolRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.deleteNodePool(request);
    * }
@@ -2013,15 +1589,9 @@ public final Operation deleteNodePool(DeleteNodePoolRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   DeleteNodePoolRequest request = DeleteNodePoolRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.deleteNodePoolCallable().futureCall(request);
    *   // Do something
@@ -2042,53 +1612,9 @@ public final UnaryCallable deleteNodePoolCalla
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
-   *   Operation response = clusterManagerClient.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to rollback. - * @param nodePoolId The name of the node pool to rollback. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation rollbackNodePoolUpgrade( - String projectId, String zone, String clusterId, String nodePoolId) { - - RollbackNodePoolUpgradeRequest request = - RollbackNodePoolUpgradeRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setNodePoolId(nodePoolId) - .build(); - return rollbackNodePoolUpgrade(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last - * upgrade successfully completed. - * - *

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   RollbackNodePoolUpgradeRequest request = RollbackNodePoolUpgradeRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.rollbackNodePoolUpgrade(request);
    * }
@@ -2110,15 +1636,9 @@ public final Operation rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest re
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   RollbackNodePoolUpgradeRequest request = RollbackNodePoolUpgradeRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.rollbackNodePoolUpgradeCallable().futureCall(request);
    *   // Do something
@@ -2139,17 +1659,11 @@ public final Operation rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest re
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
    *   NodeManagement management = NodeManagement.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   SetNodePoolManagementRequest request = SetNodePoolManagementRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
    *     .setManagement(management)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.setNodePoolManagement(request);
    * }
@@ -2170,17 +1684,11 @@ public final Operation setNodePoolManagement(SetNodePoolManagementRequest reques
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
    *   NodeManagement management = NodeManagement.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   SetNodePoolManagementRequest request = SetNodePoolManagementRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
    *     .setManagement(management)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.setNodePoolManagementCallable().futureCall(request);
    *   // Do something
@@ -2201,17 +1709,13 @@ public final Operation setNodePoolManagement(SetNodePoolManagementRequest reques
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   Map<String, String> resourceLabels = new HashMap<>();
    *   String labelFingerprint = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetLabelsRequest request = SetLabelsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .putAllResourceLabels(resourceLabels)
    *     .setLabelFingerprint(labelFingerprint)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.setLabels(request);
    * }
@@ -2232,17 +1736,13 @@ public final Operation setLabels(SetLabelsRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   Map<String, String> resourceLabels = new HashMap<>();
    *   String labelFingerprint = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetLabelsRequest request = SetLabelsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .putAllResourceLabels(resourceLabels)
    *     .setLabelFingerprint(labelFingerprint)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.setLabelsCallable().futureCall(request);
    *   // Do something
@@ -2262,52 +1762,11 @@ public final UnaryCallable setLabelsCallable() {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   boolean enabled = false;
-   *   Operation response = clusterManagerClient.setLegacyAbac(projectId, zone, clusterId, enabled);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to update. - * @param enabled Whether ABAC authorization will be enabled in the cluster. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLegacyAbac( - String projectId, String zone, String clusterId, boolean enabled) { - - SetLegacyAbacRequest request = - SetLegacyAbacRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setEnabled(enabled) - .build(); - return setLegacyAbac(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * - *

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   boolean enabled = false;
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetLegacyAbacRequest request = SetLegacyAbacRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setEnabled(enabled)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.setLegacyAbac(request);
    * }
@@ -2328,15 +1787,11 @@ public final Operation setLegacyAbac(SetLegacyAbacRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   boolean enabled = false;
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetLegacyAbacRequest request = SetLegacyAbacRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setEnabled(enabled)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.setLegacyAbacCallable().futureCall(request);
    *   // Do something
@@ -2356,46 +1811,11 @@ public final UnaryCallable setLegacyAbacCallabl
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   Operation response = clusterManagerClient.startIPRotation(projectId, zone, clusterId);
-   * }
-   * 
- * - * @param projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation startIPRotation(String projectId, String zone, String clusterId) { - - StartIPRotationRequest request = - StartIPRotationRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .build(); - return startIPRotation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Start master IP rotation. - * - *

Sample code: - * - *


-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   boolean rotateCredentials = false;
    *   StartIPRotationRequest request = StartIPRotationRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
+   *     .setName(formattedName)
+   *     .setRotateCredentials(rotateCredentials)
    *     .build();
    *   Operation response = clusterManagerClient.startIPRotation(request);
    * }
@@ -2416,13 +1836,11 @@ public final Operation startIPRotation(StartIPRotationRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   boolean rotateCredentials = false;
    *   StartIPRotationRequest request = StartIPRotationRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
+   *     .setName(formattedName)
+   *     .setRotateCredentials(rotateCredentials)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.startIPRotationCallable().futureCall(request);
    *   // Do something
@@ -2442,28 +1860,19 @@ public final UnaryCallable startIPRotationCal
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   Operation response = clusterManagerClient.completeIPRotation(projectId, zone, clusterId);
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   Operation response = clusterManagerClient.completeIPRotation(formattedName);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster. + * @param name The name (project, location, cluster id) of the cluster to complete IP rotation. + * Specified in the format 'projects/*/locations/*/clusters/*'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Operation completeIPRotation(String projectId, String zone, String clusterId) { - + public final Operation completeIPRotation(String name) { + CLUSTER_PATH_TEMPLATE.validate(name, "completeIPRotation"); CompleteIPRotationRequest request = - CompleteIPRotationRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .build(); + CompleteIPRotationRequest.newBuilder().setName(name).build(); return completeIPRotation(request); } @@ -2475,13 +1884,9 @@ public final Operation completeIPRotation(String projectId, String zone, String * *

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   CompleteIPRotationRequest request = CompleteIPRotationRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.completeIPRotation(request);
    * }
@@ -2502,13 +1907,9 @@ public final Operation completeIPRotation(CompleteIPRotationRequest request) {
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   CompleteIPRotationRequest request = CompleteIPRotationRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.completeIPRotationCallable().futureCall(request);
    *   // Do something
@@ -2522,23 +1923,17 @@ public final UnaryCallable completeIPRotat
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Sets the size of a specific node pool.
+   * Sets the size for a specific node pool.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
    *   int nodeCount = 0;
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   SetNodePoolSizeRequest request = SetNodePoolSizeRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
    *     .setNodeCount(nodeCount)
+   *     .setName(formattedName)
    *     .build();
    *   Operation response = clusterManagerClient.setNodePoolSize(request);
    * }
@@ -2553,23 +1948,17 @@ public final Operation setNodePoolSize(SetNodePoolSizeRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Sets the size of a specific node pool.
+   * Sets the size for a specific node pool.
    *
    * 

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   String nodePoolId = "";
    *   int nodeCount = 0;
+   *   String formattedName = ClusterManagerClient.formatNodePoolName("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[NODE_POOL]");
    *   SetNodePoolSizeRequest request = SetNodePoolSizeRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNodePoolId(nodePoolId)
    *     .setNodeCount(nodeCount)
+   *     .setName(formattedName)
    *     .build();
    *   ApiFuture<Operation> future = clusterManagerClient.setNodePoolSizeCallable().futureCall(request);
    *   // Do something
@@ -2589,33 +1978,21 @@ public final UnaryCallable setNodePoolSizeCal
    *
    * 

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build();
-   *   Operation response = clusterManagerClient.setNetworkPolicy(projectId, zone, clusterId, networkPolicy);
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   SetNetworkPolicyRequest request = SetNetworkPolicyRequest.newBuilder()
+   *     .setNetworkPolicy(networkPolicy)
+   *     .setName(formattedName)
+   *     .build();
+   *   Operation response = clusterManagerClient.setNetworkPolicy(request);
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster. - * @param networkPolicy Configuration options for the NetworkPolicy feature. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Operation setNetworkPolicy( - String projectId, String zone, String clusterId, NetworkPolicy networkPolicy) { - - SetNetworkPolicyRequest request = - SetNetworkPolicyRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setNetworkPolicy(networkPolicy) - .build(); - return setNetworkPolicy(request); + public final Operation setNetworkPolicy(SetNetworkPolicyRequest request) { + return setNetworkPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2626,149 +2003,258 @@ public final Operation setNetworkPolicy( * *

    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
    *   NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    *   SetNetworkPolicyRequest request = SetNetworkPolicyRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
    *     .setNetworkPolicy(networkPolicy)
+   *     .setName(formattedName)
    *     .build();
-   *   Operation response = clusterManagerClient.setNetworkPolicy(request);
+   *   ApiFuture<Operation> future = clusterManagerClient.setNetworkPolicyCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable setNetworkPolicyCallable() { + return stub.setNetworkPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the maintenance policy for a cluster. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   SetMaintenancePolicyRequest request = SetMaintenancePolicyRequest.newBuilder()
+   *     .setMaintenancePolicy(maintenancePolicy)
+   *     .setName(formattedName)
+   *     .build();
+   *   Operation response = clusterManagerClient.setMaintenancePolicy(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Operation setNetworkPolicy(SetNetworkPolicyRequest request) { - return setNetworkPolicyCallable().call(request); + public final Operation setMaintenancePolicy(SetMaintenancePolicyRequest request) { + return setMaintenancePolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Enables/Disables Network Policy for a cluster. + * Sets the maintenance policy for a cluster. * *

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build();
-   *   SetNetworkPolicyRequest request = SetNetworkPolicyRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setNetworkPolicy(networkPolicy)
+   *   MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build();
+   *   String formattedName = ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   SetMaintenancePolicyRequest request = SetMaintenancePolicyRequest.newBuilder()
+   *     .setMaintenancePolicy(maintenancePolicy)
+   *     .setName(formattedName)
    *     .build();
-   *   ApiFuture<Operation> future = clusterManagerClient.setNetworkPolicyCallable().futureCall(request);
+   *   ApiFuture<Operation> future = clusterManagerClient.setMaintenancePolicyCallable().futureCall(request);
    *   // Do something
    *   Operation response = future.get();
    * }
    * 
*/ - public final UnaryCallable setNetworkPolicyCallable() { - return stub.setNetworkPolicyCallable(); + public final UnaryCallable + setMaintenancePolicyCallable() { + return stub.setMaintenancePolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Sets the maintenance policy for a cluster. + * Lists subnetworks that are usable for creating clusters in a project. * *

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build();
-   *   Operation response = clusterManagerClient.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy);
+   *   String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]");
+   *   String filter = "";
+   *   for (UsableSubnetwork element : clusterManagerClient.listUsableSubnetworks(formattedParent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * 
* - * @param projectId The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to update. - * @param maintenancePolicy The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. + * @param parent The parent project where subnetworks are usable. Specified in the format + * 'projects/*'. + * @param filter Filtering currently only supports equality on the networkProjectId and must be in + * the form: "networkProjectId=[PROJECTID]", where `networkProjectId` is the project which + * owns the listed subnetworks. This defaults to the parent project ID. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Operation setMaintenancePolicy( - String projectId, String zone, String clusterId, MaintenancePolicy maintenancePolicy) { + public final ListUsableSubnetworksPagedResponse listUsableSubnetworks( + String parent, String filter) { + PROJECT_PATH_TEMPLATE.validate(parent, "listUsableSubnetworks"); + ListUsableSubnetworksRequest request = + ListUsableSubnetworksRequest.newBuilder().setParent(parent).setFilter(filter).build(); + return listUsableSubnetworks(request); + } - SetMaintenancePolicyRequest request = - SetMaintenancePolicyRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setMaintenancePolicy(maintenancePolicy) - .build(); - return setMaintenancePolicy(request); + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists subnetworks that are usable for creating clusters in a project. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]");
+   *   String filter = "";
+   *   ListUsableSubnetworksRequest request = ListUsableSubnetworksRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .setFilter(filter)
+   *     .build();
+   *   for (UsableSubnetwork element : clusterManagerClient.listUsableSubnetworks(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsableSubnetworksPagedResponse listUsableSubnetworks( + ListUsableSubnetworksRequest request) { + return listUsableSubnetworksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Sets the maintenance policy for a cluster. + * Lists subnetworks that are usable for creating clusters in a project. * *

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build();
-   *   SetMaintenancePolicyRequest request = SetMaintenancePolicyRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setMaintenancePolicy(maintenancePolicy)
+   *   String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]");
+   *   String filter = "";
+   *   ListUsableSubnetworksRequest request = ListUsableSubnetworksRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .setFilter(filter)
    *     .build();
-   *   Operation response = clusterManagerClient.setMaintenancePolicy(request);
+   *   ApiFuture<ListUsableSubnetworksPagedResponse> future = clusterManagerClient.listUsableSubnetworksPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (UsableSubnetwork element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listUsableSubnetworksPagedCallable() { + return stub.listUsableSubnetworksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists subnetworks that are usable for creating clusters in a project. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]");
+   *   String filter = "";
+   *   ListUsableSubnetworksRequest request = ListUsableSubnetworksRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .setFilter(filter)
+   *     .build();
+   *   while (true) {
+   *     ListUsableSubnetworksResponse response = clusterManagerClient.listUsableSubnetworksCallable().call(request);
+   *     for (UsableSubnetwork element : response.getSubnetworksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listUsableSubnetworksCallable() { + return stub.listUsableSubnetworksCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Used to fetch locations that offer GKE. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]");
+   *   ListLocationsResponse response = clusterManagerClient.listLocations(formattedParent);
+   * }
+   * 
+ * + * @param parent Contains the name of the resource requested. Specified in the format + * 'projects/*'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsResponse listLocations(String parent) { + PROJECT_PATH_TEMPLATE.validate(parent, "listLocations"); + ListLocationsRequest request = ListLocationsRequest.newBuilder().setParent(parent).build(); + return listLocations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Used to fetch locations that offer GKE. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]");
+   *   ListLocationsRequest request = ListLocationsRequest.newBuilder()
+   *     .setParent(formattedParent)
+   *     .build();
+   *   ListLocationsResponse response = clusterManagerClient.listLocations(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Operation setMaintenancePolicy(SetMaintenancePolicyRequest request) { - return setMaintenancePolicyCallable().call(request); + public final ListLocationsResponse listLocations(ListLocationsRequest request) { + return listLocationsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Sets the maintenance policy for a cluster. + * Used to fetch locations that offer GKE. * *

Sample code: * *


    * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "";
-   *   String zone = "";
-   *   String clusterId = "";
-   *   MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build();
-   *   SetMaintenancePolicyRequest request = SetMaintenancePolicyRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setZone(zone)
-   *     .setClusterId(clusterId)
-   *     .setMaintenancePolicy(maintenancePolicy)
+   *   String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]");
+   *   ListLocationsRequest request = ListLocationsRequest.newBuilder()
+   *     .setParent(formattedParent)
    *     .build();
-   *   ApiFuture<Operation> future = clusterManagerClient.setMaintenancePolicyCallable().futureCall(request);
+   *   ApiFuture<ListLocationsResponse> future = clusterManagerClient.listLocationsCallable().futureCall(request);
    *   // Do something
-   *   Operation response = future.get();
+   *   ListLocationsResponse response = future.get();
    * }
    * 
*/ - public final UnaryCallable - setMaintenancePolicyCallable() { - return stub.setMaintenancePolicyCallable(); + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); } @Override @@ -2800,4 +2286,84 @@ public void shutdownNow() { public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } + + public static class ListUsableSubnetworksPagedResponse + extends AbstractPagedListResponse< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork, + ListUsableSubnetworksPage, ListUsableSubnetworksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUsableSubnetworksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListUsableSubnetworksPagedResponse apply(ListUsableSubnetworksPage input) { + return new ListUsableSubnetworksPagedResponse(input); + } + }); + } + + private ListUsableSubnetworksPagedResponse(ListUsableSubnetworksPage page) { + super(page, ListUsableSubnetworksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUsableSubnetworksPage + extends AbstractPage< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork, + ListUsableSubnetworksPage> { + + private ListUsableSubnetworksPage( + PageContext + context, + ListUsableSubnetworksResponse response) { + super(context, response); + } + + private static ListUsableSubnetworksPage createEmptyPage() { + return new ListUsableSubnetworksPage(null, null); + } + + @Override + protected ListUsableSubnetworksPage createPage( + PageContext + context, + ListUsableSubnetworksResponse response) { + return new ListUsableSubnetworksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUsableSubnetworksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork, + ListUsableSubnetworksPage, ListUsableSubnetworksFixedSizeCollection> { + + private ListUsableSubnetworksFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUsableSubnetworksFixedSizeCollection createEmptyCollection() { + return new ListUsableSubnetworksFixedSizeCollection(null, 0); + } + + @Override + protected ListUsableSubnetworksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUsableSubnetworksFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java index 47617f83cb82..3b4372ee7d6d 100644 --- a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java +++ b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java @@ -15,6 +15,8 @@ */ package com.google.cloud.container.v1; +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -23,46 +25,51 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.container.v1.stub.ClusterManagerStubSettings; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -250,6 +257,19 @@ public UnaryCallSettings setMaintenanceP return ((ClusterManagerStubSettings) getStubSettings()).setMaintenancePolicySettings(); } + /** Returns the object with the settings used for calls to listUsableSubnetworks. */ + public PagedCallSettings< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).listUsableSubnetworksSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public UnaryCallSettings listLocationsSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).listLocationsSettings(); + } + public static final ClusterManagerSettings create(ClusterManagerStubSettings stub) throws IOException { return new ClusterManagerSettings.Builder(stub.toBuilder()).build(); @@ -509,6 +529,20 @@ public UnaryCallSettings.Builder setNodePoolS return getStubSettingsBuilder().setMaintenancePolicySettings(); } + /** Returns the builder for the settings used for calls to listUsableSubnetworks. */ + public PagedCallSettings.Builder< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings() { + return getStubSettingsBuilder().listUsableSubnetworksSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public UnaryCallSettings.Builder + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + @Override public ClusterManagerSettings build() throws IOException { return new ClusterManagerSettings(this); diff --git a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java index 84d16e7d2ba5..97e74b75420d 100644 --- a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java +++ b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java @@ -15,22 +15,51 @@ */ /** - * A client to Google Container Engine API. + * A client to Kubernetes Engine API. * *

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

==================== ClusterManagerClient ==================== * - *

Service Description: Google Container Engine Cluster Manager v1 + *

Service Description: Google Kubernetes Engine Cluster Manager v1 * *

Sample for ClusterManagerClient: * *

  * 
  * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
- *   String projectId = "";
- *   String zone = "";
- *   ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone);
+ *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
+ *   ListClustersResponse response = clusterManagerClient.listClusters(formattedParent);
+ * }
+ * 
+ * 
+ * + * ==================== ClusterManagerClient ==================== + * + *

Service Description: Google Kubernetes Engine Cluster Manager v1alpha1 + * + *

Sample for ClusterManagerClient: + * + *

+ * 
+ * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+ *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
+ *   ListClustersResponse response = clusterManagerClient.listClusters(formattedParent);
+ * }
+ * 
+ * 
+ * + * ==================== ClusterManagerClient ==================== + * + *

Service Description: Google Kubernetes Engine Cluster Manager v1beta1 + * + *

Sample for ClusterManagerClient: + * + *

+ * 
+ * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+ *   String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]");
+ *   ListClustersResponse response = clusterManagerClient.listClusters(formattedParent);
  * }
  * 
  * 
diff --git a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java index f07ba6b8bd78..c90df843e66b 100644 --- a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java +++ b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java @@ -15,52 +15,58 @@ */ package com.google.cloud.container.v1.stub; +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; import com.google.protobuf.Empty; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Base stub class for Google Container Engine API. + * Base stub class for Kubernetes Engine API. * *

This class is for advanced usage and reflects the underlying API directly. */ @@ -189,6 +195,21 @@ public UnaryCallable setMaintenancePolic throw new UnsupportedOperationException("Not implemented: setMaintenancePolicyCallable()"); } + public UnaryCallable + listUsableSubnetworksPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listUsableSubnetworksPagedCallable()"); + } + + public UnaryCallable + listUsableSubnetworksCallable() { + throw new UnsupportedOperationException("Not implemented: listUsableSubnetworksCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java index 17cfd87afd68..9de36a8ea551 100644 --- a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java +++ b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java @@ -15,7 +15,10 @@ */ package com.google.cloud.container.v1.stub; +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -24,53 +27,64 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; +import com.google.container.v1beta1.UsableSubnetwork; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -147,6 +161,12 @@ public class ClusterManagerStubSettings extends StubSettings setNetworkPolicySettings; private final UnaryCallSettings setMaintenancePolicySettings; + private final PagedCallSettings< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings; + private final UnaryCallSettings + listLocationsSettings; /** Returns the object with the settings used for calls to listClusters. */ public UnaryCallSettings listClustersSettings() { @@ -301,6 +321,19 @@ public UnaryCallSettings setMaintenanceP return setMaintenancePolicySettings; } + /** Returns the object with the settings used for calls to listUsableSubnetworks. */ + public PagedCallSettings< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings() { + return listUsableSubnetworksSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public UnaryCallSettings listLocationsSettings() { + return listLocationsSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ClusterManagerStub createStub() throws IOException { if (getTransportChannelProvider() @@ -399,8 +432,71 @@ protected ClusterManagerStubSettings(Builder settingsBuilder) throws IOException setNodePoolSizeSettings = settingsBuilder.setNodePoolSizeSettings().build(); setNetworkPolicySettings = settingsBuilder.setNetworkPolicySettings().build(); setMaintenancePolicySettings = settingsBuilder.setMaintenancePolicySettings().build(); + listUsableSubnetworksSettings = settingsBuilder.listUsableSubnetworksSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); } + private static final PagedListDescriptor< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> + LIST_USABLE_SUBNETWORKS_PAGE_STR_DESC = + new PagedListDescriptor< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUsableSubnetworksRequest injectToken( + ListUsableSubnetworksRequest payload, String token) { + return ListUsableSubnetworksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListUsableSubnetworksRequest injectPageSize( + ListUsableSubnetworksRequest payload, int pageSize) { + return ListUsableSubnetworksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListUsableSubnetworksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListUsableSubnetworksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListUsableSubnetworksResponse payload) { + return payload.getSubnetworksList(); + } + }; + + private static final PagedListResponseFactory< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + LIST_USABLE_SUBNETWORKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListUsableSubnetworksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> + pageContext = + PageContext.create( + callable, LIST_USABLE_SUBNETWORKS_PAGE_STR_DESC, request, context); + return ListUsableSubnetworksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Builder for ClusterManagerStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; @@ -453,6 +549,12 @@ public static class Builder extends StubSettings.Builder setMaintenancePolicySettings; + private final PagedCallSettings.Builder< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings; + private final UnaryCallSettings.Builder + listLocationsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -555,6 +657,11 @@ protected Builder(ClientContext clientContext) { setMaintenancePolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listUsableSubnetworksSettings = + PagedCallSettings.newBuilder(LIST_USABLE_SUBNETWORKS_PAGE_STR_FACT); + + listLocationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = ImmutableList.>of( listClustersSettings, @@ -586,7 +693,9 @@ protected Builder(ClientContext clientContext) { completeIPRotationSettings, setNodePoolSizeSettings, setNetworkPolicySettings, - setMaintenancePolicySettings); + setMaintenancePolicySettings, + listUsableSubnetworksSettings, + listLocationsSettings); initDefaults(this); } @@ -752,6 +861,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .listUsableSubnetworksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + return builder; } @@ -788,6 +907,8 @@ protected Builder(ClusterManagerStubSettings settings) { setNodePoolSizeSettings = settings.setNodePoolSizeSettings.toBuilder(); setNetworkPolicySettings = settings.setNetworkPolicySettings.toBuilder(); setMaintenancePolicySettings = settings.setMaintenancePolicySettings.toBuilder(); + listUsableSubnetworksSettings = settings.listUsableSubnetworksSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -820,7 +941,9 @@ protected Builder(ClusterManagerStubSettings settings) { completeIPRotationSettings, setNodePoolSizeSettings, setNetworkPolicySettings, - setMaintenancePolicySettings); + setMaintenancePolicySettings, + listUsableSubnetworksSettings, + listLocationsSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -1001,6 +1124,20 @@ public UnaryCallSettings.Builder setNodePoolS return setMaintenancePolicySettings; } + /** Returns the builder for the settings used for calls to listUsableSubnetworks. */ + public PagedCallSettings.Builder< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings() { + return listUsableSubnetworksSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public UnaryCallSettings.Builder + listLocationsSettings() { + return listLocationsSettings; + } + @Override public ClusterManagerStubSettings build() throws IOException { return new ClusterManagerStubSettings(this); diff --git a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java index 8196e08725cc..84bc6128cdc9 100644 --- a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java +++ b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java @@ -31,13 +31,13 @@ import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.container.v1.Operation; +import com.google.container.v1beta1.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC callable factory implementation for Google Container Engine API. + * gRPC callable factory implementation for Kubernetes Engine API. * *

This class is for advanced usage. */ diff --git a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java index 665b08d5c0f8..81ea25fd1a0e 100644 --- a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java +++ b/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java @@ -15,6 +15,8 @@ */ package com.google.cloud.container.v1.stub; +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -22,43 +24,47 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.UnaryCallable; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; @@ -68,7 +74,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC stub implementation for Google Container Engine API. + * gRPC stub implementation for Kubernetes Engine API. * *

This class is for advanced usage and reflects the underlying API directly. */ @@ -80,7 +86,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { listClustersMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/ListClusters") + .setFullMethodName("google.container.v1beta1.ClusterManager/ListClusters") .setRequestMarshaller(ProtoUtils.marshaller(ListClustersRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListClustersResponse.getDefaultInstance())) @@ -88,7 +94,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { private static final MethodDescriptor getClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/GetCluster") + .setFullMethodName("google.container.v1beta1.ClusterManager/GetCluster") .setRequestMarshaller(ProtoUtils.marshaller(GetClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Cluster.getDefaultInstance())) .build(); @@ -96,7 +102,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { createClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/CreateCluster") + .setFullMethodName("google.container.v1beta1.ClusterManager/CreateCluster") .setRequestMarshaller( ProtoUtils.marshaller(CreateClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -105,7 +111,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { updateClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/UpdateCluster") + .setFullMethodName("google.container.v1beta1.ClusterManager/UpdateCluster") .setRequestMarshaller( ProtoUtils.marshaller(UpdateClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -114,7 +120,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { updateNodePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/UpdateNodePool") + .setFullMethodName("google.container.v1beta1.ClusterManager/UpdateNodePool") .setRequestMarshaller( ProtoUtils.marshaller(UpdateNodePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -123,7 +129,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setNodePoolAutoscalingMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetNodePoolAutoscaling") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetNodePoolAutoscaling") .setRequestMarshaller( ProtoUtils.marshaller(SetNodePoolAutoscalingRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -132,7 +138,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setLoggingServiceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetLoggingService") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetLoggingService") .setRequestMarshaller( ProtoUtils.marshaller(SetLoggingServiceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -141,7 +147,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setMonitoringServiceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetMonitoringService") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetMonitoringService") .setRequestMarshaller( ProtoUtils.marshaller(SetMonitoringServiceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -150,7 +156,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setAddonsConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetAddonsConfig") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetAddonsConfig") .setRequestMarshaller( ProtoUtils.marshaller(SetAddonsConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -159,7 +165,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setLocationsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetLocations") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetLocations") .setRequestMarshaller(ProtoUtils.marshaller(SetLocationsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); @@ -167,7 +173,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { updateMasterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/UpdateMaster") + .setFullMethodName("google.container.v1beta1.ClusterManager/UpdateMaster") .setRequestMarshaller(ProtoUtils.marshaller(UpdateMasterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); @@ -175,7 +181,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setMasterAuthMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetMasterAuth") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetMasterAuth") .setRequestMarshaller( ProtoUtils.marshaller(SetMasterAuthRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -184,7 +190,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { deleteClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/DeleteCluster") + .setFullMethodName("google.container.v1beta1.ClusterManager/DeleteCluster") .setRequestMarshaller( ProtoUtils.marshaller(DeleteClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -193,7 +199,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { listOperationsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/ListOperations") + .setFullMethodName("google.container.v1beta1.ClusterManager/ListOperations") .setRequestMarshaller( ProtoUtils.marshaller(ListOperationsRequest.getDefaultInstance())) .setResponseMarshaller( @@ -203,7 +209,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { getOperationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/GetOperation") + .setFullMethodName("google.container.v1beta1.ClusterManager/GetOperation") .setRequestMarshaller(ProtoUtils.marshaller(GetOperationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); @@ -211,7 +217,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { cancelOperationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/CancelOperation") + .setFullMethodName("google.container.v1beta1.ClusterManager/CancelOperation") .setRequestMarshaller( ProtoUtils.marshaller(CancelOperationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) @@ -220,7 +226,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { getServerConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/GetServerConfig") + .setFullMethodName("google.container.v1beta1.ClusterManager/GetServerConfig") .setRequestMarshaller( ProtoUtils.marshaller(GetServerConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ServerConfig.getDefaultInstance())) @@ -229,7 +235,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { listNodePoolsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/ListNodePools") + .setFullMethodName("google.container.v1beta1.ClusterManager/ListNodePools") .setRequestMarshaller( ProtoUtils.marshaller(ListNodePoolsRequest.getDefaultInstance())) .setResponseMarshaller( @@ -238,7 +244,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { private static final MethodDescriptor getNodePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/GetNodePool") + .setFullMethodName("google.container.v1beta1.ClusterManager/GetNodePool") .setRequestMarshaller(ProtoUtils.marshaller(GetNodePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(NodePool.getDefaultInstance())) .build(); @@ -246,7 +252,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { createNodePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/CreateNodePool") + .setFullMethodName("google.container.v1beta1.ClusterManager/CreateNodePool") .setRequestMarshaller( ProtoUtils.marshaller(CreateNodePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -255,7 +261,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { deleteNodePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/DeleteNodePool") + .setFullMethodName("google.container.v1beta1.ClusterManager/DeleteNodePool") .setRequestMarshaller( ProtoUtils.marshaller(DeleteNodePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -264,7 +270,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { rollbackNodePoolUpgradeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/RollbackNodePoolUpgrade") + .setFullMethodName("google.container.v1beta1.ClusterManager/RollbackNodePoolUpgrade") .setRequestMarshaller( ProtoUtils.marshaller(RollbackNodePoolUpgradeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -273,7 +279,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setNodePoolManagementMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetNodePoolManagement") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetNodePoolManagement") .setRequestMarshaller( ProtoUtils.marshaller(SetNodePoolManagementRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -281,7 +287,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { private static final MethodDescriptor setLabelsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetLabels") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetLabels") .setRequestMarshaller(ProtoUtils.marshaller(SetLabelsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); @@ -289,7 +295,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setLegacyAbacMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetLegacyAbac") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetLegacyAbac") .setRequestMarshaller( ProtoUtils.marshaller(SetLegacyAbacRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -298,7 +304,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { startIPRotationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/StartIPRotation") + .setFullMethodName("google.container.v1beta1.ClusterManager/StartIPRotation") .setRequestMarshaller( ProtoUtils.marshaller(StartIPRotationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -307,7 +313,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { completeIPRotationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/CompleteIPRotation") + .setFullMethodName("google.container.v1beta1.ClusterManager/CompleteIPRotation") .setRequestMarshaller( ProtoUtils.marshaller(CompleteIPRotationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -316,7 +322,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setNodePoolSizeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetNodePoolSize") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetNodePoolSize") .setRequestMarshaller( ProtoUtils.marshaller(SetNodePoolSizeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -325,7 +331,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setNetworkPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetNetworkPolicy") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetNetworkPolicy") .setRequestMarshaller( ProtoUtils.marshaller(SetNetworkPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) @@ -334,11 +340,31 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { setMaintenancePolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetMaintenancePolicy") + .setFullMethodName("google.container.v1beta1.ClusterManager/SetMaintenancePolicy") .setRequestMarshaller( ProtoUtils.marshaller(SetMaintenancePolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + listUsableSubnetworksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/ListUsableSubnetworks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListUsableSubnetworksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListUsableSubnetworksResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; @@ -375,6 +401,11 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { private final UnaryCallable setNodePoolSizeCallable; private final UnaryCallable setNetworkPolicyCallable; private final UnaryCallable setMaintenancePolicyCallable; + private final UnaryCallable + listUsableSubnetworksCallable; + private final UnaryCallable + listUsableSubnetworksPagedCallable; + private final UnaryCallable listLocationsCallable; private final GrpcStubCallableFactory callableFactory; @@ -541,6 +572,16 @@ protected GrpcClusterManagerStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) .build(); + GrpcCallSettings + listUsableSubnetworksTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .build(); this.listClustersCallable = callableFactory.createUnaryCallable( @@ -646,6 +687,19 @@ protected GrpcClusterManagerStub( setMaintenancePolicyTransportSettings, settings.setMaintenancePolicySettings(), clientContext); + this.listUsableSubnetworksCallable = + callableFactory.createUnaryCallable( + listUsableSubnetworksTransportSettings, + settings.listUsableSubnetworksSettings(), + clientContext); + this.listUsableSubnetworksPagedCallable = + callableFactory.createPagedCallable( + listUsableSubnetworksTransportSettings, + settings.listUsableSubnetworksSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -771,6 +825,20 @@ public UnaryCallable setMaintenancePolic return setMaintenancePolicyCallable; } + public UnaryCallable + listUsableSubnetworksPagedCallable() { + return listUsableSubnetworksPagedCallable; + } + + public UnaryCallable + listUsableSubnetworksCallable() { + return listUsableSubnetworksCallable; + } + + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java b/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java index 922414195ad5..c43c1e70d5ba 100644 --- a/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java +++ b/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java @@ -15,6 +15,8 @@ */ package com.google.cloud.container.v1; +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.testing.LocalChannelProvider; @@ -22,47 +24,33 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.container.v1.AddonsConfig; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.ClusterUpdate; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.MaintenancePolicy; -import com.google.container.v1.NetworkPolicy; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; +import com.google.common.collect.Lists; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.UsableSubnetwork; import com.google.protobuf.Empty; import com.google.protobuf.GeneratedMessageV3; import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.After; @@ -74,6 +62,8 @@ @javax.annotation.Generated("by GAPIC") public class ClusterManagerClientTest { + private static MockClusterManager mockClusterManager; + private static MockClusterManager mockClusterManager; private static MockClusterManager mockClusterManager; private static MockServiceHelper serviceHelper; private ClusterManagerClient client; @@ -81,9 +71,14 @@ public class ClusterManagerClientTest { @BeforeClass public static void startStaticServer() { + mockClusterManager = new MockClusterManager(); + mockClusterManager = new MockClusterManager(); mockClusterManager = new MockClusterManager(); serviceHelper = - new MockServiceHelper("in-process-1", Arrays.asList(mockClusterManager)); + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockClusterManager, mockClusterManager, mockClusterManager)); serviceHelper.start(); } @@ -115,18 +110,16 @@ public void listClustersTest() { ListClustersResponse expectedResponse = ListClustersResponse.newBuilder().build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; + String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]"); - ListClustersResponse actualResponse = client.listClusters(projectId, zone); + ListClustersResponse actualResponse = client.listClusters(formattedParent); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListClustersRequest actualRequest = (ListClustersRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(formattedParent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -140,10 +133,9 @@ public void listClustersExceptionTest() throws Exception { mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; + String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]"); - client.listClusters(projectId, zone); + client.listClusters(formattedParent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -153,7 +145,7 @@ public void listClustersExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getClusterTest() { - String name = "name3373707"; + String name2 = "name2-1052831874"; String description = "description-1724546052"; int initialNodeCount = 1682564205; String loggingService = "loggingService-1700501035"; @@ -163,8 +155,10 @@ public void getClusterTest() { String subnetwork = "subnetwork-1302785042"; boolean enableKubernetesAlpha = false; String labelFingerprint = "labelFingerprint714995737"; + boolean privateCluster = true; + String masterIpv4CidrBlock = "masterIpv4CidrBlock-97940801"; String selfLink = "selfLink-1691268851"; - String zone2 = "zone2-696322977"; + String zone = "zone3744684"; String endpoint = "endpoint1741102485"; String initialClusterVersion = "initialClusterVersion-276373352"; String currentMasterVersion = "currentMasterVersion-920953983"; @@ -175,9 +169,12 @@ public void getClusterTest() { String servicesIpv4Cidr = "servicesIpv4Cidr1966438125"; int currentNodeCount = 178977560; String expireTime = "expireTime-96179731"; + String location = "location1901043637"; + boolean enableTpu = false; + String tpuIpv4CidrBlock = "tpuIpv4CidrBlock1137906646"; Cluster expectedResponse = Cluster.newBuilder() - .setName(name) + .setName(name2) .setDescription(description) .setInitialNodeCount(initialNodeCount) .setLoggingService(loggingService) @@ -187,8 +184,10 @@ public void getClusterTest() { .setSubnetwork(subnetwork) .setEnableKubernetesAlpha(enableKubernetesAlpha) .setLabelFingerprint(labelFingerprint) + .setPrivateCluster(privateCluster) + .setMasterIpv4CidrBlock(masterIpv4CidrBlock) .setSelfLink(selfLink) - .setZone(zone2) + .setZone(zone) .setEndpoint(endpoint) .setInitialClusterVersion(initialClusterVersion) .setCurrentMasterVersion(currentMasterVersion) @@ -199,23 +198,23 @@ public void getClusterTest() { .setServicesIpv4Cidr(servicesIpv4Cidr) .setCurrentNodeCount(currentNodeCount) .setExpireTime(expireTime) + .setLocation(location) + .setEnableTpu(enableTpu) + .setTpuIpv4CidrBlock(tpuIpv4CidrBlock) .build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; + String formattedName = + ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - Cluster actualResponse = client.getCluster(projectId, zone, clusterId); + Cluster actualResponse = client.getCluster(formattedName); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetClusterRequest actualRequest = (GetClusterRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(formattedName, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -229,11 +228,10 @@ public void getClusterExceptionTest() throws Exception { mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; + String formattedName = + ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - client.getCluster(projectId, zone, clusterId); + client.getCluster(formattedName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -244,40 +242,40 @@ public void getClusterExceptionTest() throws Exception { @SuppressWarnings("all") public void createClusterTest() { String name = "name3373707"; - String zone2 = "zone2-696322977"; + String zone = "zone3744684"; String detail = "detail-1335224239"; String statusMessage = "statusMessage-239442758"; String selfLink = "selfLink-1691268851"; String targetLink = "targetLink-2084812312"; + String location = "location1901043637"; String startTime = "startTime-1573145462"; String endTime = "endTime1725551537"; Operation expectedResponse = Operation.newBuilder() .setName(name) - .setZone(zone2) + .setZone(zone) .setDetail(detail) .setStatusMessage(statusMessage) .setSelfLink(selfLink) .setTargetLink(targetLink) + .setLocation(location) .setStartTime(startTime) .setEndTime(endTime) .build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; Cluster cluster = Cluster.newBuilder().build(); + String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]"); - Operation actualResponse = client.createCluster(projectId, zone, cluster); + Operation actualResponse = client.createCluster(cluster, formattedParent); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); CreateClusterRequest actualRequest = (CreateClusterRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); Assert.assertEquals(cluster, actualRequest.getCluster()); + Assert.assertEquals(formattedParent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -291,11 +289,10 @@ public void createClusterExceptionTest() throws Exception { mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; Cluster cluster = Cluster.newBuilder().build(); + String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]"); - client.createCluster(projectId, zone, cluster); + client.createCluster(cluster, formattedParent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -304,109 +301,41 @@ public void createClusterExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void updateClusterTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; + public void deleteClusterTest() { + String name2 = "name2-1052831874"; String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - ClusterUpdate update = ClusterUpdate.newBuilder().build(); - - Operation actualResponse = client.updateCluster(projectId, zone, clusterId, update); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateClusterRequest actualRequest = (UpdateClusterRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(update, actualRequest.getUpdate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - ClusterUpdate update = ClusterUpdate.newBuilder().build(); - - client.updateCluster(projectId, zone, clusterId, update); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void setLoggingServiceTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; String detail = "detail-1335224239"; String statusMessage = "statusMessage-239442758"; String selfLink = "selfLink-1691268851"; String targetLink = "targetLink-2084812312"; + String location = "location1901043637"; String startTime = "startTime-1573145462"; String endTime = "endTime1725551537"; Operation expectedResponse = Operation.newBuilder() - .setName(name) - .setZone(zone2) + .setName(name2) + .setZone(zone) .setDetail(detail) .setStatusMessage(statusMessage) .setSelfLink(selfLink) .setTargetLink(targetLink) + .setLocation(location) .setStartTime(startTime) .setEndTime(endTime) .build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String loggingService = "loggingService-1700501035"; + String formattedName = + ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - Operation actualResponse = client.setLoggingService(projectId, zone, clusterId, loggingService); + Operation actualResponse = client.deleteCluster(formattedName); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SetLoggingServiceRequest actualRequest = (SetLoggingServiceRequest) actualRequests.get(0); + DeleteClusterRequest actualRequest = (DeleteClusterRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(loggingService, actualRequest.getLoggingService()); + Assert.assertEquals(formattedName, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -415,17 +344,15 @@ public void setLoggingServiceTest() { @Test @SuppressWarnings("all") - public void setLoggingServiceExceptionTest() throws Exception { + public void deleteClusterExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String loggingService = "loggingService-1700501035"; + String formattedName = + ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - client.setLoggingService(projectId, zone, clusterId, loggingService); + client.deleteCluster(formattedName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -434,45 +361,20 @@ public void setLoggingServiceExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setMonitoringServiceTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); + public void listOperationsTest() { + ListOperationsResponse expectedResponse = ListOperationsResponse.newBuilder().build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String monitoringService = "monitoringService1469270462"; + String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]"); - Operation actualResponse = - client.setMonitoringService(projectId, zone, clusterId, monitoringService); + ListOperationsResponse actualResponse = client.listOperations(formattedParent); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SetMonitoringServiceRequest actualRequest = (SetMonitoringServiceRequest) actualRequests.get(0); + ListOperationsRequest actualRequest = (ListOperationsRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(monitoringService, actualRequest.getMonitoringService()); + Assert.assertEquals(formattedParent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -481,17 +383,14 @@ public void setMonitoringServiceTest() { @Test @SuppressWarnings("all") - public void setMonitoringServiceExceptionTest() throws Exception { + public void listOperationsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String monitoringService = "monitoringService1469270462"; + String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]"); - client.setMonitoringService(projectId, zone, clusterId, monitoringService); + client.listOperations(formattedParent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -500,109 +399,41 @@ public void setMonitoringServiceExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setAddonsConfigTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; + public void getOperationTest() { + String name2 = "name2-1052831874"; String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); - - Operation actualResponse = client.setAddonsConfig(projectId, zone, clusterId, addonsConfig); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetAddonsConfigRequest actualRequest = (SetAddonsConfigRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(addonsConfig, actualRequest.getAddonsConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void setAddonsConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); - - client.setAddonsConfig(projectId, zone, clusterId, addonsConfig); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void setLocationsTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; String detail = "detail-1335224239"; String statusMessage = "statusMessage-239442758"; String selfLink = "selfLink-1691268851"; String targetLink = "targetLink-2084812312"; + String location = "location1901043637"; String startTime = "startTime-1573145462"; String endTime = "endTime1725551537"; Operation expectedResponse = Operation.newBuilder() - .setName(name) - .setZone(zone2) + .setName(name2) + .setZone(zone) .setDetail(detail) .setStatusMessage(statusMessage) .setSelfLink(selfLink) .setTargetLink(targetLink) + .setLocation(location) .setStartTime(startTime) .setEndTime(endTime) .build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - List locations = new ArrayList<>(); + String formattedName = + ClusterManagerClient.formatOperationName("[PROJECT]", "[LOCATION]", "[OPERATION]"); - Operation actualResponse = client.setLocations(projectId, zone, clusterId, locations); + Operation actualResponse = client.getOperation(formattedName); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SetLocationsRequest actualRequest = (SetLocationsRequest) actualRequests.get(0); + GetOperationRequest actualRequest = (GetOperationRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(locations, actualRequest.getLocationsList()); + Assert.assertEquals(formattedName, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -611,17 +442,15 @@ public void setLocationsTest() { @Test @SuppressWarnings("all") - public void setLocationsExceptionTest() throws Exception { + public void getOperationExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - List locations = new ArrayList<>(); + String formattedName = + ClusterManagerClient.formatOperationName("[PROJECT]", "[LOCATION]", "[OPERATION]"); - client.setLocations(projectId, zone, clusterId, locations); + client.getOperation(formattedName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -630,44 +459,20 @@ public void setLocationsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void updateMasterTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); + public void cancelOperationTest() { + Empty expectedResponse = Empty.newBuilder().build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String masterVersion = "masterVersion-2139460613"; + String formattedName = + ClusterManagerClient.formatOperationName("[PROJECT]", "[LOCATION]", "[OPERATION]"); - Operation actualResponse = client.updateMaster(projectId, zone, clusterId, masterVersion); - Assert.assertEquals(expectedResponse, actualResponse); + client.cancelOperation(formattedName); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateMasterRequest actualRequest = (UpdateMasterRequest) actualRequests.get(0); + CancelOperationRequest actualRequest = (CancelOperationRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(masterVersion, actualRequest.getMasterVersion()); + Assert.assertEquals(formattedName, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -676,17 +481,15 @@ public void updateMasterTest() { @Test @SuppressWarnings("all") - public void updateMasterExceptionTest() throws Exception { + public void cancelOperationExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String masterVersion = "masterVersion-2139460613"; + String formattedName = + ClusterManagerClient.formatOperationName("[PROJECT]", "[LOCATION]", "[OPERATION]"); - client.updateMaster(projectId, zone, clusterId, masterVersion); + client.cancelOperation(formattedName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -695,42 +498,26 @@ public void updateMasterExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteClusterTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) + public void getServerConfigTest() { + String defaultClusterVersion = "defaultClusterVersion111003029"; + String defaultImageType = "defaultImageType-918225828"; + ServerConfig expectedResponse = + ServerConfig.newBuilder() + .setDefaultClusterVersion(defaultClusterVersion) + .setDefaultImageType(defaultImageType) .build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; + String formattedName = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]"); - Operation actualResponse = client.deleteCluster(projectId, zone, clusterId); + ServerConfig actualResponse = client.getServerConfig(formattedName); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteClusterRequest actualRequest = (DeleteClusterRequest) actualRequests.get(0); + GetServerConfigRequest actualRequest = (GetServerConfigRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(formattedName, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -739,16 +526,14 @@ public void deleteClusterTest() { @Test @SuppressWarnings("all") - public void deleteClusterExceptionTest() throws Exception { + public void getServerConfigExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; + String formattedName = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]"); - client.deleteCluster(projectId, zone, clusterId); + client.getServerConfig(formattedName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -757,22 +542,21 @@ public void deleteClusterExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void listOperationsTest() { - ListOperationsResponse expectedResponse = ListOperationsResponse.newBuilder().build(); + public void listNodePoolsTest() { + ListNodePoolsResponse expectedResponse = ListNodePoolsResponse.newBuilder().build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; + String formattedParent = + ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - ListOperationsResponse actualResponse = client.listOperations(projectId, zone); + ListNodePoolsResponse actualResponse = client.listNodePools(formattedParent); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListOperationsRequest actualRequest = (ListOperationsRequest) actualRequests.get(0); + ListNodePoolsRequest actualRequest = (ListNodePoolsRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(formattedParent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -781,15 +565,15 @@ public void listOperationsTest() { @Test @SuppressWarnings("all") - public void listOperationsExceptionTest() throws Exception { + public void listNodePoolsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; + String formattedParent = + ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - client.listOperations(projectId, zone); + client.listNodePools(formattedParent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -798,42 +582,41 @@ public void listOperationsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void getOperationTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; + public void completeIPRotationTest() { + String name2 = "name2-1052831874"; + String zone = "zone3744684"; String detail = "detail-1335224239"; String statusMessage = "statusMessage-239442758"; String selfLink = "selfLink-1691268851"; String targetLink = "targetLink-2084812312"; + String location = "location1901043637"; String startTime = "startTime-1573145462"; String endTime = "endTime1725551537"; Operation expectedResponse = Operation.newBuilder() - .setName(name) - .setZone(zone2) + .setName(name2) + .setZone(zone) .setDetail(detail) .setStatusMessage(statusMessage) .setSelfLink(selfLink) .setTargetLink(targetLink) + .setLocation(location) .setStartTime(startTime) .setEndTime(endTime) .build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String operationId = "operationId-274116877"; + String formattedName = + ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - Operation actualResponse = client.getOperation(projectId, zone, operationId); + Operation actualResponse = client.completeIPRotation(formattedName); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetOperationRequest actualRequest = (GetOperationRequest) actualRequests.get(0); + CompleteIPRotationRequest actualRequest = (CompleteIPRotationRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(operationId, actualRequest.getOperationId()); + Assert.assertEquals(formattedName, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -842,16 +625,15 @@ public void getOperationTest() { @Test @SuppressWarnings("all") - public void getOperationExceptionTest() throws Exception { + public void completeIPRotationExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String operationId = "operationId-274116877"; + String formattedName = + ClusterManagerClient.formatClusterName("[PROJECT]", "[LOCATION]", "[CLUSTER]"); - client.getOperation(projectId, zone, operationId); + client.completeIPRotation(formattedName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -860,23 +642,34 @@ public void getOperationExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void cancelOperationTest() { - Empty expectedResponse = Empty.newBuilder().build(); + public void listUsableSubnetworksTest() { + String nextPageToken = ""; + UsableSubnetwork subnetworksElement = UsableSubnetwork.newBuilder().build(); + List subnetworks = Arrays.asList(subnetworksElement); + ListUsableSubnetworksResponse expectedResponse = + ListUsableSubnetworksResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllSubnetworks(subnetworks) + .build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String operationId = "operationId-274116877"; + String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]"); + String filter = "filter-1274492040"; + + ListUsableSubnetworksPagedResponse pagedListResponse = + client.listUsableSubnetworks(formattedParent, filter); - client.cancelOperation(projectId, zone, operationId); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetworksList().get(0), resources.get(0)); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CancelOperationRequest actualRequest = (CancelOperationRequest) actualRequests.get(0); + ListUsableSubnetworksRequest actualRequest = + (ListUsableSubnetworksRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(operationId, actualRequest.getOperationId()); + Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -885,16 +678,15 @@ public void cancelOperationTest() { @Test @SuppressWarnings("all") - public void cancelOperationExceptionTest() throws Exception { + public void listUsableSubnetworksExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String operationId = "operationId-274116877"; + String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]"); + String filter = "filter-1274492040"; - client.cancelOperation(projectId, zone, operationId); + client.listUsableSubnetworks(formattedParent, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -903,646 +695,22 @@ public void cancelOperationExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void getServerConfigTest() { - String defaultClusterVersion = "defaultClusterVersion111003029"; - String defaultImageType = "defaultImageType-918225828"; - ServerConfig expectedResponse = - ServerConfig.newBuilder() - .setDefaultClusterVersion(defaultClusterVersion) - .setDefaultImageType(defaultImageType) - .build(); + public void listLocationsTest() { + String nextPageToken = "nextPageToken-1530815211"; + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder().setNextPageToken(nextPageToken).build(); mockClusterManager.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - - ServerConfig actualResponse = client.getServerConfig(projectId, zone); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetServerConfigRequest actualRequest = (GetServerConfigRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getServerConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - - client.getServerConfig(projectId, zone); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void listNodePoolsTest() { - ListNodePoolsResponse expectedResponse = ListNodePoolsResponse.newBuilder().build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - - ListNodePoolsResponse actualResponse = client.listNodePools(projectId, zone, clusterId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListNodePoolsRequest actualRequest = (ListNodePoolsRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void listNodePoolsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - - client.listNodePools(projectId, zone, clusterId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void getNodePoolTest() { - String name = "name3373707"; - int initialNodeCount = 1682564205; - String selfLink = "selfLink-1691268851"; - String version = "version351608024"; - String statusMessage = "statusMessage-239442758"; - NodePool expectedResponse = - NodePool.newBuilder() - .setName(name) - .setInitialNodeCount(initialNodeCount) - .setSelfLink(selfLink) - .setVersion(version) - .setStatusMessage(statusMessage) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String nodePoolId = "nodePoolId1043384033"; - - NodePool actualResponse = client.getNodePool(projectId, zone, clusterId, nodePoolId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetNodePoolRequest actualRequest = (GetNodePoolRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(nodePoolId, actualRequest.getNodePoolId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getNodePoolExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String nodePoolId = "nodePoolId1043384033"; - - client.getNodePool(projectId, zone, clusterId, nodePoolId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void createNodePoolTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - NodePool nodePool = NodePool.newBuilder().build(); - - Operation actualResponse = client.createNodePool(projectId, zone, clusterId, nodePool); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateNodePoolRequest actualRequest = (CreateNodePoolRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(nodePool, actualRequest.getNodePool()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createNodePoolExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - NodePool nodePool = NodePool.newBuilder().build(); - - client.createNodePool(projectId, zone, clusterId, nodePool); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void deleteNodePoolTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String nodePoolId = "nodePoolId1043384033"; - - Operation actualResponse = client.deleteNodePool(projectId, zone, clusterId, nodePoolId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteNodePoolRequest actualRequest = (DeleteNodePoolRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(nodePoolId, actualRequest.getNodePoolId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void deleteNodePoolExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String nodePoolId = "nodePoolId1043384033"; - - client.deleteNodePool(projectId, zone, clusterId, nodePoolId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void rollbackNodePoolUpgradeTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String nodePoolId = "nodePoolId1043384033"; - - Operation actualResponse = - client.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RollbackNodePoolUpgradeRequest actualRequest = - (RollbackNodePoolUpgradeRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(nodePoolId, actualRequest.getNodePoolId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void rollbackNodePoolUpgradeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - String nodePoolId = "nodePoolId1043384033"; - - client.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void setLegacyAbacTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - boolean enabled = false; - - Operation actualResponse = client.setLegacyAbac(projectId, zone, clusterId, enabled); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetLegacyAbacRequest actualRequest = (SetLegacyAbacRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(enabled, actualRequest.getEnabled()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void setLegacyAbacExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - boolean enabled = false; - - client.setLegacyAbac(projectId, zone, clusterId, enabled); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void startIPRotationTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - - Operation actualResponse = client.startIPRotation(projectId, zone, clusterId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - StartIPRotationRequest actualRequest = (StartIPRotationRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void startIPRotationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - - client.startIPRotation(projectId, zone, clusterId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void completeIPRotationTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - - Operation actualResponse = client.completeIPRotation(projectId, zone, clusterId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CompleteIPRotationRequest actualRequest = (CompleteIPRotationRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void completeIPRotationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - - client.completeIPRotation(projectId, zone, clusterId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void setNetworkPolicyTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - - Operation actualResponse = client.setNetworkPolicy(projectId, zone, clusterId, networkPolicy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetNetworkPolicyRequest actualRequest = (SetNetworkPolicyRequest) actualRequests.get(0); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void setNetworkPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - - client.setNetworkPolicy(projectId, zone, clusterId, networkPolicy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void setMaintenancePolicyTest() { - String name = "name3373707"; - String zone2 = "zone2-696322977"; - String detail = "detail-1335224239"; - String statusMessage = "statusMessage-239442758"; - String selfLink = "selfLink-1691268851"; - String targetLink = "targetLink-2084812312"; - String startTime = "startTime-1573145462"; - String endTime = "endTime1725551537"; - Operation expectedResponse = - Operation.newBuilder() - .setName(name) - .setZone(zone2) - .setDetail(detail) - .setStatusMessage(statusMessage) - .setSelfLink(selfLink) - .setTargetLink(targetLink) - .setStartTime(startTime) - .setEndTime(endTime) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); + String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]"); - Operation actualResponse = - client.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy); + ListLocationsResponse actualResponse = client.listLocations(formattedParent); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SetMaintenancePolicyRequest actualRequest = (SetMaintenancePolicyRequest) actualRequests.get(0); + ListLocationsRequest actualRequest = (ListLocationsRequest) actualRequests.get(0); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(maintenancePolicy, actualRequest.getMaintenancePolicy()); + Assert.assertEquals(formattedParent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1551,17 +719,14 @@ public void setMaintenancePolicyTest() { @Test @SuppressWarnings("all") - public void setMaintenancePolicyExceptionTest() throws Exception { + public void listLocationsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); try { - String projectId = "projectId-1969970175"; - String zone = "zone3744684"; - String clusterId = "clusterId240280960"; - MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); + String formattedParent = ClusterManagerClient.formatProjectName("[PROJECT]"); - client.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy); + client.listLocations(formattedParent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception diff --git a/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerSmokeTest.java b/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerSmokeTest.java index 2abb7b4e7807..e8be1d621818 100644 --- a/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerSmokeTest.java +++ b/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerSmokeTest.java @@ -45,10 +45,11 @@ public static void main(String args[]) { public static void executeNoCatch(String projectId) throws Exception { try (ClusterManagerClient client = ClusterManagerClient.create()) { + String formattedParent = ClusterManagerClient.formatLocationName("[PROJECT]", "[LOCATION]"); String projectId2 = projectId; String zone = "us-central1-a"; - ListClustersResponse response = client.listClusters(projectId2, zone); + ListClustersResponse response = client.listClusters(formattedParent, projectId2, zone); } } diff --git a/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java b/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java index 14b4f0097c3d..843962eb75ba 100644 --- a/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java +++ b/google-cloud-clients/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java @@ -16,44 +16,48 @@ package com.google.cloud.container.v1; import com.google.api.core.BetaApi; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.ClusterManagerGrpc.ClusterManagerImplBase; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.ClusterManagerGrpc.ClusterManagerImplBase; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; import com.google.protobuf.Empty; import com.google.protobuf.GeneratedMessageV3; import io.grpc.stub.StreamObserver; @@ -540,4 +544,35 @@ public void setMaintenancePolicy( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void listUsableSubnetworks( + ListUsableSubnetworksRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListUsableSubnetworksResponse) { + requests.add(request); + responseObserver.onNext((ListUsableSubnetworksResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext((ListLocationsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } }